A method and apparatus for soil field survey in an adaptive network environment
By employing an adaptive network environment method for soil field surveys, an offline data model is formed using encrypted public and private key mechanisms. Combined with a multi-factor authentication mechanism, this method solves the data storage problem in soil field surveys under poor network conditions, achieving data security and flexibility. It ensures that data is securely stored in the absence of network conditions and automatically uploaded to the cloud after the network is restored.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-17
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, soil field survey methods are difficult to promote under poor network conditions, and offline storage methods are inflexible and pose a risk of data tampering.
An adaptive network environment soil field survey method is adopted. An offline data model is formed through encryption public and private key mechanisms. Combined with time consistency, version number matching and digest value verification, the data is securely stored under network-free conditions and automatically uploaded to the cloud after the network is restored.
It enables efficient and secure data storage in different network environments, solves the problem of data not being able to be stored in the absence of a network, prevents data tampering, and improves the efficiency and reliability of data storage.
Smart Images

Figure CN120835077B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of soil data acquisition technology, and in particular to a method and apparatus for soil field surveys in an adaptive network environment. Background Technology
[0002] Soil field surveys require the collection of key information such as the soil-forming environment, land use, and soil strata. During the survey, photographs of the surrounding landscape and soil profile morphology are also taken. Because network conditions vary significantly across soil field survey areas, data storage must be adaptable to both network-enabled and network-free scenarios to ensure secure and timely data preservation under diverse network conditions.
[0003] There are two existing methods for conducting soil field surveys and data storage: online survey / storage and offline survey / storage. Online survey / storage requires mobile terminals to be connected to the network in real time so that data can be uploaded and synchronized instantly. For example, Chinese invention patent application number 202111434904.1 employs an IoT-based soil testing system, including a soil testing terminal, a system server, and a system client. Several soil testing terminals are deployed in various soil environments requiring testing. These terminals automatically control the soil sampling depth, collect soil samples, and obtain soil condition information. The system server includes a data acquisition server, a database server, and a data interaction server. The data interaction server facilitates data exchange between the soil testing terminals, the system server, and the system client, and analyzes and processes the soil condition information data. The system client allows users to manage and maintain the system and query the real-time soil condition.
[0004] It can be seen that this online soil survey / data storage method relies on the existence of an external network environment. However, most soil survey tasks take place in open, field environments with poor network coverage. Moreover, soil survey tasks often involve quantitative data such as soil composition and structure, as well as sensory data such as overall soil photographs and comparative detail photographs. Therefore, the amount of data for each surveyed object may be large. If real-time collection, analysis, and transmission are required, high network quality is required. As a result, online soil survey / data storage methods are often difficult to promote due to inadequate network conditions.
[0005] Offline survey / storage methods for field soil also have certain problems. First, they lack flexibility, as the format and content of the data must be determined before the survey and cannot be adjusted. Second, offline local data is susceptible to tampering, and if the data is inaccurate or modified, the entire soil survey results become meaningless. Summary of the Invention
[0006] To address the limitations of existing online soil survey / data storage methods, which are often difficult to implement due to inadequate network conditions, and the technical problems of offline soil survey / data storage methods, such as poor flexibility and the possibility of tampering, this invention proposes a soil field survey method and apparatus that adapts to network environments and can perform corresponding survey or storage operations based on network conditions.
[0007] To achieve this goal, the present invention adopts the following technical solution.
[0008] An adaptive network environment soil field survey method, the method includes the following steps:
[0009] A. Obtain survey task information online based on the identity information of the survey equipment. The survey task information includes identification information of the soil survey task and a form model of the survey data.
[0010] B. Construct an offline data model based on the survey task information, conduct soil surveys, generate offline survey data according to the offline data model, and temporarily store the offline survey data.
[0011] C. Obtain the current network connection status and signal strength of the survey equipment through network services. If the requirements are met, upload the survey equipment identification information, soil survey task identification information, and offline survey data to the server.
[0012] D. The server parses and verifies the identity information of the survey equipment, the identification information of the soil survey task, and the offline survey data. If the verification is successful, the data is stored in the cloud database.
[0013] In the soil field survey method for an adaptive network environment of the present invention, the survey task information also includes an encrypted public key corresponding to the identity information of the survey device, and offline survey data is formed using the encrypted public key. The server uses the private key corresponding to the identity information of the survey device to parse and verify the offline survey data.
[0014] In the soil field survey method for an adaptive network environment of the present invention, the offline data model includes soil survey task identification information, structured data information and unstructured data information; the structured data information includes soil survey traceability data information, form data information and indexes of unstructured data information;
[0015] The process of creating offline survey data involves using a public key to encrypt structured data to obtain an encrypted string, which, together with unstructured data, constitutes the offline survey data.
[0016] In the soil field survey method for an adaptive network environment of the present invention, the server parses and verifies the survey equipment identity information, soil survey task identification information, and offline survey data, including:
[0017] The server decrypts the encrypted data using the private key corresponding to the identity information of the survey device. After decryption, it performs time consistency checks, version number matching checks, and digest value checks on the offline survey data.
[0018] The soil survey traceability data includes the time information of the offline survey. The structured data information is encrypted using a public key to obtain an encrypted string that includes the time when the offline survey data was formed. The time consistency check includes the server comparing the time information of the offline survey and the time when the offline survey data was formed; if the time difference is within a predetermined threshold, the time consistency check passes.
[0019] In the soil field survey method for an adaptive network environment of the present invention, the index of unstructured data information includes the digest value of unstructured data information. The server decrypts the encrypted data according to the private key corresponding to the identity information of the survey device to obtain the digest value of the unstructured data information. After locating the unstructured data information according to the index of the unstructured data information, the server performs a digest on the unstructured data information and compares the digest value of the decrypted unstructured data information with the result of the server performing a digest on the unstructured data information. If they match, the digest value verification passes.
[0020] In the soil field survey method for adaptive network environment of the present invention, after offline survey data passes time consistency test, version number matching test and summary value test, the structured data information is stored in a cloud relational database and the unstructured data information is stored in a cloud object storage database.
[0021] In the soil field survey method for an adaptive network environment of the present invention, the current network connection status and signal strength of the survey equipment are obtained through network services. If the requirements are met, the survey equipment identification information, soil survey task identification information, and offline survey data are uploaded to the server, including:
[0022] Based on the current network connection status and signal strength of the survey equipment, the survey equipment identification information, soil survey task identification information, and offline survey data are divided into one or more data packets and uploaded to the server. Each data packet includes the survey equipment identification information and the soil survey task identification information, and each data packet also includes some or all of the offline survey data.
[0023] In the soil field survey method for an adaptive network environment of the present invention, when there are multiple data packets, each data packet is of the same size, and the offline survey data portion of each data packet has a predetermined proportion of repetition. Each data packet also includes a check value for the offline survey data portion.
[0024] An adaptive network environment soil field survey device includes a data acquisition module, a data temporary storage module, a data submission module, a data parsing and verification module, and a data persistent storage module. The data acquisition module, the data temporary storage module, and the data submission module are located in the survey equipment, while the data parsing and verification module and the data persistent storage module are located in the server.
[0025] The data acquisition module is used to acquire survey task information online based on the identity information of the survey equipment. The survey task information includes the identification information of the soil survey task and the form model of the survey data. It also constructs an offline data model based on the survey task information and forms offline survey data according to the offline data model after the soil survey is conducted.
[0026] The data storage module is used to temporarily store offline survey data;
[0027] The data submission module obtains the current network connection status and signal strength of the survey equipment through network services. If the requirements are met, it uploads the survey equipment identification information, soil survey task identification information, and offline survey data to the server.
[0028] The data parsing and verification module is used to parse and verify the identity information of the survey equipment, the identification information of the soil survey task, and the offline survey data;
[0029] The persistent data storage module is used to store verified survey equipment identity information, soil survey task identification information, and offline survey data in a cloud database.
[0030] In the soil field survey device of the adaptive network environment of the present invention, the survey task information also includes an encrypted public key corresponding to the identity information of the survey device, and the data acquisition module uses the encrypted public key to form offline survey data, and the data parsing and verification module uses the private key corresponding to the identity information of the survey device to parse and verify the offline survey data.
[0031] The offline data model includes identification information for the soil survey task, structured data information, and unstructured data information; the structured data information includes soil survey traceability data information, form data information, and indexes of unstructured data information; the data acquisition module uses a public key to encrypt the structured data information to obtain an encrypted string, and the encrypted string and the unstructured data information together form the offline survey data;
[0032] The data parsing and verification module uses the private key corresponding to the identity information of the survey device to parse and verify the offline survey data.
[0033] Through the above technical solutions, the present invention achieves the following technical effects.
[0034] This invention enables efficient and secure data storage in various network environments. Compared to online storage methods, it solves the problem of data inability to be stored without a network; compared to offline storage methods, it solves the problems of easily tampered locally stored data and the inability to synchronize it in real time.
[0035] This invention employs an offline storage method for field survey data. According to the data storage format in this method, field survey data can be temporarily stored on survey equipment such as mobile terminals, ensuring that the data can be safely stored even in environments without network access. Once the network is restored, the data is automatically uploaded to the cloud, achieving seamless data integration.
[0036] This invention employs asymmetric encryption technology and a multi-factor authentication mechanism, including time consistency, version number matching, and MD5 hash verification, to effectively prevent temporary data from being tampered with and to ensure the integrity and reliability of the data.
[0037] This invention achieves real-time data updates and synchronization through the collaborative work of the cloud and survey devices, such as mobile terminals, thereby improving the efficiency of data storage. Attached Figure Description
[0038] Figure 1 This is a flowchart illustrating a soil field survey method for an adaptive network environment according to a specific embodiment of the present invention.
[0039] Figure 2 This is a schematic diagram of structured data information for a soil field survey method in an adaptive network environment according to a specific embodiment of the present invention.
[0040] Figure 3 This is a schematic diagram of the data temporary storage file organization structure of a soil field survey method in an adaptive network environment according to a specific embodiment of the present invention.
[0041] Figure 4 This is a schematic diagram of a soil field survey device with an adaptive network environment according to a specific embodiment of the present invention. Detailed Implementation
[0042] The present invention will now be described in detail with reference to the accompanying drawings.
[0043] The following detailed exemplary embodiments are disclosed. However, the specific structural and functional details disclosed herein are merely for the purpose of describing exemplary embodiments.
[0044] However, it should be understood that the present invention is not limited to the specific exemplary embodiments disclosed, but covers all modifications, equivalents, and substitutions falling within the scope of this disclosure. Throughout the description of the drawings, the same reference numerals denote the same elements.
[0045] Referring to the accompanying drawings, the structures, proportions, sizes, etc., depicted in the drawings are merely for illustrative purposes to aid those skilled in the art in understanding and reading the content disclosed herein. They are not intended to limit the conditions under which the invention can be implemented and therefore have no substantial technical significance. Any modifications to the structure, changes in proportions, or adjustments to the size, without affecting the effects and objectives achieved by the invention, should still fall within the scope of the technical content disclosed herein. Furthermore, the positional limitations used in this specification are merely for clarity of description and are not intended to limit the scope of the invention. Changes or adjustments to their relative relationships, without substantially altering the technical content, should also be considered within the scope of the invention's implementation.
[0046] It should also be understood that the term “and / or” as used herein includes any and all combinations of one or more of the related listed items. Furthermore, it should be understood that when a component or unit is referred to as “connected” or “coupled” to another component or unit, it may be directly connected or coupled to the other component or unit, or there may be intermediate components or units. In addition, other words used to describe the relationship between components or units should be understood in the same manner (e.g., “between” versus “directly between,” “adjacent” versus “directly adjacent,” etc.).
[0047] Figure 1 This is a flowchart illustrating a soil field survey method in an adaptive network environment according to a specific embodiment of the present invention. As shown in the figure, the specific embodiment of the present invention includes a soil field survey method in an adaptive network environment, which includes the following steps:
[0048] A. Obtain survey task information online based on the identity information of the survey equipment. The survey task information includes identification information of the soil survey task and a form model of the survey data.
[0049] B. Construct an offline data model based on the survey task information, conduct soil surveys, generate offline survey data according to the offline data model, and temporarily store the offline survey data.
[0050] C. Obtain the current network connection status and signal strength of the survey equipment through network services. If the requirements are met, upload the survey equipment identification information, soil survey task identification information, and offline survey data to the server.
[0051] D. The server parses and verifies the identity information of the survey equipment, the identification information of the soil survey task, and the offline survey data. If the verification is successful, the data is stored in the cloud database.
[0052] In the soil field survey method for an adaptive network environment of the present invention, the survey task information also includes an encrypted public key corresponding to the identity information of the survey device, and offline survey data is formed using the encrypted public key. The server uses the private key corresponding to the identity information of the survey device to parse and verify the offline survey data.
[0053] In the soil field survey method for an adaptive network environment of the present invention, the offline data model includes soil survey task identification information, structured data information and unstructured data information; the structured data information includes soil survey traceability data information, form data information and indexes of unstructured data information;
[0054] The process of creating offline survey data involves using a public key to encrypt structured data to obtain an encrypted string, which, together with unstructured data, constitutes the offline survey data.
[0055] In the soil field survey method for an adaptive network environment of the present invention, the server parses and verifies the survey equipment identity information, soil survey task identification information, and offline survey data, including:
[0056] The server decrypts the encrypted data using the private key corresponding to the identity information of the survey device. After decryption, it performs time consistency checks, version number matching checks, and digest value checks on the offline survey data.
[0057] The soil survey traceability data includes the time information of the offline survey. The structured data information is encrypted using a public key to obtain an encrypted string that includes the time when the offline survey data was formed. The time consistency check includes the server comparing the time information of the offline survey and the time when the offline survey data was formed; if the time difference is within a predetermined threshold, the time consistency check passes.
[0058] In the soil field survey method for an adaptive network environment of the present invention, the index of unstructured data information includes the digest value of unstructured data information. The server decrypts the encrypted data according to the private key corresponding to the identity information of the survey device to obtain the digest value of the unstructured data information. After locating the unstructured data information according to the index of the unstructured data information, the server performs a digest on the unstructured data information and compares the digest value of the decrypted unstructured data information with the result of the server performing a digest on the unstructured data information. If they match, the digest value verification passes.
[0059] In the soil field survey method for adaptive network environment of the present invention, after offline survey data passes time consistency test, version number matching test and summary value test, the structured data information is stored in a cloud relational database and the unstructured data information is stored in a cloud object storage database.
[0060] The following describes the specific process and effects of the technical solution of the present invention using a specific example.
[0061] like Figure 1 As shown, in a specific example, the soil field survey method for adaptive network environments involved in this invention includes the following steps:
[0062] 1) Obtain survey tasks online. Based on the identity information of the current survey device, obtain the survey task, data version, form model, and encryption public key from the cloud, i.e., the remote server, and cache this information on the current device.
[0063] The current survey device can be a terminal with wireless access and data transmission capabilities, such as a mobile terminal, a field IoT device, or a wireless LAN device. The survey device has a unique identifier that can identify its identity information. The identity information of the current survey device is backed up on the server. The server assigns a public key and a private key to the survey device to form an asymmetric key pair. The server sends the encrypted public key to the survey device in plaintext or encrypted transmission.
[0064] The survey task can be specifically represented by the identification information of the soil survey task, such as one or more survey task IDs. For each survey task, offline survey data will be generated in the end, so the survey task ID can also be used as the ID of the offline survey data.
[0065] For each survey device, the server can assign more than one soil survey task. For example, after conducting soil surveys at different locations, the offline survey data can be uploaded in a unified manner. In this case, the identity information of one survey device corresponds to the IDs of multiple offline survey data. The server can send each soil survey task independently to the survey device, or it can package multiple soil survey tasks together and send them to the survey device.
[0066] As can be seen, step 1) is completed in a scenario with a good network environment, or even in a wired environment, marking the initialization of the task.
[0067] 2) The survey equipment constructs an offline data model for each offline survey task based on the received survey tasks. The information in the offline data model is represented as O. i (id i ,r i ,(f nD n )), where id i The survey task ID can also be considered as the ID of offline survey data; ri contains structured data information; (f n D n () represents unstructured data information, such as attachment file information, f n Represents file type, D n This refers to a file dataset of this type.
[0068] Furthermore, structured data information can be represented as r i (id i ,t i ,f i ,p i ), id i The survey task ID can also be considered as the ID of offline survey data; t i This refers to soil survey traceability data, which may include information such as the surveyor's ID, data version, soil survey time, and survey equipment code; f i This is represented as form data, including information on various field survey indicators; p i This includes indexing unstructured data information, such as indexed data for attached files, including file path, file type, creation time, and MD5 hash of the unstructured data. A schematic diagram of structured data information in a soil field survey method for an adaptive network environment according to a specific embodiment of the present invention is shown below. Figure 2 As shown.
[0069] As shown in the figure, structured and unstructured data are linked by indexing the unstructured data included within the structured data. For example, if there are multiple survey tasks, each with its own offline survey data, this offline data includes both structured and unstructured data. The structured data is suitable for storage in a relational database, such as quantitative information, investigator IDs, and data version information; the unstructured data includes... Figure 3 The landscape photos, work photos, feature photos, and other photos shown are not suitable for quantification. This unstructured data is packaged and stored. The MD5 hash of the unstructured data included in the structured data is obtained by performing a hash calculation on the unstructured data, resulting in a string used for subsequent verification.
[0070] 3) Offline survey data storage. For example, the method for temporarily storing structured data is F1(r iFirst, the structured data stored in the survey device is converted into a JSON string. Then, the public key obtained in the previous steps is used to encrypt the JSON string into a ciphertext string. The encrypted string is then written to a designated file in the survey device. The temporarily stored ciphertext string is represented as er. i On the other hand, the temporary storage method for unstructured data information is F2((f n D n The data temporary storage files are stored in corresponding subdirectories according to file type. A schematic diagram of the data temporary storage file organization structure of a soil field survey method in an adaptive network environment according to a specific embodiment of the present invention is shown below. Figure 3 As shown.
[0071] Encrypting the JSON string generated from structured data is a confidentiality measure taken to prevent the leakage of investigation information.
[0072] 4) Online automatic data submission. The method for online automatic data submission is F3(token, id). i ,er i ,(f n D n The system obtains the network connection status and signal strength of the current survey device through network services. If the requirements are met, the device's identity information token and survey task ID can also be considered as the ID of the offline survey data. i The encrypted string er after converting the temporarily stored structured data information i Unstructured data information (f n D n The data is transmitted to the server.
[0073] The survey device has a network communication component. When the device moves to a location with a network environment, this component can detect the device's network connection status and signal strength. If these conditions are met, the device can communicate with a cloud server, transmitting its identity token and survey task ID (which can also be considered the ID for offline survey data). i The encrypted string er after converting the temporarily stored structured data information i Unstructured data information (f n D n The data is transmitted to the server.
[0074] As mentioned earlier, for each survey device, the server can assign more than one soil survey task. For example, after conducting soil surveys at different locations, the information of offline survey data can be uploaded in a unified manner. In this case, the identity information of one survey device corresponds to the ID of multiple offline survey data. Therefore, the survey device can send each soil survey task as offline survey data independently to the server, or it can package multiple soil survey tasks together and send them to the server.
[0075] 5) Offline survey data parsing. Data parsing is performed on the server. For example, the data parsing method used on the server is F4(token, id). i ,er i ,(f n D n After receiving offline survey data, the server will verify the identity authentication token of the survey device. Since the server stores the public and private keys of the unseen survey device, it will obtain the ciphertext string 'er' after converting the structured data using the private key. i Decryption is performed, and the decrypted string is converted into structured data information in offline survey data according to JSON format. i .
[0076] Because structured data information r i (id i ,t i ,f i ,p i ) in id i The survey task ID can also be considered as the ID of offline survey data; t i This refers to soil survey traceability data, which may include information such as the surveyor's ID, data version, soil survey time, and survey equipment code; f i This is represented as form data, including information on various field survey indicators; p i For unstructured data, such as attached file index data, including file path, file type, creation time, and MD5 hash of the unstructured data, the server obtains structured data information from the offline survey data. i This resulted in the acquisition of unstructured data from the offline survey data.
[0077] 6) Offline survey data validation. Offline survey data validation may include time consistency checks, version number matching checks, and MD5 digest value checks. The time consistency check method is F5(er) i ,t i ,M), where M is the time deviation threshold, and the comparison method is to calculate the soil survey retrospective data information t. iThe encrypted string er is the soil survey time and structured data information recorded in the middle. i Whether the creation time difference is within the range of M; the version number matching check method is F6(t) i ,f i ), trace data information through soil surveys. i The version number recorded in the file is used to obtain the cloud form data structure and check whether the form data information fi is organized according to the cloud form data structure; the MD5 digest value verification method is represented as F7(p i ,(f n D n )), Compare p i Does the MD5 hash of the unstructured data information in the Chinese database match the results of the server's own summary of the unstructured data information in the offline survey data?
[0078] 7) Data Storage. If all verifications pass, the server will confirm the data integrity and trustworthiness, and then store the structured data information. i Stored in a relational database in the cloud, unstructured data information (f n D n It is stored in a cloud object storage database.
[0079] In the soil field survey method for an adaptive network environment of the present invention, the current network connection status and signal strength of the survey equipment are obtained through network services. If the requirements are met, the survey equipment identification information, soil survey task identification information, and offline survey data are uploaded to the server, including:
[0080] Based on the current network connection status and signal strength of the survey equipment, the survey equipment identification information, soil survey task identification information, and offline survey data are divided into one or more data packets and uploaded to the server. Each data packet includes the survey equipment identification information and the soil survey task identification information, and each data packet also includes some or all of the offline survey data.
[0081] The purpose of this invention is to achieve adaptive network environment for soil field surveys. Therefore, this invention further proposes an updated solution that not only determines whether a network signal is "present" or "absent", but also determines whether the network is "strong" or "weak" and whether the signal quality is "good" or "poor", and makes further improvements based on this.
[0082] In real-world scenarios, network quality metrics such as RSRP, RSPQ, or signal-to-noise ratio are quantitative. In high-quality networks, packet loss and error rates are low, and average signal power is high, allowing for the use of larger signal modulation schemes. Conversely, in low-quality networks, packet loss and error rates are high, and average signal power is low, necessitating the use of smaller signal modulation schemes.
[0083] Therefore, this invention also adaptively proposes a better solution, such as sending offline survey data to the server when the network environment is poor due to business needs. However, in the technical solution of this invention, the amount of offline survey data is large, such as... Figure 3 As shown, the data may include landscape photos, work photos, feature photos, and other photos that are not suitable for quantification. For detailed, high-resolution photos, this represents a large amount of data. Considering the poor network environment, the offline survey data is divided into multiple smaller data packets and sent to the server to avoid retransmitting the entire data packet if a large data packet fails, which would lead to a high task failure rate.
[0084] Each data packet's header may include information such as the survey equipment's identity, soil survey task identification, packet length, and sequence number. The data portion includes a portion of the offline survey data. The server then provides feedback to the survey equipment, confirming the reception and decoding status of each packet. For packets that fail to be received, a retransmission mechanism is employed. This ensures successful uploading of offline survey data even in poor network conditions.
[0085] It should be noted that the packet retransmission technology used in this invention is a network application layer technology, which is not the same concept as the HARQ mechanism of the MAC layer or PDCP layer used in network communication. This is because the data packet header in this invention includes information such as the identity information of the survey equipment, the identification information of the soil survey task, the length information of the data packet, and the sequence number of the data packet. The underlying protocol cannot distinguish this information, so this packet structure cannot be guaranteed by the underlying protocol.
[0086] In the soil field survey method for an adaptive network environment of the present invention, when there are multiple data packets, each data packet is of the same size, and the offline survey data portion of each data packet has a predetermined proportion of repetition. Each data packet also includes a check value for the offline survey data portion.
[0087] As a more preferred embodiment of the present invention, the data portion of each data packet may also include a verification value of this portion of offline survey data, and correspondingly, there may be a certain proportion of repetition for each data packet.
[0088] For example, the last 25% of the offline survey data in the data packet with sequence number 1 overlaps with the first 25% of the offline survey data in the data packet with sequence number 2, and the last 25% of the offline survey data in the data packet with sequence number 2 overlaps with the first 25% of the offline survey data in the data packet with sequence number 3, and so on.
[0089] Those skilled in the art know that network data transmission errors are often caused by errors in some of the data. When the server receives a data packet with sequence number 2, it verifies the checksum of the offline survey data portion and finds that the data packet content is incorrect. At this point, the server verifies data packets with sequence numbers 1 and 3. If data packets with sequence numbers 1 and 3 are found to be correct, the server replaces the 25% of the offline survey data in the header of the data packet with the 25% of the offline survey data in the tail of the data packet with the 25% of the offline survey data in the tail of the data packet with the 25% of the offline survey data in the header of the data packet with the 25% of the offline survey data in the tail of the data packet with the 25% of the offline survey data in the header of the data packet with the 3rd sequence number. Then, the data packet with sequence number 2 is re-verified. At this point, there is a high probability that the data packet with sequence number 2 will pass the verification. Therefore, the server does not need to instruct the survey device to resend the data packet with sequence number 2, thus increasing the probability of successfully uploading offline survey data in poor network environments.
[0090] Figure 4 This is a schematic diagram of a soil field survey device for an adaptive network environment according to a specific embodiment of the present invention. As shown in the figure, the specific embodiment of the present invention includes a soil field survey device for an adaptive network environment. The device includes a data acquisition module 10, a data temporary storage module 20, a data submission module 30, a data parsing and verification module 40, and a data persistent storage module 50. The data acquisition module 10, the data temporary storage module 20, and the data submission module 30 are located in the survey equipment, while the data parsing and verification module 40 and the data persistent storage module 50 are located in the server.
[0091] The data acquisition module 10 is used to acquire survey task information online based on the identity information of the survey equipment. The survey task information includes the identification information of the soil survey task and the form model of the survey data. It also constructs an offline data model based on the survey task information and forms offline survey data according to the offline data model after conducting the soil survey.
[0092] Data storage module 20 is used to temporarily store offline survey data;
[0093] The data submission module 30 obtains the current network connection status and signal strength of the survey equipment through network services. If the requirements are met, it uploads the survey equipment identification information, soil survey task identification information and offline survey data to the server.
[0094] The data parsing and verification module 40 is used to parse and verify the identity information of the survey equipment, the identification information of the soil survey task, and the offline survey data;
[0095] The persistent data storage module 50 is used to store the verified survey equipment identity information, soil survey task identification information, and offline survey data in the cloud database.
[0096] In the soil field survey device of the adaptive network environment of the present invention, the survey task information also includes an encrypted public key corresponding to the identity information of the survey device, and the data acquisition module 10 uses the encrypted public key to form offline survey data, and the data parsing and verification module 40 uses the private key corresponding to the identity information of the survey device to parse and verify the offline survey data.
[0097] The offline data model includes identification information of the soil survey task, structured data information and unstructured data information; the structured data information includes soil survey traceability data information, form data information and indexes of unstructured data information; the data acquisition module 10 uses a public key to encrypt the structured data information to obtain an encrypted string, and the encrypted string and the unstructured data information constitute the offline survey data;
[0098] The data parsing and verification module 40 uses the private key corresponding to the identity information of the survey device to parse and verify the offline survey data.
[0099] Through the above technical solutions, the specific embodiments of the present invention have achieved the following technical effects.
[0100] This invention enables efficient and secure data storage in various network environments. Compared to online storage methods, it solves the problem of data inability to be stored without a network; compared to offline storage methods, it solves the problems of easily tampered locally stored data and the inability to synchronize it in real time.
[0101] This invention employs an offline storage method for field survey data. According to the data storage format in this method, field survey data can be temporarily stored on survey equipment such as mobile terminals, ensuring that the data can be safely stored even in environments without network access. Once the network is restored, the data is automatically uploaded to the cloud, achieving seamless data integration.
[0102] This invention employs asymmetric encryption technology and a multi-factor authentication mechanism, including time consistency, version number matching, and MD5 hash verification, to effectively prevent temporary data from being tampered with and to ensure the integrity and reliability of the data.
[0103] This invention achieves real-time data updates and synchronization through the collaborative work of the cloud and survey devices, such as mobile terminals, thereby improving the efficiency of data storage.
[0104] The foregoing description illustrates and describes several preferred embodiments of the present invention. However, as mentioned above, it should be understood that the present invention is not limited to the forms disclosed in this specification and should not be construed as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be altered within the scope of the inventive concept described in this specification through the foregoing teachings or techniques or knowledge in related fields. Any modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.
Claims
1. A method for soil field survey in an adaptive network environment, characterized in that, The method includes the following steps: A. Obtaining survey task information online based on the identity information of the survey equipment, including soil survey task identification information and a form model of survey data; B. Constructing an offline data model based on the survey task information, generating offline survey data according to the offline data model after conducting the soil survey, and temporarily storing the offline survey data. C. Obtain the current network connection status and signal strength of the survey equipment through network services. If the requirements are met, upload the survey equipment identification information, soil survey task identification information, and offline survey data to the server. D. The server parses and verifies the identity information of the survey equipment, the identification information of the soil survey task, and the offline survey data. If the verification is successful, the data is stored in the cloud database. The survey task information also includes an encrypted public key corresponding to the identity information of the survey equipment. This public key is used to form offline survey data. The server uses the private key corresponding to the identity information of the survey equipment to parse and verify the offline survey data. The offline data model includes the identification information of the soil survey task, structured data, and unstructured data. The structured data includes soil survey traceability data, form data, and indexes of unstructured data. Forming the offline survey data involves encrypting the structured data using the encrypted public key to obtain an encrypted string. This encrypted string, along with the unstructured data, constitutes the offline survey data. The server's parsing and verification of the survey equipment identity information, the identification information of the soil survey task, and the offline survey data includes: the server decrypting the encrypted data using the private key corresponding to the identity information of the survey equipment, and then performing time consistency checks, version number matching checks, and digest value checks on the offline survey data. The soil survey traceability data includes the time information of the offline survey. The structured data information is encrypted using a public key to obtain an encrypted string that includes the time when the offline survey data was formed. The time consistency check includes the server comparing the time information of the offline survey and the time when the offline survey data was formed; if the time difference is within a predetermined threshold, the time consistency check passes.
2. The method for soil field investigation in an adaptive network environment as described in claim 1, characterized in that, The index of unstructured data information includes the digest value of the unstructured data information. The server decrypts the encrypted data according to the private key corresponding to the identity information of the investigation device to obtain the digest value of the unstructured data information. After locating the unstructured data information according to the index of the unstructured data information, the server digests the unstructured data information and compares the digest value of the decrypted unstructured data information with the server's digest value. If they match, the digest value verification passes.
3. The soil field survey method for an adaptive network environment as described in claim 1, characterized in that, After offline survey data passes time consistency checks, version number matching checks, and summary value checks, structured data is stored in a cloud-based relational database, while unstructured data is stored in a cloud-based object storage database.
4. The method for soil field investigation in an adaptive network environment as described in claim 1, characterized in that, The system obtains the current network connection status and signal strength of the survey equipment through network services. If the requirements are met, it uploads the survey equipment identification information, soil survey task identification information, and offline survey data to the server. This includes: Based on the current network connection status and signal strength of the survey equipment, the system divides the survey equipment identification information, soil survey task identification information, and offline survey data into one or more data packets and uploads them to the server. Each data packet includes the survey equipment identification information and the soil survey task identification information, and each data packet also includes some or all of the offline survey data.
5. The method for soil field investigation in an adaptive network environment according to claim 4, characterized in that, When there are multiple data packets, each data packet is of the same size, and the offline survey data portion of each data packet has a predetermined proportion of repetition. Each data packet also includes a check value for the offline survey data portion.
6. A soil field survey device adapted to a network environment, characterized in that, The device includes a data acquisition module, a data temporary storage module, a data submission module, a data parsing and verification module, and a data persistent storage module. The data acquisition, data temporary storage, and data submission modules are located within the survey equipment, while the data parsing and verification module and the data persistent storage module are located on a server. The data acquisition module acquires survey task information online based on the survey equipment's identity information. This task information includes soil survey task identification information and a form model of the survey data. It then constructs an offline data model based on the task information and generates offline survey data according to this model after the soil survey. The data temporary storage module temporarily stores the offline survey data. The data submission module obtains the survey equipment's current network connection status and signal strength through network services. If the requirements are met, it uploads the survey equipment's identity information, soil survey task identification information, and offline survey data to the server. The data parsing and verification module parses and verifies the survey equipment's identity information, soil survey task identification information, and offline survey data. The data persistent storage module stores the verified survey equipment's identity information, soil survey task identification information, and offline survey data in a cloud database. The survey task information includes an encrypted public key corresponding to the identity information of the survey equipment. This public key is used to form offline survey data. The server uses the private key corresponding to the identity information of the survey equipment to parse and verify the offline survey data. The offline data model includes soil survey task identification information, structured data, and unstructured data. The structured data includes soil survey traceability data, form data, and an index of the unstructured data. Forming the offline survey data involves encrypting the structured data using the encrypted public key to obtain an encrypted string. This encrypted string, along with the unstructured data, constitutes the offline survey data. The server's parsing and verification of the survey equipment identity information, soil survey task identification information, and offline survey data includes: the server decrypting the encrypted data using the private key corresponding to the survey equipment's identity information; and then performing time consistency checks, version number matching checks, and digest value checks on the offline survey data. The soil survey traceability data includes the time information of the offline survey. The structured data information is encrypted using a public key to obtain an encrypted string that includes the time when the offline survey data was formed. The time consistency check includes the server comparing the time information of the offline survey and the time when the offline survey data was formed; if the time difference is within a predetermined threshold, the time consistency check passes.
Citation Information
Patent Citations
Soil detection system based on Internet of Things
CN114137185A
Communication processing method and device for off-line service data
CN115865532A
Data offline caching method oriented to mine network-free scene
CN118869480A