Data transmission method and system of wireless sensor network
By adopting data subcontracting and multi-radio frequency unit upload technology in wireless sensor networks, the problem that wireless sensor networks cannot effectively transmit large data volumes is solved, and efficient and reliable big data upload is achieved.
Patent Information
- Application Number
- CN202411428979.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-03-04
AI Technical Summary
Due to the limitations of factors such as bandwidth and transmission distance, wireless sensor networks cannot effectively meet the application requirements of burst large data transmission.
By introducing data subcontracting technology into the wireless sensor network, the uploaded data of large data is split into at least two data packets and uploaded separately through at least two radio frequency units, and the data packets are received and combined through multiple radio frequency units using a wireless gateway.
It realizes parallel upload and fragmented upload of large data volumes, reduces the risk of failure of data upload, improves the success rate of uploading big data, and can be retransmitted separately when the data packet upload fails without retransmitting all data packets, reducing energy consumption.
Smart Images

Figure CN119562304A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of wireless sensor networks, and in particular to a data transmission method and system for a wireless sensor network. Background Art
[0002] Wireless Sensor Networks (WSN) is a network composed of a large number of distributed sensor nodes that can sense, collect and process information in the environment, and then transmit the data to the coordinator, gateway or control center through wireless communication. Wireless sensor networks have been widely used in industry, agriculture, medical care, smart cities and other fields.
[0003] Wireless sensors are easy to install on the device side, no wiring required, digital output, and no acquisition card required. The installation cost is only 1% of the wired acquisition solution. They are accurate and convenient, and are widely used in the aftermarket and pre-installation markets for intelligent upgrades of various industrial equipment.
[0004] However, due to the limitations of bandwidth and transmission distance, wireless sensors cannot meet the application requirements of sudden large data transmission, such as device firmware, uploading collected files, etc. Summary of the invention
[0005] In view of this, the present disclosure provides a data transmission method and system for a wireless sensor network, which realizes the transmission of large amounts of data and meets the application requirements of large-volume transmission through improvement of the data transmission mode and hardware optimization design.
[0006] The technical solution of the present disclosure is achieved as follows:
[0007] According to one aspect of an embodiment of the present disclosure, a data transmission method of a wireless sensor network is provided, including:
[0008] The wireless sensor in the wireless sensor network determines whether the data volume of the uploaded data is greater than or equal to a preset data volume threshold;
[0009] When the data volume of the uploaded data is greater than or equal to the data volume threshold, the wireless sensor splits the uploaded data into at least two data packets, and uploads the at least two data packets respectively through at least two first radio frequency units;
[0010] The wireless gateway in the wireless sensor network receives at least two data packets respectively through at least two second radio frequency units, and combines at least two data packets to obtain the upload data.
[0011] In a possible implementation, it further includes:
[0012] When the data volume of the uploaded data is less than the data volume threshold, the wireless sensor uploads the uploaded data through one of the at least two first radio frequency units, and turns off the other first radio frequency units except the first radio frequency unit that uploads the uploaded data;
[0013] The wireless gateway receives the upload data through one of the at least two second radio frequency units.
[0014] In a possible implementation manner, the wireless sensor splits the uploaded data into at least two data packets, and uploads the at least two data packets respectively through at least two first radio frequency units, including:
[0015] Splitting the uploaded data into at least two data packets according to the bandwidth of the frequency band where each of the first radio frequency units is located, wherein each of the data packets corresponds to each of the first radio frequency units;
[0016] Upload at least two of the data packets respectively through the first radio frequency units corresponding to the respective ones.
[0017] In a possible implementation manner, carrier frequencies of the first radio frequency unit and the second radio frequency unit that send and receive the same data packet match;
[0018] The carrier frequencies of the first radio frequency unit and the second radio frequency unit for sending and receiving different data packets do not match.
[0019] According to another aspect of an embodiment of the present disclosure, a data transmission system for a wireless sensor network is provided, including:
[0020] A wireless sensor, configured to determine whether the data volume of the uploaded data to be uploaded is greater than or equal to a preset data volume threshold, and if the data volume of the uploaded data is greater than or equal to the data volume threshold, split the uploaded data into at least two data packets, and upload the at least two data packets respectively through at least two first radio frequency units;
[0021] The wireless gateway is used to receive at least two of the data packets respectively through at least two second radio frequency units, and combine the at least two data packets to obtain the upload data.
[0022] In a possible implementation manner, the wireless sensor includes:
[0023] at least two of the first radio frequency units, used to send data;
[0024] A control unit, coupled to at least two of the first radio frequency units, is used to split the uploaded data into at least two data packets when the data volume of the uploaded data is greater than or equal to the data volume threshold, and upload at least two of the data packets respectively through at least two of the first radio frequency units.
[0025] In a possible implementation manner, data transmission carrier frequencies between the first radio frequency units are different from each other.
[0026] In a possible implementation manner, the wireless sensor further includes:
[0027] a data acquisition unit, coupled to the control unit, for acquiring data and sending the acquired data to the control unit;
[0028] The control unit is further used to receive and process the data collected by the data collection unit.
[0029] In a possible implementation manner, the wireless gateway includes:
[0030] at least two of the second radio frequency units, configured to receive data;
[0031] a radio frequency control unit, coupled to at least two of the second radio frequency units, and configured to control at least two of the second radio frequency units, and receive at least two of the data packets through the at least two of the second radio frequency units respectively;
[0032] The main control unit is coupled to the radio frequency control unit, and is used for receiving at least two of the data packets from the radio frequency control unit, and combining the at least two data packets to obtain the upload data.
[0033] In a possible implementation manner, data transmission carrier frequencies between the second radio frequency units are different from each other.
[0034] It can be seen from the above scheme that in the data transmission method and system of the wireless sensor network disclosed in the present invention, the wireless sensor splits the uploaded data of a large amount of data that reaches or exceeds the data volume threshold by means of data packetization, and uses at least two first radio frequency units to upload different data packets respectively, thereby realizing the sending of the uploaded data of a large amount of data. Compared with the technical scheme disclosed in the present invention, the wireless sensor in the related technology has only one radio frequency unit, and is limited by energy supply limitations, hardware resource limitations, and low bandwidth limitations. In fact, if a large amount of data is to be uploaded, it is necessary to turn on the radio frequency unit for a long time and continuously upload data, which will lead to restrictions on other work of the wireless sensor when uploading data, such as the inability to complete data collection normally, and the failure of data upload due to signal interference caused by the complexity of the network environment. The present invention splits the uploaded data of large amounts of data and uploads different data packets separately, thereby realizing parallel uploading and fragmented uploading of the uploaded data, reducing the risk of data upload failure, and helping to improve the upload success rate of big data (i.e., large amounts of uploaded data). Moreover, based on the technical solution of the present invention, when the upload of a certain data packet fails, the data packet can be uploaded again individually without uploading all the data packets again. Therefore, compared with the risk of failure of large-scale data upload in related technologies, the technical solution of the present invention also helps to reduce the energy consumption of large-scale data upload.
[0035] The data transmission method and system of the wireless sensor network disclosed in the present invention can solve the problem of slow speed of low-speed wide area networks such as low-power LoRa. The present invention can also use an integrated multi-channel receiving IC to realize multi-frequency concurrent transmission. In the data transmission method and system of the wireless sensor network disclosed in the present invention, the wireless gateway can open all channels (all second radio frequency modules are all open) to receive data packets uploaded by the wireless sensor, and for the consideration of saving cost and power consumption, the wireless sensor may not use the same number of first radio frequency modules to upload data packets, but open a part of the first radio frequency modules, or the number of first radio frequency modules may be less than the number of second radio frequency modules, for example, the second radio frequency modules may be 8 and all open, and the number of first radio frequency modules may be 4 and partially open, so that a wireless gateway can receive large amounts of data uploaded by multiple wireless sensors at the same time through different second radio frequency modules. In addition, the data transmission method and system of the wireless sensor network disclosed in the present invention only uses multi-frequency concurrent transmission to open multiple first radio frequency modules to send data packets in parallel when uploading large data, and only uses one of the first radio frequency modules (one channel) to reduce power consumption when uploading other conventional data. In order to ensure the efficiency of uploading big data, the disclosed technical solution uses a specific frame grid to send fragments in the form of data packets, and finally the wireless gateway performs packet assembly processing. On the one hand, it improves the upload efficiency. On the other hand, when part of the data fails to be uploaded, it is not necessary to retransmit all the data, and only the data packets that failed to be uploaded can be retransmitted, which also helps to reduce the power consumption of uploading big data. The disclosed technical solution realizes the upload of big data in wireless sensor networks by improving wireless sensors and wireless gateways, and correspondingly creates a multi-frequency concurrent transmission mode and frame format, which helps the application requirements of large-scale transmission in wireless sensor networks, and is not limited to the requirements of protocols and frequency bands. Based on the disclosed technical solution, large-scale transmission in wireless sensor networks can be realized on the basis of any relevant protocols and frequency bands, and is compatible with relevant protocols and frequency bands. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a schematic diagram of a network topology of a wireless sensor network to which the embodiments of the present disclosure are applicable;
[0037] Figure 2 is a flow chart of a data transmission method of a wireless sensor network according to an exemplary embodiment;
[0038] Figure 3 is a schematic diagram of a process of splitting and uploading uploaded data according to an exemplary embodiment;
[0039] Figure 4 is a schematic diagram of a frame format of a data packet according to an exemplary embodiment;
[0040] Figure 5 is a schematic diagram of a data transmission system of a wireless sensor network according to an exemplary embodiment;
[0041] Figure 6 is a schematic diagram of a wireless sensor according to an exemplary embodiment;
[0042] Figure 7 is a schematic diagram of a wireless gateway according to an exemplary embodiment;
[0043] Figure 8 is a logic flow chart of wireless sensor networking according to an exemplary embodiment;
[0044] Fig. 9 is a conventional communication logic flow chart of a wireless sensor according to an exemplary embodiment;
[0045] Fig.10 is a conventional communication logic flow chart of a wireless gateway according to an exemplary embodiment;
[0046] Fig.11 is a schematic diagram of a logical process of uploading multiple data packets of a wireless sensor according to an exemplary embodiment;
[0047] Fig.12 The figure is a schematic diagram of a logic process of receiving multiple data packets of a wireless gateway according to an exemplary embodiment. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and examples.
[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0050] At present, the main problems faced by wireless sensor networks are mainly reflected in the following aspects:
[0051] 1. Energy supply problem: Since wireless sensors are usually powered by micro batteries, battery life becomes a major problem in complex and changing environments. When faced with energy exhaustion, wireless sensors may not work properly, especially in harsh environments where battery replacement is very difficult. Therefore, how to ensure the long-term stable operation of nodes is one of the key issues that wireless sensor networks need to solve.
[0052] 2. Hardware resource limitations: Wireless sensors usually use embedded systems with limited processing power and memory resources. This limits the computing power and data processing capabilities of wireless sensors, making complex data analysis and processing tasks difficult to complete on wireless sensor nodes.
[0053] 3. Short-range communication and low bandwidth: Wireless sensors can usually only communicate over short distances and have low bandwidth, which limits the efficiency of data transmission.
[0054] The disclosed embodiments mainly address the problem of low bandwidth and inability to transmit large amounts of data, and propose a data transmission method and system for a wireless sensor network. By improving the data transmission method and optimizing the hardware design, the transmission of large amounts of data is achieved to meet the application requirements of large-volume transmission. In this way, larger data can be uploaded to achieve remote data processing, which helps to circumvent problems with hardware resource limitations. At the same time, reasonable control can be used to avoid unnecessary waste of battery energy.
[0055] Figure 1 FIG. 1 is a schematic diagram of a network topology of a wireless sensor network to which the embodiments of the present disclosure are applicable. Figure 1 As shown, it includes a network base station and multiple sensor nodes (wireless sensors). For example, Figure 1 The figure includes sensor node 1, sensor node 2 and sensor node n. Sensor node 1, sensor node 2 and sensor node n transmit data wirelessly with the network base station. It can be seen that the wireless sensor network is a star network topology. In the exemplary embodiment, the frequency band of the wireless sensor network includes 433MHz, 470MHz, 868MHz, 915MHz, 2.4GHz, etc.
[0056] Figure 2 FIG. 1 is a flow chart of a data transmission method of a wireless sensor network according to an exemplary embodiment. Figure 2 As shown, in the exemplary embodiment, the data transmission method of the wireless sensor network mainly includes the following steps 201 to 203.
[0057] Step 201: A wireless sensor in a wireless sensor network determines whether the amount of data to be uploaded is greater than or equal to a preset data amount threshold.
[0058] Step 202: When the data volume of the uploaded data is greater than or equal to the data volume threshold, the wireless sensor splits the uploaded data into at least two data packets, and uploads the at least two data packets respectively through at least two first radio frequency units.
[0059] Step 203: The wireless gateway in the wireless sensor network receives at least two data packets respectively through at least two second radio frequency units, and combines the at least two data packets to obtain upload data.
[0060] In the data transmission method of the wireless sensor network of the embodiment of the present disclosure, the wireless sensor splits the large amount of uploaded data whose data volume reaches or exceeds the data volume threshold by data packetization, and uses at least two first radio frequency units to upload different data packets respectively, thereby realizing the transmission of the large amount of uploaded data. Compared with the embodiment of the present disclosure, the wireless sensor in the related art has only one radio frequency unit, and is limited by energy supply restrictions, hardware resource restrictions, and low bandwidth restrictions. In fact, if a large amount of data is to be uploaded, it is necessary to turn on the radio frequency unit for a long time and continuously upload data, which will lead to restrictions on other work of the wireless sensor when uploading data, such as failure to complete data collection normally, and the failure of data upload due to signal interference caused by the complexity of the network environment. The embodiment of the present disclosure splits the uploaded data of large amounts of data and uploads different data packets separately, thereby realizing parallel uploading and fragmented uploading of the uploaded data, reducing the risk of failure in data upload, and being beneficial to improving the upload success rate of big data (i.e., large amounts of uploaded data). Furthermore, based on the embodiment of the present disclosure, when the upload of a certain data packet fails, the data packet can be uploaded again individually without uploading all the data packets again. Therefore, compared with the risk of failure in uploading large amounts of data in the related technology, the embodiment of the present disclosure also helps to reduce the energy consumption of uploading large amounts of data.
[0061] Because the radio frequency unit in the wireless sensor consumes battery energy when working, and when the wireless sensor does not upload a large amount of data, the participation of the relevant radio frequency unit is not required. For example, when uploading a small amount of data, only one of the radio frequency units can be turned on. Based on this, in the exemplary embodiment, the data transmission method of the wireless sensor network also includes:
[0062] When the amount of uploaded data is less than the data amount threshold, the wireless sensor network uploads the uploaded data through one of the at least two first radio frequency units, and shuts down other first radio frequency units except the first radio frequency unit that uploads the uploaded data.
[0063] Corresponding to the wireless sensor uploading the uploaded data through one of the at least two first radio frequency units, the wireless gateway receives the uploaded data through one of the at least two second radio frequency units.
[0064] In an exemplary embodiment, the data volume threshold may be set with reference to the ability of a single first radio frequency unit to send data. For example, the ability of a single first radio frequency unit to send data may be the time taken by a single first radio frequency unit to send uploaded data. In an exemplary embodiment, if the uploaded data is required to be completed within 1 minute, the amount of data that can be uploaded by a single first radio frequency unit within 1 minute is obtained based on the rate at which a single first radio frequency unit uploads data, and the amount of data is used as the data volume threshold. This is only an example of setting the data volume threshold. The data volume threshold may also be considered based on the number of first radio frequency units, the complexity of the network environment in which the wireless sensor is located, etc., and / or may be set based on experience.
[0065] The bandwidth of the frequency band where the radio frequency unit is located will limit the speed of data upload. If the amount of uploaded data is small, a larger bandwidth can complete the data upload in a short time. On the contrary, if the amount of uploaded data is large, a smaller bandwidth will take a longer time to complete the data upload. In addition, the amount of uploaded data with a large amount of data may be relatively large or relatively small. Therefore, if the amount of data divided into data packets is large, it will also take a longer time to upload a data packet, resulting in an increased risk of upload failure. Based on this, it can be considered to set a data packet of appropriate size in combination with the bandwidth of the frequency band where the first radio frequency unit is located to help reduce the risk of data upload failure. Figure 3 FIG. 1 is a schematic diagram of a process of splitting and uploading uploaded data according to an exemplary embodiment. Figure 3 As shown, in step 202, the wireless sensor splits the uploaded data into at least two data packets, and uploads the at least two data packets respectively through at least two first radio frequency units, which may specifically include the following steps 301 to 302.
[0066] Step 301: Split the uploaded data into at least two data packets according to the bandwidth of the frequency band where each first radio frequency unit is located, wherein each data packet corresponds to each first radio frequency unit.
[0067] Step 302: Upload at least two data packets through their respective corresponding first radio frequency units.
[0068] In an exemplary embodiment, the number of data packets into which the uploaded data is split may be equal to the number of first RF units or greater than the number of first RF units. When the number of data packets is equal to the number of first RF units, each first RF unit uploads one data packet respectively; when the number of data packets is greater than the number of first RF units, the first RF unit that first uploads the data packet may continue to upload the remaining unuploaded data packets. In an exemplary embodiment, the number of data packets into which the uploaded data is split may also be less than the number of first RF units. When the number of data packets into which the uploaded data is split is less than the number of first RF units, the wireless sensor only turns on a portion of the first RF units corresponding to the data packets to upload the data packets, thereby avoiding ineffective loss of battery energy caused by turning on all the first RF units.
[0069] In order for the wireless gateway to correctly receive the uploaded data of the wireless sensor, in the exemplary embodiment, the carrier frequencies of the first radio frequency unit and the second radio frequency unit that send and receive the same data packet match; the carrier frequencies of the first radio frequency unit and the second radio frequency unit that send and receive different data packets do not match. This helps to reduce interference between signals of different radio frequency units on the one hand, and can achieve accurate reception of data packets on the other.
[0070] In order to accurately receive the data packets and combine them to obtain the uploaded data, in the exemplary embodiment, a frame format of a data packet is also provided, such as Figure 4 As shown, the frame format of the data packet includes a frame header, a frame length, a source address, a destination address, a total number of packets, a current packet sequence number, a data area, and a check bit. Among them, the frame header is used to record the meaning of the current frame, the frame length is used to record the length of the current frame, the source address is used to record the sender of the current frame, the destination address is used to record the receiver of the current frame, the total number of packets is used to record the total number of data packets into which the data is split, the current packet sequence number is used to record the packet sequence number of the data packet in the current frame among all the data packets, the data area is used to store the data in the data packet of the current frame of the transmission data, and the check bit is used to check the current frame.
[0071] Based on the frame format of the above data packet, the data volume of the data packet can be preset. When transmitting large data, the data sender, such as a wireless sensor, splits the large data into several data packets according to the data volume of the large data and the data volume of the preset data packet. For example, if the large data is 1000 bytes and the data volume of the preset data packet is 40 bytes (the data volume of the data packet can be preset according to the bandwidth of the frequency band where the first radio frequency unit is located), the large data is split into 25 data packets. The data sender fills the data in each data packet into the data area of the frame and generates a packet number according to the order of each data packet in the large data. Other information in the frame format of the data packet can be automatically generated according to the corresponding settings.
[0072] In an illustrative embodiment, the data volume of a data packet can be set to multiple set values in order from high to low. When performing large data transmission, the data sender can first select the data volume of the data packet with the highest set value to split and send the large data. When the number of sending failures reaches a preset failure threshold, the data sender can reselect the data volume of a data packet with another set value slightly lower than the highest set value to split and send the large data. When the number of sending failures reaches the preset failure threshold again, the data sender can reselect the data volume of a data packet with another set value lower than another set value to split and send the large data, and so on, until the data volume of the data packet with the lowest set value is selected to split and send the large data.
[0073] For example, the data volume of a data packet includes a first set value, a second set value, and a third set value, wherein the first set value is greater than the second set value, and the second set value is greater than the third set value. When transmitting large data, the data sender selects the data volume of the data packet of the first set value to split and send the large data; when the first set value is selected and the number of transmission failures reaches a preset failure number threshold, the data sender selects the data volume of the data packet of the second set value to split and send the large data; when the second set value is selected and the number of transmission failures reaches a preset failure number threshold, the data sender selects the data volume of the data packet of the third set value to split and send the large data. In an illustrative embodiment, the failure number threshold can be set according to the needs of the application scenario.
[0074] For example, the first set value, the second set value, and the third set value are 40 bytes, 20 bytes, and 10 bytes respectively, the failure threshold is 10 times, and the big data to be sent by the data sender is 1000 bytes. Then, when transmitting the big data, the data sender selects 40 bytes of data to split and send the 1000-byte big data, and splits it into 25 data packets for sending; when the number of failures in sending 25 data packets reaches 10 times, the data sender reselects 20 bytes of data to split and send the 1000-byte big data, and splits it into 50 data packets for sending; when the number of failures in sending 50 data packets reaches 10 times, the data sender reselects 10 bytes of data to split and send the 1000-byte big data, and splits it into 100 data packets for sending.
[0075] Based on the frame format of the above data packet, when transmitting large data, the data receiver, such as a wireless gateway, parses the frame header of the current frame after receiving the current frame, determines whether the current frame is an available data frame, and after determining that it is an available data frame, parses the source address and the destination address to determine whether it is compliant. After determining that it is compliant, parse and save the total number of packets, then parse the current packet sequence number, and take out the relevant data from the data area and store it in the temporary storage area, then determine whether the total number of received packet sequence numbers is equal to the total number of packets. If not, continue to wait for receiving new data frames. If yes, complete the reception and saving of the large data packet. Among them, the splicing order of the data in each received data packet can be determined according to the data packet sequence number.
[0076] In the embodiment of the present disclosure, a multi-frequency concurrent transmission method is adopted, and therefore, it can be called multi-frequency concurrent transmission (Multi-Frequency Burst Transmission, MFBT), and the protocol adopted can be called a multi-frequency concurrent transmission protocol. In this way, when there is a need for burst transmission of large amounts of data, the wireless sensor and the wireless gateway turn on the corresponding number of radio frequency units for data transmission.
[0077] Figure 5 is a schematic diagram of a data transmission system of a wireless sensor network according to an exemplary embodiment. The data transmission system of the wireless sensor network implements the data transmission method of the wireless sensor network of the above-mentioned embodiments, such as Figure 5 As shown, the system includes a wireless sensor 501 and a wireless gateway 502. The wireless sensor 501 is used to determine whether the data volume of the uploaded data is greater than or equal to a preset data volume threshold, and when the data volume of the uploaded data is greater than or equal to the data volume threshold, the uploaded data is split into at least two data packets, and the at least two data packets are uploaded respectively through at least two first radio frequency units. The wireless gateway 502 is used to receive the at least two data packets respectively through at least two second radio frequency units, and combine the at least two data packets to obtain the uploaded data.
[0078] In the exemplary embodiment, the number of the wireless sensor 501 in the data transmission system of the wireless sensor network is at least one.
[0079] It should be noted that, in addition to being able to implement the data transmission method for the wireless sensor network of the embodiment of the present disclosure, the data transmission system for the wireless sensor network of the embodiment of the present disclosure also has related functions of the wireless sensor network in related technologies.
[0080] Figure 6 is a schematic diagram of a wireless sensor according to an exemplary embodiment, such as Figure 6As shown, in the data transmission system of the wireless sensor network of the present disclosure, the wireless sensor 501 mainly includes a first radio frequency unit 601 and a control unit 602. There are at least two first radio frequency units 601, and the at least two first radio frequency units 601 are used to send data. The control unit 602 is coupled to the at least two first radio frequency units 601, and is used to split the uploaded data into at least two data packets when the data volume of the uploaded data is greater than or equal to the data volume threshold, and upload the at least two data packets through the at least two first radio frequency units 601 respectively.
[0081] In order to avoid signal interference between the first radio frequency units 601 , in the exemplary embodiment, the data transmission carrier frequencies between the first radio frequency units 601 are different from each other.
[0082] In the exemplary embodiment, the wireless sensor 501 in the embodiment of the present disclosure also has various functions of the wireless sensor of the related technology, such as data collection. Figure 6 As shown, in the exemplary embodiment, the wireless sensor 501 further includes a data acquisition unit 603. The data acquisition unit 603 is coupled to the control unit 602, and is used to collect data and send the collected data to the control unit 602. The control unit 602 is also used to receive and process the data collected by the data acquisition unit 603.
[0083] Figure 7 is a schematic diagram of a wireless gateway according to an exemplary embodiment, such as Figure 7 As shown, in the data transmission system of the wireless sensor network disclosed in the present invention, the wireless gateway 502 mainly includes a second radio frequency unit 701, a radio frequency control unit 702 and a main control unit 703. Among them, there are at least two second radio frequency units 701, and at least two second radio frequency units 701 are used to receive data. The radio frequency control unit 702 is coupled to the at least two second radio frequency units 701, and is used to control the at least two second radio frequency units 701, and receive at least two data packets through the at least two second radio frequency units 701 respectively. The main control unit 703 is coupled to the radio frequency control unit 702, and is used to receive at least two data packets from the radio frequency control unit 702, and combine the at least two data packets to obtain the uploaded data.
[0084] In order to avoid signal interference between the second radio frequency units 701 , in the exemplary embodiment, the data transmission carrier frequencies between the second radio frequency units 701 are different from each other.
[0085] In the exemplary embodiment, the wireless gateway 502 in the embodiment of the present disclosure also has various functions of the wireless gateway in the related art.
[0086] Figure 8FIG. 1 is a logic flow chart of wireless sensor networking according to an exemplary embodiment. Figure 8 As shown, it mainly includes the following steps 801 to 805.
[0087] Step 801: Sense a wireless network carrier signal, and execute step 802.
[0088] In an exemplary embodiment, carrier signal sensing may be performed through any first radio frequency unit.
[0089] Step 802: Determine whether there is an idle channel. If yes, execute step 803; otherwise, execute step 801.
[0090] In an exemplary embodiment, information on whether a channel is idle can be obtained from a result of carrier signal sensing.
[0091] Step 803: Send a networking request command to the wireless gateway via an idle channel, and then execute step 804.
[0092] Step 804 , determine whether a reply from the wireless gateway is received, if yes, execute step 805 , otherwise execute step 801 .
[0093] In an exemplary embodiment, the reply of the wireless gateway may carry relevant networking information.
[0094] Step 805: Record available channels and other networking information.
[0095] It should be noted that, in addition to the above description, the process of wireless sensor networking may have more detailed specific processes, and the processes not recorded in the present disclosure can be implemented by referring to the wireless sensor networking process in the related art.
[0096] Fig. 9 FIG. 1 is a conventional communication logic flow chart of a wireless sensor according to an exemplary embodiment. Fig. 9 As shown, it mainly includes the following steps 901 to 905.
[0097] Step 901: Sense a carrier signal of a wireless network, and execute step 902.
[0098] In an exemplary embodiment, carrier signal sensing may be performed through any first radio frequency unit.
[0099] Step 902: Determine whether there is an idle channel. If yes, execute step 903; otherwise, execute step 901.
[0100] In an exemplary embodiment, information on whether a channel is idle can be obtained from a result of carrier signal sensing.
[0101] Step 903: Send data to the wireless gateway via an idle channel, and then execute step 904.
[0102] Step 904: determine whether a reply from the wireless gateway is received, if yes, the communication ends, otherwise, execute step 905.
[0103] In an exemplary embodiment, the reply from the wireless gateway may carry information on whether the data is received successfully.
[0104] Step 905: determine whether data needs to be resent, if yes, execute step 901, otherwise the communication ends.
[0105] In an exemplary embodiment, if the reply from the wireless gateway indicates that the data reception fails, step 901 is executed; if the reply from the wireless gateway indicates that the data reception succeeds, the communication ends.
[0106] The conventional communication logic process can be completed by any first radio frequency unit. In addition to the above description, the conventional communication process of the wireless sensor may have more detailed specific processes. The processes not recorded in this disclosure can be implemented by referring to the conventional communication process of wireless sensors in related technologies.
[0107] Fig.10 is a conventional communication logic flow chart of a wireless gateway according to an exemplary embodiment. Fig.10 As shown, it mainly includes the following steps 1001 to 1005.
[0108] Step 1001, monitor data packets and execute step 1002.
[0109] In the exemplary embodiment, the data packets originate from wireless sensors.
[0110] In an exemplary embodiment, carrier signal monitoring can be performed through multiple second radio frequency units, wherein the carrier frequency of the second radio frequency unit monitoring the data message should match the carrier frequency of the first radio frequency unit of the wireless sensor uploading data.
[0111] Step 1002: Determine whether data is received, if so, execute step 1003, otherwise execute step 1001.
[0112] Step 1003: process the data, and then execute step 1004.
[0113] In an exemplary embodiment, step 1003 may specifically include operations such as verifying, saving, and uploading the received data to a server.
[0114] Step 1004: determine whether it is necessary to reply a message to the wireless gateway, if yes, execute step 1005, otherwise execute step 1001.
[0115] In an exemplary embodiment, if the received data fails to be verified or saved, a reception failure message may be sent to the wireless sensor.
[0116] In an exemplary embodiment, if the received data is successfully verified or saved, a successful reception message may be sent to the wireless sensor.
[0117] Generally speaking, the wireless gateway will reply relevant messages to the wireless sensor regardless of whether the reception is successful or failed.
[0118] Step 1005: Send a reply message to the wireless sensor, and then execute step 1001.
[0119] In addition to the above description, the process of conventional communication of the wireless gateway may have more detailed specific processes. The processes not recorded in the present disclosure can be implemented by referring to the conventional communication process of the wireless gateway in the related technology.
[0120] Fig.11 FIG. 1 is a schematic diagram of a logical process of uploading multiple data packets of a wireless sensor according to an exemplary embodiment. Fig.11 As shown, it mainly includes the following steps 1101 to 1112.
[0121] Step 1101: Enable the first radio frequency unit to open all available channels, and then execute step 1102.
[0122] Step 1102 , generate a data packet of appropriate size according to the frequency band bandwidth, and then execute step 1103 .
[0123] The data packets are obtained by splitting the uploaded data. In an exemplary embodiment, the number of the data packets is at least two.
[0124] Step 1103, put the data packet into the sending queue, and then execute step 1104.
[0125] Step 1104 , sense the carrier signal of the available channel, and execute step 1105 .
[0126] In an exemplary embodiment, step 1104 is to monitor the carrier signals of all available channels to determine whether there is an idle channel.
[0127] Step 1105 , determine whether there is an idle channel, if so, execute step 1106 , otherwise execute step 1104 .
[0128] In an exemplary embodiment, information on whether a channel is idle can be obtained from a result of carrier signal sensing.
[0129] Step 1106 , sending a data packet through an idle channel, and then executing step 1107 .
[0130] Step 1107 , determine whether a response message from the wireless gateway is received, if yes, execute step 1108 , otherwise execute step 1109 .
[0131] In the exemplary embodiment, the response information indicates that the data packet is received successfully, that is, the wireless gateway returns the response information when receiving the data packet, otherwise, no response information is returned.
[0132] Step 1108 , remove the data packet corresponding to the successfully received response information from the sending queue, and then execute step 1110 .
[0133] Step 1109, record the number of no responses, and then execute step 1111.
[0134] Step 1110 , determine whether all data packets in the sending queue have been sent, if so, end the transmission, otherwise execute step 1104 .
[0135] Step 1111 , determine whether the channel that sends data packets and has no response times reaching a set threshold is disabled, if so, execute step 1112 , otherwise execute step 1104 .
[0136] Step 1112: Generate a data packet of appropriate size according to the bandwidth of the available frequency band, and then execute step 1103.
[0137] In the exemplary embodiment, in step 1112, data packets are generated for data packets sent from channels that have no response, and the generated data packets may be one or more new data packets, wherein the available frequency band in step 1112 refers to the frequency band of other channels except the channels that have no response. Through this data packet sending queue method, data packets that have been successfully sent do not need to be sent again, and data packets that failed to be sent can generate new data packets again and be sent through available channels. After all data packets in the sending queue are sent, the wireless gateway side can integrate the data in all data packets according to the frame format of the data packets to obtain complete upload data.
[0138] Fig.12 FIG. 1 is a schematic diagram of a multi-data packet receiving logic process of a wireless gateway according to an exemplary embodiment. Fig.12 As shown, it mainly includes the following steps 1201 to 1210.
[0139] Step 1201, monitor data packets and execute step 1202.
[0140] Step 1202, determine whether data is received, if so, execute step 1203, otherwise execute step 1201.
[0141] Step 1203 , determine whether the received data is multi-frequency concurrent transmission data, if yes, execute step 1205 , otherwise execute step 1204 .
[0142] In an exemplary embodiment, whether the data is multi-frequency concurrent transmission data may be determined by the frame format of the received data.
[0143] Step 1204: Execute conventional communication processing logic.
[0144] In the exemplary embodiment, the conventional communication processing logic is, for example, the communication processing logic of a wireless gateway in the related art.
[0145] Step 1205 , parse the data frame of the multi-frequency concurrent transmission data and send the corresponding response frame, then execute step 1206 .
[0146] Step 1206 , determining whether a node buffer area corresponding to the wireless sensor uploading multi-frequency concurrent transmission data has been established, if yes, executing step 1207 , otherwise executing step 1208 .
[0147] Step 1207 , save the received data packets of the multi-frequency concurrent transmission data to the corresponding node buffer area, and then execute step 1209 .
[0148] Step 1208 , establishing a node buffer area corresponding to the wireless sensor uploading the multi-frequency concurrent transmission data, and saving the received data packets of the multi-frequency concurrent transmission data to the established node buffer area, and then executing step 1209 .
[0149] Step 1209 , determine whether all data packets are completely received, if so, execute step 1210 , otherwise execute step 1201 .
[0150] In an exemplary embodiment, whether a data packet is completely received may be determined by using a data frame of data transmitted concurrently at multiple frequencies.
[0151] Step 1210: Generate and save upload data based on all data packets in the node cache, and delete the node cache.
[0152] The data transmission method and system of the wireless sensor network of the disclosed embodiment adopts a novel multi-frequency concurrent transmission mode. When there is a need for sudden large-volume data transmission, all radio frequency units are turned on for transmission. When there is no large-volume data transmission, unnecessary radio frequency units are turned off, which helps to improve the transmission efficiency and success rate of large-volume data. On the wireless sensor side and the wireless gateway side, multiple radio frequency units are used through hardware improvements to achieve multi-frequency concurrent transmission. In the exemplary embodiment, the radio frequency unit can be a physically independent module or an integrated circuit chip. In the exemplary embodiment, the radio frequency unit can be different frequencies in the same frequency band or different frequency bands.
[0153] The data transmission method and system of the wireless sensor network of the embodiment of the present disclosure can solve the problem of slow speed of low-speed wide area networks such as low-power LoRa (Long Range Radio). In the embodiment of the present disclosure, an integrated multi-channel receiving IC (Integrated Circuit) can also be used to realize multi-frequency concurrent transmission. In an illustrative embodiment, in the data transmission method and system of the wireless sensor network of the embodiment of the present disclosure, the wireless gateway can open all channels (all second radio frequency modules are all open) to receive data packets uploaded by the wireless sensor, and for the consideration of saving cost and power consumption, the wireless sensor may not use the same number of first radio frequency modules to upload data packets, but open a part of the first radio frequency modules, or the number of first radio frequency modules may be less than the number of second radio frequency modules, for example, the second radio frequency modules may be 8 and all open, and the number of first radio frequency modules may be 4 and partially open, so that a wireless gateway can receive large amounts of uploaded data for multiple wireless sensors at the same time through different second radio frequency modules. In addition, the data transmission method and system of the wireless sensor network of the embodiment of the present disclosure only use the multi-frequency concurrent transmission mode to open multiple first radio frequency modules to send data packets in parallel when uploading large data. When uploading other conventional data, only one of the first radio frequency modules (one channel) is used to reduce power consumption. In order to ensure the efficiency of uploading large data, the embodiment of the present disclosure uses a specific frame grid to send fragments in the form of data packets, and finally the wireless gateway performs packet processing. On the one hand, the upload efficiency is improved. On the other hand, when part of the data fails to be uploaded, all data can be retransmitted without retransmitting, and only the data packets that failed to be uploaded can be retransmitted, which also helps to reduce the power consumption of uploading large data. The embodiment of the present disclosure realizes the upload of large data in the wireless sensor network by improving the wireless sensor and the wireless gateway, and correspondingly creates a multi-frequency concurrent transmission mode and frame format, which is helpful for the application requirements of large-scale transmission in the wireless sensor network, and is not limited to the requirements of the protocol and frequency band. Based on the embodiment of the present disclosure, large-scale transmission in the wireless sensor network can be realized on the basis of any relevant protocol and frequency band, and can be compatible with relevant protocols and frequency bands.
[0154] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A data transmission method for a wireless sensor network, comprising: The wireless sensor in the wireless sensor network determines whether the data volume of the uploaded data is greater than or equal to a preset data volume threshold; When the data volume of the uploaded data is greater than or equal to the data volume threshold, the wireless sensor splits the uploaded data into at least two data packets, and uploads the at least two data packets respectively through at least two first radio frequency units; The wireless gateway in the wireless sensor network receives at least two data packets respectively through at least two second radio frequency units, and combines at least two data packets to obtain the upload data.
2. The data transmission method of a wireless sensor network according to claim 1, characterized in that: Also includes: When the data volume of the uploaded data is less than the data volume threshold, the wireless sensor uploads the uploaded data through one of the at least two first radio frequency units, and turns off the other first radio frequency units except the first radio frequency unit that uploads the uploaded data; The wireless gateway receives the upload data through one of the at least two second radio frequency units.
3. The data transmission method of a wireless sensor network according to claim 1, characterized in that: The wireless sensor splits the uploaded data into at least two data packets, and uploads the at least two data packets respectively through at least two first radio frequency units, including: Splitting the uploaded data into at least two data packets according to the bandwidth of the frequency band where each of the first radio frequency units is located, wherein each of the data packets corresponds to each of the first radio frequency units; Upload at least two of the data packets respectively through the first radio frequency units corresponding to the respective ones.
4. The data transmission method of a wireless sensor network according to claim 1, characterized in that: The carrier frequencies of the first radio frequency unit and the second radio frequency unit for sending and receiving the same data packet are matched; The carrier frequencies of the first radio frequency unit and the second radio frequency unit for sending and receiving different data packets do not match.
5. A data transmission system for a wireless sensor network, characterized in that: include: A wireless sensor, configured to determine whether the data volume of the uploaded data to be uploaded is greater than or equal to a preset data volume threshold, and if the data volume of the uploaded data is greater than or equal to the data volume threshold, split the uploaded data into at least two data packets, and upload the at least two data packets respectively through at least two first radio frequency units; The wireless gateway is used to receive at least two of the data packets respectively through at least two second radio frequency units, and combine the at least two data packets to obtain the upload data.
6. The data transmission system of the wireless sensor network according to claim 5, characterized in that: The wireless sensor comprises: at least two of the first radio frequency units, used to send data; A control unit, coupled to at least two of the first radio frequency units, is used to split the uploaded data into at least two data packets when the amount of uploaded data is greater than or equal to the data amount threshold, and upload at least two of the data packets respectively through at least two of the first radio frequency units.
7. The data transmission system of the wireless sensor network according to claim 6, characterized in that: The data transmission carrier frequencies between the first radio frequency units are different from each other.
8. The data transmission system of the wireless sensor network according to claim 6, characterized in that: The wireless sensor further comprises: a data acquisition unit, coupled to the control unit, for acquiring data and sending the acquired data to the control unit; The control unit is further used to receive and process the data collected by the data collection unit.
9. The data transmission system of the wireless sensor network according to claim 5, characterized in that: The wireless gateway comprises: at least two of the second radio frequency units, configured to receive data; a radio frequency control unit, coupled to at least two of the second radio frequency units, and configured to control at least two of the second radio frequency units, and receive at least two of the data packets through the at least two of the second radio frequency units respectively; The main control unit is coupled to the radio frequency control unit, and is used for receiving at least two of the data packets from the radio frequency control unit, and combining the at least two data packets to obtain the upload data.
10. The data transmission system of the wireless sensor network according to claim 9, characterized in that: The data transmission carrier frequencies between the second radio frequency units are different from each other.