Smart agricultural trade system based on digital twin
By using domestic databases and 3D modeling engines for data display in the farmer's market management system, combined with the channel selection module to optimize network transmission, the problem of data security risks and unintuitive display is solved, and safe, controllable and efficient transmission of data is achieved.
Patent Information
- Application Number
- CN202210925651.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-08-03
AI Technical Summary
The existing farmer's market management system has data security risks, cannot effectively display multi-dimensional information, statistical data is not intuitive, and the back-end system uses non-domestic databases.
A domestic database is used to store the collected data, and a one-to-one real-time modeling display is performed through a 3D modeling engine. It is combined with the channel selection module to optimize network transmission and improve data security and display effects.
It achieves safe, controllable and intuitive image display of data, provides a panoramic system platform for farmers' markets, enhances data transmission speed and timeliness, and reduces data security risks.
Smart Images

Figure CN115496460B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of digital twin technology, and in particular to a smart agricultural trade system based on digital twin. Background Art
[0002] Farmers' markets play an important social role. Compared with e-commerce markets and supermarkets, farmers' markets provide more high-quality and low-priced food ingredients. Centralized sales and diversified choices have attracted more citizens to choose farmers' markets. They also provide a large number of jobs and competition opportunities for the local area. At the same time, as a carrier of government livelihood projects, the market plays a pivotal role in promoting urban upgrading, enriching community service functions, and building a happy city.
[0003] With the development of science and technology, in order to improve the management level of farmers' markets, an farmers' market management system platform has been established. It can collect video data and merchant data in the market for direct or report display. However, the existing farmers' market management system basically stays at the simple management of stall information and the relationship between stalls and markets. It is unable to conduct statistical analysis on the multi-dimensional information of farmers' markets from multiple perspectives such as security, timeliness, and accuracy. The output statistical data is not intuitive enough. In addition, the backend systems basically use non-domestic databases, which poses certain data security risks. Summary of the invention
[0004] In view of this, the embodiment of the present invention provides a smart agricultural trade system based on digital twins, which is used to solve the problem that the existing agricultural trade management system platform has data security risks and cannot display data well. The present invention uses a domestic database to store data, and uses a 3D modeling engine to perform one-to-one real-time modeling to display the data in the database, effectively improving the security of the data and the data display effect.
[0005] The embodiment of the present invention provides a smart agricultural trade system based on digital twins, which is used on the server side and includes:
[0006] A data receiving and storing module, used to store the collected data sent by the collection terminals arranged in various directions and / or angles of the target farmers' market in a domestic database;
[0007] The digital twin display module is used to display the data stored in the domestic database in a one-to-one real-time manner through a 3D modeling engine.
[0008] In an optional embodiment, the 3D modeling engine is Three.js.
[0009] In an optional embodiment, the digital twin-based smart agricultural trade system further includes:
[0010] A channel selection module is used to test the transmission delay of multiple network transmission channels between the local and each acquisition terminal, and for each acquisition terminal, the network transmission channel with the smallest transmission delay among the multiple network transmission channels corresponding to the acquisition terminal is used as the data transmission channel between the local and the acquisition terminal;
[0011] The data receiving and storing module is specifically used to store the collected data sent by each data transmission channel in the domestic database.
[0012] In an optional embodiment, the channel selection module includes:
[0013] A test data sending unit, used to send the channel test data with the sending time node to each acquisition terminal through each network transmission channel at a preset time interval;
[0014] A data receiving unit, used for receiving first data sent by each acquisition terminal through each network transmission channel;
[0015] A time writing unit, used for writing a receiving time node into the first data to obtain second data;
[0016] A data transmission delay calculation unit, used to calculate the transmission delay of each network transmission channel between the local and each acquisition terminal according to the second data;
[0017] The target channel determination unit is used to use the network transmission channel with the smallest transmission delay among the multiple network transmission channels corresponding to the target acquisition terminal as the data transmission channel between the local and the target acquisition terminal.
[0018] In an optional embodiment, the time writing unit is specifically used to write the receiving time node in the first data sent by the target acquisition terminal through the first network transmission channel according to the first formula, so as to obtain the second data of the target acquisition terminal corresponding to the first network transmission channel; wherein the first network transmission channel is any network transmission channel between the channel selection module and the target acquisition terminal;
[0019] The data transmission delay calculation unit comprises:
[0020] A restoration determination value calculation subunit, used to calculate a determination value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored according to a second formula;
[0021] A judging subunit, configured to judge whether a judgment value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored is equal to 0;
[0022] a delay calculation subunit, configured to, when the result of the judgment by the judgment subunit is yes, determine the first data sent by the target acquisition terminal through the first network transmission channel as reply data of the target acquisition terminal in response to the channel test data, and calculate the transmission delay of the first network transmission channel between the local and the target acquisition terminal based on a third formula;
[0023] Among them, the first formula is:
[0024] R2=S2<<{len[(t0)2]}+(t0)2
[0025] In the first formula, R2 represents the second data of the target acquisition terminal in binary form corresponding to the first network transmission channel, S2 represents the first data sent by the target acquisition terminal in binary form through the first network transmission channel, t0 represents the receiving time node of the first data sent by the target acquisition terminal through the first network transmission channel, ()2 represents converting the value in the brackets into binary form, len[] represents the number of data bits in the brackets; << represents the left shift sign;
[0026] The second formula is:
[0027]
[0028] In the second formula, P represents the determination value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored; E2 represents the preset data frame header belonging to the time node, which is in binary form. Indicates a circular left shift symbol; >> indicates a right shift symbol;
[0029] The third formula is:
[0030]
[0031] In the third formula, T represents the transmission delay of the first network transmission channel between the local and target acquisition terminals; t c represents the sending time node extracted from the second data of the target acquisition terminal corresponding to the first network transmission channel; t m The receiving time node is extracted from the second data of the target acquisition terminal corresponding to the first network transmission channel; 10 Indicates converting the value in brackets to decimal form.
[0032] In an optional embodiment, the data transmission delay calculation unit further includes:
[0033] The data restoration subunit is used to delete the receiving time node in the second data corresponding to the first network transmission channel of the target acquisition terminal when the result of the judgment of the judgment subunit is no, and restore the first data sent by the target acquisition terminal through the first network transmission channel;
[0034] The data receiving and storing module is specifically used to store the first data recovered by the data restoring subunit in the domestic database as the collection data of the target collection terminal.
[0035] In an optional embodiment, the smart agricultural trade system based on digital twins further includes:
[0036] The alarm module is used to send network fault information to the designated client when the data transmission delay calculation unit calculates that the transmission delays of all network transmission channels between the target acquisition terminal and the target acquisition terminal are greater than a preset threshold; wherein the network fault information at least includes a network transmission channel identifier and its transmission delay.
[0037] In an optional embodiment, the collection terminal includes at least one of: a camera, a transaction collection terminal, and a traceability barcode scanning gun.
[0038] The digital twin-based smart agricultural trade system provided by the present invention first stores the collected data sent by the collection terminals set in various directions and / or angles of the target agricultural trade market in a domestic database, and then uses a 3D modeling engine to perform one-to-one real-time modeling to display the data in the domestic database. The present invention can intuitively and vividly provide a panoramic system platform for agricultural trade scenes, and achieve safety and control based on domestic databases, providing accurate and safe data support for agricultural big data. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of the structure of a smart agricultural trade system based on digital twins provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0042] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Figure 1 This is a schematic diagram of the structure of a smart agricultural trade system based on digital twins provided by an embodiment of the present invention. Figure 1 The system comprises:
[0044] The data receiving and storing module 1 is used to store the collected data sent from the collection terminals arranged in various directions and / or angles of the target farmers' market in the domestic database.
[0045] In this embodiment, with the development of science and technology in my country, there are more and more domestic databases, including: Nanjing University General GBASE Database, Jincang Database, OpenBASE, Shentong Database, etc. Domestic databases are used to store data, which effectively improves the security of data storage; at the same time, the collection terminal may include: cameras, transaction collection terminals, traceability scanners, etc., among which the camera can collect information about people, stalls, ground hygiene, etc. in the farmer's market, the transaction collection terminal can obtain transaction information of each stall, and the traceability scanner can scan the QR code on the product for traceability, and obtain the product's origin and transportation information, thereby ensuring product quality. The data collected by these collection terminals facilitates a comprehensive understanding of the situation in the farmer's market, and further facilitates the management of the farmer's market based on this information.
[0046] Digital twin display module 2 is used to perform one-to-one real-time modeling and display of data stored in the domestic database through a 3D modeling engine.
[0047] In this embodiment, the 3D modeling engine can be Three.js, which is a 3D engine running in the browser. It can be used to create various three-dimensional scenes, including various objects such as cameras, lights and shadows, and materials. Many wonderful demonstrations can be seen on its homepage, which will effectively improve the user's viewing experience.
[0048] The beneficial effects of the above technical solution are as follows: the digital twin-based smart agricultural trade system provided by the embodiment of the present invention first stores the collected data sent by the collection terminals set in various directions and / or angles of the target agricultural trade market in the domestic database, and then uses the 3D modeling engine to perform one-to-one real-time modeling to display the data in the domestic database. The present invention can provide a panoramic system platform for agricultural trade scenes in an intuitive and vivid way, and achieve safety and control based on the domestic database, providing accurate and safe data support for agricultural big data.
[0049] As an optional embodiment, the smart agricultural trade system based on digital twins further includes:
[0050] A channel selection module is used to test the transmission delay of multiple network transmission channels between the local and each acquisition terminal, and for each acquisition terminal, the network transmission channel with the smallest transmission delay among the multiple network transmission channels corresponding to the acquisition terminal is used as the data transmission channel between the local and the acquisition terminal;
[0051] The data receiving and storing module is specifically used to store the collected data sent by each data transmission channel in the domestic database.
[0052] The beneficial effect of the above technical solution is: multiple network transmission channels are added between the local server and each collection terminal, and then corresponding to each collection terminal, the network transmission channel with the smallest transmission delay among the multiple network transmission channels corresponding to the collection terminal is automatically selected as the data transmission channel between the server and the collection terminal to transmit the collected data, which effectively improves the data transmission speed and enhances the timeliness of Three.js's one-to-one real-time scene restoration.
[0053] As an optional embodiment, the channel selection module includes:
[0054] A test data sending unit, used to send the channel test data with the sending time node to each acquisition terminal through each network transmission channel at a preset time interval;
[0055] A data receiving unit, used for receiving first data in response to test data sent by each acquisition terminal through each network transmission channel;
[0056] A time writing unit, used for writing a receiving time node into the first data to obtain second data;
[0057] A data transmission delay calculation unit, used to calculate the transmission delay of each network transmission channel between the local and each acquisition terminal according to the second data;
[0058] The target channel determination unit is used to use the network transmission channel with the smallest transmission delay among the multiple network transmission channels corresponding to the target acquisition terminal as the data transmission channel between the local and the target acquisition terminal.
[0059] The beneficial effect of the above technical solution is: at preset time intervals, test data is sent to each acquisition terminal through each network transmission channel, the sending time is recorded in the data, and then the first data transmitted from each channel is received, and the receiving time is further written into the first data to obtain the second data, and finally, according to the sending time and receiving time in the second data, the transmission delay of each channel can be quickly obtained, which has the advantages of convenient implementation and strong operability.
[0060] As an optional embodiment, the time writing unit is specifically used to write the receiving time node in the first data sent by the target acquisition terminal through the first network transmission channel according to the first formula, and obtain the second data of the target acquisition terminal corresponding to the first network transmission channel; wherein the first network transmission channel is any network transmission channel between the channel selection module and the target acquisition terminal;
[0061] The data transmission delay calculation unit comprises:
[0062] A restoration determination value calculation subunit, used to calculate a determination value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored according to a second formula;
[0063] A judging subunit, configured to judge whether a judgment value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored is equal to 0;
[0064] a delay calculation subunit, configured to, when the result of the judgment by the judgment subunit is yes, determine the first data sent by the target acquisition terminal through the first network transmission channel as reply data of the target acquisition terminal in response to the channel test data, and calculate the transmission delay of the first network transmission channel between the local and the target acquisition terminal based on a third formula;
[0065] Among them, the first formula is:
[0066] R2=S2<<{len[(t0)2]}+(t0)2 (1)
[0067] In the first formula, R2 represents the second data of the target acquisition terminal in binary form corresponding to the first network transmission channel, S2 represents the first data sent by the target acquisition terminal in binary form through the first network transmission channel, t0 represents the receiving time node of the first data sent by the target acquisition terminal through the first network transmission channel, ()2 represents converting the value in the brackets into binary form, len[] represents the number of data bits in the brackets; << represents the left shift sign;
[0068] The second formula is:
[0069]
[0070] In the second formula, P represents the determination value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored. P=0 indicates that the second data is channel speed measurement data and does not need to be restored. P≠0 indicates that the second data is not channel speed measurement data and needs to be restored. E2 represents the preset data frame header belonging to the time node, which is in binary form. Indicates a circular left shift symbol; >> indicates a right shift symbol;
[0071] The third formula is:
[0072]
[0073] In the third formula, T represents the transmission delay of the first network transmission channel between the local and target acquisition terminals; t c represents the sending time node extracted from the second data of the target acquisition terminal corresponding to the first network transmission channel; t m The receiving time node is extracted from the second data of the target acquisition terminal corresponding to the first network transmission channel; 10 Indicates converting the value in brackets to decimal form.
[0074] The beneficial effects of the above technical solution are as follows: the first formula (1) is used to write the time node of the data receiving moment into the data, with the purpose of using the program to write the time node at an extremely fast speed, so that the time of receiving the data can be confirmed and written more accurately; then the second formula (2) is used to determine whether the data written to the time node needs to be restored according to the data frame header belonging to the time node, so as to filter out the channel speed measurement data, which is convenient for the subsequent calculation of the delay time; finally, the third formula (3) is used to analyze the data that does not need to be restored to obtain the delay time of the network transmission channel, so as to select the optimal channel for data transmission within a period of time according to the delay time, thereby improving the data transmission efficiency.
[0075] As an optional embodiment, the data transmission delay calculation unit further includes:
[0076] The data restoration subunit is used to delete the receiving time node in the second data corresponding to the first network transmission channel of the target acquisition terminal when the result of the judgment of the judgment subunit is no, and restore the first data sent by the target acquisition terminal through the first network transmission channel;
[0077] The data receiving and storing module is specifically used to store the first data recovered by the data restoring subunit in the domestic database as the collection data of the target collection terminal.
[0078] The beneficial effect of the above technical solution is: the time node of receiving the first data is written into the data, with the purpose of using the program to write the time node at an extremely fast speed, so that the time of receiving the data can be confirmed and written more accurately, and at the same time, the time node of the receiving moment of the non-channel speed measurement data is deleted, and it can be restored to the original non-channel test data, thereby ensuring the integrity of the data.
[0079] As an optional embodiment, the digital twin-based smart agricultural trade system further includes:
[0080] The alarm module is used to send network fault information to the designated client when the data transmission delay calculation unit calculates that the transmission delays of all network transmission channels between the target acquisition terminal and the target acquisition terminal are greater than a preset threshold; wherein the network fault information at least includes a network transmission channel identifier and its transmission delay.
[0081] The beneficial effect of the above technical solution is: when the transmission delay of all network transmission channels between the server and the target acquisition terminal is greater than the preset threshold, it means that there is a fault in the equipment in the network transmission channel. The fault information is promptly notified to the staff, which facilitates timely repair of the network and ensures continuous data transmission.
[0082] From the content of the above embodiment, it can be seen that Three.js is used for one-to-one real-time scene restoration, and the domestic database provides underlying data security support, thereby realizing statistical analysis of the existing agricultural trade system platform at multiple levels such as security, timeliness, and accuracy. Among them, the underlying data provided by the domestic database are all data collected from various directions and angles of the agricultural trade scene and transmitted to the database; in addition, in order to enhance the timeliness of one-to-one real-time scene restoration using Three.js, multiple network transmission channels are added to transmit the data collected from various directions and angles of the agricultural trade scene to the domestic database, and the selection of the channel is an intelligent and automatic selection. Every fixed preset time, the data carrying the sending time node and the data frame header belonging to the time node will be used to measure the network transmission channel speed for each channel, and after receiving the data, the received data length is first stored, and then the data receiving time node is written into the data, and then the frame header is used to determine whether the data written at the time node needs to be restored, and the data that does not need to be restored is analyzed to obtain the delay time of the network transmission channel, and the channel with the shortest delay time is selected from all network transmission channels for data transmission, which effectively improves the data transmission speed.
[0083] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 An apparatus for the method specified in one or more blocks.
[0084] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The method specified in one or more boxes.
[0085] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of a method specified in one or more boxes.
[0086] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these changes and variations. The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. The smart agricultural trade system based on digital twins is used on the server side, which is characterized by: include: A data receiving and storing module, used to store the collected data sent by the collection terminals arranged in various directions and / or angles of the target farmers' market in a domestic database; The digital twin display module is used to display the data stored in the domestic database in a one-to-one real-time modeling through a 3D modeling engine; Also includes: A channel selection module is used to test the transmission delay of multiple network transmission channels between the local and each acquisition terminal, and for each acquisition terminal, the network transmission channel with the smallest transmission delay among the multiple network transmission channels corresponding to the acquisition terminal is used as the data transmission channel between the local and the acquisition terminal; A data receiving and storing module, specifically used to store the collected data sent by each data transmission channel in a domestic database; Wherein, the channel selection module includes: A test data sending unit, used to send the channel test data with the sending time node to each acquisition terminal through each network transmission channel at a preset time interval; A data receiving unit, used for receiving first data sent by each acquisition terminal through each network transmission channel; A time writing unit, used for writing a receiving time node into the first data to obtain second data; A data transmission delay calculation unit, used to calculate the transmission delay of each network transmission channel between the local and each acquisition terminal according to the second data; A target channel determination unit, configured to use a network transmission channel with the smallest transmission delay among multiple network transmission channels corresponding to the target acquisition terminal as a data transmission channel between the local device and the target acquisition terminal; The time writing unit is specifically used to write the receiving time node in the first data sent by the target acquisition terminal through the first network transmission channel according to the first formula, so as to obtain the second data of the target acquisition terminal corresponding to the first network transmission channel; wherein the first network transmission channel is any network transmission channel between the channel selection module and the target acquisition terminal; The data transmission delay calculation unit comprises: A restoration determination value calculation subunit, used to calculate a determination value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored according to a second formula; A judging subunit, configured to judge whether a judgment value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored is equal to 0; a delay calculation subunit, configured to, when the result of the judgment by the judgment subunit is yes, determine the first data sent by the target acquisition terminal through the first network transmission channel as reply data of the target acquisition terminal in response to the channel test data, and calculate the transmission delay of the first network transmission channel between the local and the target acquisition terminal based on a third formula; Among them, the first formula is: R2=S2<<{len[(t0)2]}+(t0)2 In the first formula, R2 represents the second data of the target acquisition terminal in binary form corresponding to the first network transmission channel, S2 represents the first data sent by the target acquisition terminal in binary form through the first network transmission channel, t0 represents the receiving time node of the first data sent by the target acquisition terminal through the first network transmission channel, ()2 represents converting the value in the brackets into binary form, len[ ] represents the number of bits of the data in the brackets; << represents the left shift sign; The second formula is: In the second formula, P represents the determination value of whether the second data of the target acquisition terminal corresponding to the first network transmission channel needs to be restored; E2 represents the preset data frame header belonging to the time node, which is in binary form. Indicates the circular left shift symbol; >> indicates the right shift symbol; The third formula is: In the third formula, T represents the transmission delay of the first network transmission channel between the local and target acquisition terminals; t c represents the sending time node extracted from the second data of the target acquisition terminal corresponding to the first network transmission channel; t m The receiving time node is extracted from the second data of the target acquisition terminal corresponding to the first network transmission channel; {} 10 Indicates converting the value in brackets to decimal form.
2. The smart agricultural trade system based on digital twins as claimed in claim 1, characterized in that: The 3D modeling engine is Three.js.
3. The smart agricultural trade system based on digital twins as claimed in claim 1, characterized in that: The data transmission delay calculation unit further includes: The data restoration subunit is used to delete the receiving time node in the second data corresponding to the first network transmission channel of the target acquisition terminal when the result of the judgment of the judgment subunit is no, and restore the first data sent by the target acquisition terminal through the first network transmission channel; The data receiving and storing module is specifically used to store the first data recovered by the data restoring subunit in the domestic database as the collection data of the target collection terminal.
4. The digital twin-based smart agricultural trade system according to claim 1, characterized in that: The system further comprises: The alarm module is used to send network fault information to the designated client when the data transmission delay calculation unit calculates that the transmission delays of all network transmission channels between the target acquisition terminal and the target acquisition terminal are greater than a preset threshold; wherein the network fault information at least includes a network transmission channel identifier and its transmission delay.
5. The digital twin-based smart agricultural trade system according to claim 1, characterized in that: The collection terminal includes at least one of: a camera, a transaction collection terminal, and a traceability barcode scanning gun.
