CN114885373A - Node data uploading method, device, equipment and storage medium - Google Patents

Node data uploading method, device, equipment and storage medium Download PDF

Info

Publication number
CN114885373A
CN114885373A CN202210585884.6A CN202210585884A CN114885373A CN 114885373 A CN114885373 A CN 114885373A CN 202210585884 A CN202210585884 A CN 202210585884A CN 114885373 A CN114885373 A CN 114885373A
Authority
CN
China
Prior art keywords
node
data
mesh network
equipment
data packets
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210585884.6A
Other languages
Chinese (zh)
Inventor
薛棱仁
李俊涛
叶基龙
鲍敦桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Jushi Technology Co ltd
Original Assignee
Hangzhou Jushi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Jushi Technology Co ltd filed Critical Hangzhou Jushi Technology Co ltd
Priority to CN202210585884.6A priority Critical patent/CN114885373A/en
Publication of CN114885373A publication Critical patent/CN114885373A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a node data uploading method, a node data uploading device and a node data uploading storage medium. The node data uploading method is applied to a Mesh network formed by a plurality of node devices, and comprises the following steps: splitting data to be uploaded corresponding to first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network; and distributing the plurality of data packets to other node equipment near the first node equipment through the Mesh network, and informing the other node equipment to respectively upload the data packets received by the other node equipment to the cloud server. According to the technical scheme of the embodiment of the invention, each node device can make full use of the mobile network of the node device and the mobile networks of other node devices to quickly and stably transmit data to the cloud server.

Description

Node data uploading method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a node data uploading method and device, electronic equipment and a storage medium.
Background
Terminal equipment, for example intelligent retail cabinet is very big has made things convenient for people's life, and prior art terminal equipment needs in time to upload the cloud end server with respective discernment video. Generally, in the prior art, terminal devices are all configured with a 4G mobile communication network for uploading videos shot by an intelligent retail cabinet when nobody sells the videos, but due to different environments for arranging the terminal devices, when mobile network signals are unstable or mobile network faults occur, the terminal devices cannot upload respective video data in time, and further faults such as transactions cannot be completed in time are caused.
Disclosure of Invention
The embodiment of the invention provides a node data uploading method, a node data uploading device and a storage medium, and realizes the timely data uploading of each node device of a Mesh network.
According to an aspect of the present invention, there is provided a node data uploading method applied to a Mesh network formed by a plurality of node devices, the method including:
splitting data to be uploaded corresponding to first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network;
and distributing the plurality of data packets to other node equipment near the first node equipment through the Mesh network, and informing the other node equipment to respectively upload the data packets received by the other node equipment to the cloud server.
Optionally, before splitting the data to be uploaded corresponding to the first node device into a plurality of data packets according to the number of preset nodes in the Mesh network, the method includes:
acquiring historical data transmission information from nearby node equipment, and determining the historical transmission rate of each other node equipment according to the historical data transmission information;
sequencing other node devices according to the historical transmission rate and determining the number of other node devices needing to distribute data as the preset node number;
the size of each split data packet is positively correlated with the historical transmission rate of each other node device, and the data packets with different sizes are distributed to the other corresponding node devices near the first node device.
Optionally, before splitting the data to be uploaded corresponding to the first node device into a plurality of data packets according to the number of preset nodes in the Mesh network, the method further includes:
judging whether the first node equipment uploads the data to the cloud server or not;
and determining the number of preset nodes needing to distribute and upload data according to the judgment result.
Optionally, the determining, according to the judgment result, the number of preset nodes that need to distribute and upload data includes:
if the first node device uploads the data to the cloud server abnormally, the number of the preset nodes in the Mesh network is the number of other node devices which do not include the first node device;
if the first node device uploads the data to the cloud server normally, the preset number of nodes in the Mesh network is the number including the first node device and other node devices.
Optionally, the number of the data packets is N or N +1, and the distributing the data packets to other node devices near the first node device through the Mesh network includes:
if the first node equipment uploads the data to the cloud server abnormally, the first node equipment distributes the N data packets to N other node equipment nearby the first node equipment through the Mesh network;
if the first node device uploads the data to the cloud server normally, the first node device keeps 1 of the N +1 data packets to upload to the cloud server, and distributes the remaining N data packets to N other node devices near the first node device through the Mesh network.
Optionally, the other node devices include a second node device and a third node device, and after the data packets are distributed to the other node devices near the first node device through the Mesh network, the method includes:
judging whether the second node equipment receives the corresponding data packet or not;
and if the second node equipment does not respond or responds abnormally, the data packet corresponding to the second node equipment is retransmitted to the third node equipment, and the second node equipment is marked as disconnected or in other abnormal states.
And if the second node equipment successfully receives the corresponding data packet, informing the second node equipment of transmitting the received data packet to the cloud server.
Optionally, after notifying other node devices to upload the received data packets to the cloud server, the method includes:
judging whether the other node devices respectively upload the received data packets to the cloud server or not;
and if the data packet fails, updating the failed data packet into the data to be uploaded, and re-executing the step of splitting the data to be uploaded corresponding to the first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network.
According to another aspect of the present invention, there is provided a node data uploading apparatus, including:
the data splitting module is used for splitting the data to be uploaded corresponding to the first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network;
and the multi-node uploading module is used for distributing the plurality of data packets to other node equipment nearby the first node equipment through the Mesh network and informing the other node equipment to respectively upload the received data packets to the cloud server.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the node data uploading method according to any embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the node data uploading method according to any one of the embodiments of the present invention when executed.
According to the embodiment of the invention, data to be uploaded corresponding to first node equipment is split into a plurality of data packets according to the number of preset nodes in a Mesh network; the data packets are distributed to other node devices near the first node device through the Mesh network, and the other node devices are informed to upload the received data packets to the cloud server respectively, so that the technical problem that the data uploaded by the node devices in the Mesh network is unstable in the prior art is solved, and each node device can quickly and stably transmit data to the cloud server by fully utilizing the mobile network of the node device and the mobile networks of the other node devices.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a node data uploading method according to an embodiment of the present invention;
fig. 2 is a flowchart of a node data uploading method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a node data uploading method according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a node data uploading apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a node data uploading method according to an embodiment of the present invention, where the method may be implemented by a node data uploading apparatus, the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated in an electronic device, where the electronic device may be a terminal device or a server device, and is used in cooperation with a cloud server for receiving uploaded data, and a specific device type of the electronic device is not limited in the embodiment of the present invention. Accordingly, as shown in fig. 1, the method comprises the following operations:
s110, splitting data to be uploaded corresponding to the first node device into a plurality of data packets according to the number of preset nodes in the Mesh network.
In this embodiment, the Mesh network is also referred to as a multi-hop network, and any node device of the Mesh network can be simultaneously used as a fixed access point and a router. In this embodiment, the first node device is any node device of a Mesh network, and in this embodiment, any node device is configured with a mobile communication module, where the mobile communication module includes, but is not limited to, a 3G, 4G, or 5G mobile communication network. Any one of the node devices in this embodiment can upload data to be uploaded to the cloud server by using the respective mobile communication module. Each node device of the embodiment may be an intelligent retail cabinet, an intelligent charging cabinet, or the like, and the data to be uploaded may be one or more of video data, billing data, and fault data of a transaction process.
In this embodiment, the preset number of nodes in the Mesh network may also be the total number of the first node device and the other node devices. Alternatively, the preset number of nodes in the Mesh network may also be the number of other node devices that do not include the first node device. In an alternative embodiment, the preset number of nodes in the Mesh network may also be a part of the number of other node devices, for example, the total number of other node devices is N, and the preset number of nodes is M, where 2 ≦ M < N. Wherein M and N are positive integers.
The preset number M of nodes in the Mesh network of this embodiment is taken as an example of a part of the number N of other node devices, that is, M is greater than or equal to 2 and less than N. At this time, the first node device splits the data to be uploaded into M data packets according to the preset number M of nodes in the Mesh network. In this embodiment, in order to reduce the complexity of data splitting, the size of the split data packets may be identical. In an alternative embodiment, in order to improve the efficiency of data uploading, the size of the split data packet may be positively correlated with the historical transmission rate of each other node device.
S120, distributing the data packets to other node devices near the first node device through the Mesh network, and informing the other node devices to respectively upload the received data packets to the cloud server.
In this embodiment, the first node device distributes the M data packets to other M node devices near the first node device through the Mesh network, and notifies the other M node devices to upload the received data packets to the cloud server respectively.
In an embodiment, the first node device distributes the plurality of data packets to other node devices near the first node device through the Mesh network by using an inter-node transmission protocol, where the inter-node transmission protocol refers to a protocol for transmitting data in a network protocol between different node devices under the same WIFI networking in the Mesh network. Specifically, the data packet of the inter-node transmission protocol used in this embodiment at least includes one or more of the following: 4-bit header identifier (unused char group nethead [4]), packet [ total ] Data number/hash value (unused char hash HashIndex [4]), total Data size _ total packet number (unused char PackageInfo [8]), current packet number _ packet number (unused char PackagePosInfo [8]), current packet size (unused char package packegelein [4]), Data pointer to be packetized (unused char Data _ ptr), 4-bit end identifier (unused char PackageTail [4 ]).
In an embodiment, a multi-node transmission protocol is adopted between the other M node devices and the cloud server to perform data transmission on the multiple data packets. The multi-node transmission protocol of this embodiment is a transmission protocol for transmitting data to the cloud server by multiple device nodes in the same network. Specifically, the data packet of the multi-node transmission protocol used in this embodiment at least includes one or more of the following: 4-bit identifier ' M ' V ' T ' N ' (unused char DataHead [4]), node sequence number (unused char NodeGroupIndex [4]), device sequence number in the node network (unused char NodeDeviceIndex [1]), hash check value, upload event number (unused char HashCheck [8]), node network start Unix timestamp (unused char TimeStart [6]), current packet Unix timestamp (unused char TimeNow [6]), 8 bytes represent the total Data length of the fragment (unused char TotalByte [8]), the Data start address transmitted by the packet (unused char DataPos [8]), the Data length transmitted by the packet (unused char DataLen [8]), the Data pointer to be uploaded (unused char DataTail identifier [4] M [4 ].
According to the technical scheme, the data to be uploaded is split into the data packets through the first node device according to the number of preset nodes in the Mesh network, the first node device distributes the data packets to other node devices near the first node device through the Mesh network, and informs the other node devices to upload the received data packets to the cloud server respectively, so that the technical problem that the network condition of the first node device cannot be uploaded to the cloud server in time is solved, the efficiency of uploading the data to the cloud server when the network condition of the first node device is normal is improved, the network idleness of the other node devices is fully utilized, and the stable, reliable and efficient data uploading effect is achieved.
Example two
The embodiment is embodied on the basis of the above embodiment, and as shown in fig. 2, the method of the embodiment can further improve the efficiency of data uploading, and the specific steps may include:
s210, historical data transmission information is acquired from the nearby node devices, and the historical transmission rate of each other node device is determined according to the historical data transmission information.
The first node device in this embodiment is any node device of the Mesh network, and the first node device distributes the multiple data packets to other node devices near the first node device through the Mesh network by using an inter-node transport protocol. In this embodiment, the historical data transmission information of other nearby node devices acquired by the first node device may be transmission abnormality records of the other node devices, and according to the number of times of transmission abnormality of each of the other node devices recorded in the transmission abnormality records, the first node device may determine the historical transmission rate of each of the other node devices, for example, if 1 transmission abnormality occurs in the node device a in a previous history period, the first node device sets the historical transmission rate of the node device a to 90% of the normal rate, if 2 transmission abnormalities occur in the node device B, the first node device sets the historical transmission rate of the node device B to 80% of the normal rate, and if 3 transmission abnormalities occur in the node device C, the first node device sets the historical transmission rate of the node device C to 70% of the normal rate. If the node device D has abnormal transmission for 4 times, the first node device sets the historical transmission rate of the node device D to 60% of the normal rate. The history period of the present embodiment may be several hours, one day, one week, etc., and the present embodiment is not limited.
S220, sequencing other node devices according to the historical transmission rate and determining the number of other node devices needing to distribute data as the preset node number.
Taking the foregoing other node devices a to D as an example, if the normal rates of the node devices a to D are all the same, the result of sorting the other node devices according to the historical transmission rate is A, B, C, D. The preset number M of nodes in the Mesh network in this embodiment is a part of the number N of other node devices, that is, 2 ≦ M <4, where M is set to 3.
And S230, splitting the data to be uploaded corresponding to the first node device into a plurality of data packets according to the number of preset nodes in the Mesh network, wherein the size of each data packet corresponds to the historical transmission rate of each other node device.
In this embodiment, the first node device splits data to be uploaded into 3 data packets, that is, a data packet a, a data packet B, and a data packet C, according to a preset number of nodes 2 in the Mesh network. In this embodiment, the size of the data packet a corresponds to 90% of the normal rate of the node apparatus a, the size of the data packet B corresponds to 80% of the normal rate of the node apparatus B, and the size of the data packet C corresponds to 70% of the normal rate of the node apparatus C.
And S240, distributing the data packets with different sizes to other corresponding node equipment near the first node equipment through the Mesh network, and informing each other node equipment to respectively upload the received data packets to the cloud server.
In this embodiment, the first node device distributes the plurality of data packets to other node devices near the first node device through the Mesh network by using an inter-node transport protocol. Specifically, the first node device distributes the data packet a to the node device a through an inter-node transport protocol, distributes the data packet B to the node device B through the inter-node transport protocol, and distributes the data packet C to the node device C through the inter-node transport protocol. After the node device A, the node device B and the node device C receive the corresponding data packets, the data packets A and the data packets B are respectively transmitted to the cloud server by adopting a multi-node transmission protocol.
In this embodiment, in order to improve the efficiency of data uploading, the size of the split data packet is positively correlated with the historical transmission rate of each other node device. The size of the data packet received by the other node device corresponds to the historical transmission rate of the respective other node device. The size of the split data packet corresponds to the historical transmission rate of other node equipment respectively, so that the data packets received by the other node equipment are matched with the respective historical transmission rate respectively, the efficiency of uploading the respective data packet by each other node equipment is higher, and the whole time of completely uploading all the data packets to the cloud server is saved.
EXAMPLE III
The present embodiment is embodied based on the above embodiment, and as shown in fig. 3, the method of the present embodiment may further utilize idle network resources to reduce the probability of data transmission failure caused by network failure, and the method includes:
s310, judging whether the first node device uploads the data to the cloud server is abnormal or not;
the first node device in this embodiment is any node device of the Mesh network, and any node device of the Mesh network can be simultaneously used as a fixed access point and a router. The first node device communicates with other node devices near the first node device using an inter-node transport protocol. In this embodiment, any node device in the Mesh network is configured with a mobile communication module, where the mobile communication module includes, but is not limited to, a 3G, 4G, and 5G mobile communication network. Any one of the node devices in this embodiment can upload data to be uploaded to the cloud server by using the respective mobile communication module. Each node device of the embodiment may be an intelligent retail cabinet, an intelligent charging cabinet, or the like, and the data to be uploaded may be one or more of video data, billing data, and fault data of a transaction process. In this embodiment, the fact that the first node device can upload the stored or generated data to be uploaded to the cloud server within the preset time indicates that the first node device uploads the data to the cloud server normally, and the fact that the first node device cannot upload the stored or generated data to be uploaded to the cloud server within the preset time indicates that the first node device uploads the data to the cloud server abnormally.
And S320, determining the number of preset nodes needing to distribute and upload the data according to the judgment result.
In this embodiment, the first node device determines the number of other node devices that need to distribute and upload data, that is, the number of preset nodes, according to the condition of its own network. Specifically, if the first node device uploads the data to the cloud server abnormally, the number of preset nodes in the Mesh network is the number of other node devices which do not include the first node device; if the first node device uploads the data to the cloud server normally, the preset number of nodes in the Mesh network is the number including the first node device and other node devices.
In one embodiment, if the first node device uploads the data to the cloud server abnormally, the number of preset nodes required to distribute and upload the data is N other nearby node devices; if the first node device uploads the data to the cloud server normally, the number of preset nodes which need to distribute and upload the data is N other nearby node devices plus the first node device, namely the number of the preset nodes is N + 1.
S330, splitting the data to be uploaded corresponding to the first node device into a plurality of data packets according to the preset number of nodes.
Specifically, if the first node device uploads the data to the cloud server abnormally, the first node device divides the data to be uploaded into N data packets according to the preset node number N; and if the first node equipment uploads the data to the cloud server normally, the first node equipment splits the data to be uploaded into N +1 data packets according to the preset number of nodes N + 1.
And S340, distributing the plurality of data packets to other node equipment nearby the first node equipment through the Mesh network.
If the first node equipment uploads the data to the cloud server abnormally, the first node equipment distributes the N data packets to N other node equipment nearby the first node equipment through the Mesh network;
if the first node device uploads the data to the cloud server normally, the first node device keeps 1 of the N +1 data packets to upload to the cloud server, and distributes the remaining N data packets to N other node devices near the first node device through the Mesh network.
S350, judging whether the second node equipment receives the corresponding data packet or not;
in this embodiment, the first node device and the other node devices transmit data and information through the inter-node transmission protocol before, and determine whether the other target node devices receive the data packet transmitted according to the inter-node protocol according to the protocol feedback information. In one embodiment, the other target node devices include at least a second node device and a third node device. The first node device respectively judges whether the second node device and the third node device receive the corresponding data packets.
And S360, if the second node equipment does not respond or responds abnormally, retransmitting the data packet corresponding to the second node equipment to the third node equipment, and marking the second node equipment as disconnected or other abnormal states.
If the second node equipment is determined to have no response or response abnormity according to the judgment result, the corresponding data packet cannot be normally received; and the third node equipment can normally receive the corresponding data packet, resend the data packet corresponding to the second node equipment to the third node equipment and mark the second node equipment as disconnected or other abnormal states. And if the second node equipment successfully receives the corresponding data packet, informing the second node equipment of transmitting the received data packet to the cloud server.
And S370, informing other node devices to respectively upload the received data packets to the cloud server.
And the first node equipment distributes the data packets to other node equipment nearby the first node equipment through the Mesh network by adopting an inter-node transmission protocol. Specifically, the first node device distributes the data packet a to the second node device through the inter-node transport protocol, and the first node device distributes the data packet B to the third node device through the inter-node transport protocol. And because the second node equipment receives the data packet A abnormally, the first node equipment resends the data packet A corresponding to the second node equipment to the third node equipment, and marks the second node equipment in a disconnected or other abnormal state. In this embodiment, after receiving the corresponding data packets a and B, the third node device transmits the data packets a and B to the cloud server by using a multi-node transmission protocol. In an alternative embodiment, the third node device may be one or more node devices.
S380, judging whether the data packets received by the other node devices are uploaded to the cloud server respectively and fail or not;
and if the first node equipment receives feedback information of the other node equipment completing the data packet uploading within the preset time, determining that the data packet uploading of the corresponding other node equipment is successful, otherwise, indicating that the data packet uploading of the corresponding other node equipment is failed.
And S390, if the data packet fails, updating the failed data packet into data to be uploaded, and repeating the step S330.
Specifically, if the first node device does not receive feedback information that other node devices, for example, the third node device, complete uploading of the data packet B within a preset time, the step S330 of distributing and uploading the data packet B as data to be uploaded is executed again, that is, if the third node device fails to upload the data packet B, the failed data packet B is updated to the data to be uploaded, and the step S330 is executed again: and splitting the data to be uploaded corresponding to the first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network.
In this embodiment, the first node device further determines different preset node numbers according to a network condition of the self-uploaded data, and performs distribution and upload of the data to be uploaded in different manners, which basically satisfies that when an abnormal transmission problem occurs in a mobile network of an individual or a part of node devices, other node devices can still be used for relay upload, and the first node device can synchronously participate in data upload work under an abnormal state, so that the efficiency of data transmission is improved, and the condition that the node devices cannot be used due to unstable network is avoided.
It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
Example four
Fig. 4 is a schematic diagram of a node data uploading apparatus according to a fourth embodiment of the present invention, and as shown in fig. 4, the apparatus 400 includes: a data splitting module 410 and a multi-node uploading module 420, wherein:
the data splitting module 410 is configured to split the data to be uploaded, which corresponds to the first node device, into a plurality of data packets according to the number of preset nodes in the Mesh network.
The multi-node uploading module 420 is configured to distribute the multiple data packets to other node devices near the first node device through the Mesh network, and notify the other node devices to upload the received data packets to the cloud server respectively.
Optionally, the apparatus of the above embodiment further includes:
and the historical information acquisition module is used for acquiring historical data transmission information from the nearby node equipment and determining the historical transmission rate of each other node equipment according to the historical data transmission information.
And the distribution node determining module is used for sequencing other node equipment according to the historical transmission rate and determining the number of other node equipment needing to distribute data as the preset node number.
Optionally, in an embodiment, the size of each split data packet is positively correlated with the historical transmission rate of each other node device, and the data packets with different sizes are distributed to the corresponding other node devices near the first node device.
The first data uploading judgment module is used for judging whether the first node equipment uploads the data to the cloud server is abnormal or not.
The distribution node determining module further determines the number of preset nodes which need to distribute and upload data according to the judgment result of whether the first device uploads the data to the cloud server is abnormal. Specifically, if the first node device uploads the data to the cloud server abnormally, the preset number of nodes in the Mesh network is the number of other node devices which do not include the first node device. If the first node device uploads the data to the cloud server normally, the preset number of the nodes in the Mesh network is the number including the first node device and other node devices. Correspondingly, the multi-node uploading module 420 distributes the plurality of data packets to other node devices near the first node device through the Mesh network, and specifically includes that if the first node device uploads data to the cloud server abnormally, the first node device distributes the N data packets to N other node devices near the first node device through the Mesh network; if the first node device uploads the data to the cloud server normally, the first node device keeps 1 of the N +1 data packets to upload to the cloud server, and distributes the remaining N data packets to N other node devices near the first node device through the Mesh network.
Optionally, the apparatus of the above embodiment further includes:
the data packet receiving and judging module is used for judging whether other node equipment, such as second node equipment, receives a corresponding data packet or not; and if the second node equipment does not respond or responds abnormally, the data packet corresponding to the second node equipment is retransmitted to the third node equipment, and the second node equipment is marked as disconnected or in other abnormal states. And if the second node equipment successfully receives the corresponding data packet, informing the second node equipment of transmitting the received data packet to the cloud server.
Optionally, the apparatus of the above embodiment further includes:
the second data uploading judgment module is used for judging whether the other node devices respectively upload the received data packets to the cloud server or not; and if the data packet fails, updating the failed data packet into the data to be uploaded and controlling the data splitting module 410 to re-split the data to be uploaded corresponding to the first node device into a plurality of data packets according to the number of preset nodes in the Mesh network.
The node data uploading device can execute the node data uploading method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For details of the node data uploading method provided in any embodiment of the present invention, reference may be made to the technical details not described in detail in this embodiment. Since the above-described node data uploading apparatus is an apparatus capable of executing the node data uploading method in the embodiment of the present invention, based on the node data uploading method described in the embodiment of the present invention, a person skilled in the art can know a specific implementation manner of the node data uploading apparatus in the embodiment and various variations thereof, and therefore, how the node data uploading apparatus implements the node data uploading method in the embodiment of the present invention is not described in detail here. As long as a person skilled in the art implements the apparatus used in the node data uploading method in the embodiments of the present invention, the apparatus is within the scope of the present application.
EXAMPLE five
FIG. 5 illustrates a schematic diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the node data upload method.
In some embodiments, the node data upload method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above described node data upload method may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the node data upload method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
EXAMPLE six
An embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program is used to execute the node data uploading method according to any one of the above embodiments of the present invention when executed by a computer processor.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM, or flash Memory), an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A node data uploading method is applied to a Mesh network formed by a plurality of node devices, and is characterized by comprising the following steps:
splitting data to be uploaded corresponding to first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network;
and distributing the plurality of data packets to other node equipment near the first node equipment through the Mesh network, and informing the other node equipment to respectively upload the data packets received by the other node equipment to the cloud server.
2. The node data uploading method according to claim 1, wherein before splitting the data to be uploaded corresponding to the first node device into a plurality of data packets according to the preset number of nodes in the Mesh network, the method includes:
acquiring historical data transmission information from nearby node equipment, and determining the historical transmission rate of each other node equipment according to the historical data transmission information;
sequencing other node devices according to the historical transmission rate and determining the number of other node devices needing to distribute data as the preset node number;
the size of each split data packet is positively correlated with the historical transmission rate of each other node device, and the data packets with different sizes are distributed to the other corresponding node devices near the first node device.
3. The node data uploading method according to claim 1, wherein before splitting the data to be uploaded corresponding to the first node device into a plurality of data packets according to the preset number of nodes in the Mesh network, the method further comprises:
judging whether the first node equipment uploads the data to the cloud server or not;
and determining the number of preset nodes needing to distribute and upload data according to the judgment result.
4. The node data uploading method according to claim 3, wherein the determining the number of preset nodes to which data needs to be distributed and uploaded according to the judgment result comprises:
if the first node device uploads the data to the cloud server abnormally, the number of the preset nodes in the Mesh network is the number of other node devices which do not include the first node device;
if the first node device uploads the data to the cloud server normally, the preset number of nodes in the Mesh network is the number including the first node device and other node devices.
5. The node data uploading method according to claim 4, wherein the number of the plurality of data packets is N or N +1, and the distributing the plurality of data packets to other node devices near the first node device through the Mesh network comprises:
if the first node equipment uploads the data to the cloud server abnormally, the first node equipment distributes the N data packets to N other node equipment nearby the first node equipment through the Mesh network;
if the first node device uploads the data to the cloud server normally, the first node device keeps 1 of the N +1 data packets to upload to the cloud server, and distributes the remaining N data packets to N other node devices near the first node device through the Mesh network.
6. The node data uploading method according to claim 4, wherein the other node devices include a second node device and a third node device, and after the plurality of data packets are distributed to the other node devices near the first node device through the Mesh network, the method includes:
judging whether the second node equipment receives the corresponding data packet or not;
if the second node equipment does not respond or responds abnormally, the data packet corresponding to the second node equipment is sent to the third node equipment again, and the second node equipment is marked as disconnected or in other abnormal states;
and if the second node equipment successfully receives the corresponding data packet, informing the second node equipment of transmitting the received data packet to the cloud server.
7. The node data uploading method according to claim 4, wherein after notifying other node devices to upload respective received data packets to the cloud server, respectively, the method includes:
judging whether the other node devices respectively upload the received data packets to the cloud server or not;
and if the data packet fails, updating the failed data packet into the data to be uploaded, and re-executing the step of splitting the data to be uploaded corresponding to the first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network.
8. A node data uploading apparatus, comprising:
the data splitting module is used for splitting the data to be uploaded corresponding to the first node equipment into a plurality of data packets according to the number of preset nodes in the Mesh network;
and the multi-node uploading module is used for distributing the plurality of data packets to other node equipment nearby the first node equipment through the Mesh network and informing the other node equipment to respectively upload the received data packets to the cloud server.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the node data upload method of any of claims 1-7.
10. A computer storage medium, wherein the computer readable storage medium stores computer instructions for causing a processor to implement the node data uploading method of any one of claims 1 to 7 when executed.
CN202210585884.6A 2022-05-26 2022-05-26 Node data uploading method, device, equipment and storage medium Pending CN114885373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210585884.6A CN114885373A (en) 2022-05-26 2022-05-26 Node data uploading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210585884.6A CN114885373A (en) 2022-05-26 2022-05-26 Node data uploading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114885373A true CN114885373A (en) 2022-08-09

Family

ID=82678095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210585884.6A Pending CN114885373A (en) 2022-05-26 2022-05-26 Node data uploading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114885373A (en)

Similar Documents

Publication Publication Date Title
CN110535965A (en) A kind of data processing method and device, storage medium
CN105515912B (en) Linkage availability detection and processing method between a kind of multinode
US20170329655A1 (en) Method and apparatus of unloading out of memory processing flow to user space
CN106874143A (en) Server backup method and backup system thereof
CN112422684B (en) Target message processing method and device, storage medium and electronic device
CN109167699A (en) The method and apparatus for handling the state of the node of block chain
CN110266514A (en) Journal obtaining method, device, terminal and storage medium
CN103607302A (en) Fault information report method, monitoring equipment and management equipment
CN111865674B (en) Log processing method, device and medium
CN114675983A (en) Business data processing method and device, storage medium and electronic equipment
CN110705893A (en) Service node management method, device, equipment and storage medium
CN113434312A (en) Data blood relationship processing method and device
EP1895712A2 (en) System for monitoring the state of apparatuses in a communication network
US20210096962A1 (en) Data backup method, device and system
CN104243473B (en) A kind of method and device of data transmission
CN111835578B (en) Information transmission management method, information transmission management apparatus, and readable storage medium
CN114885373A (en) Node data uploading method, device, equipment and storage medium
CN115543416A (en) Configuration updating method and device, electronic equipment and storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN113641688A (en) Node updating method, related device and computer program product
CN113079065A (en) Heartbeat detection method, device, equipment and medium based on Ambari
CN112202614A (en) Inter-system communication method and device
CN110909055A (en) Data processing method, data processing device, electronic equipment and storage medium
CN104796228B (en) A kind of method, apparatus and system of information transmission
CN110852537A (en) Service quality detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination