CN114201499B - Data uploading method and device and computer equipment - Google Patents

Data uploading method and device and computer equipment Download PDF

Info

Publication number
CN114201499B
CN114201499B CN202210148590.7A CN202210148590A CN114201499B CN 114201499 B CN114201499 B CN 114201499B CN 202210148590 A CN202210148590 A CN 202210148590A CN 114201499 B CN114201499 B CN 114201499B
Authority
CN
China
Prior art keywords
data
point location
uploading
target data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210148590.7A
Other languages
Chinese (zh)
Other versions
CN114201499A (en
Inventor
付立明
易通
黄胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rootcloud Technology Co Ltd
Original Assignee
Rootcloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rootcloud Technology Co Ltd filed Critical Rootcloud Technology Co Ltd
Priority to CN202210148590.7A priority Critical patent/CN114201499B/en
Publication of CN114201499A publication Critical patent/CN114201499A/en
Application granted granted Critical
Publication of CN114201499B publication Critical patent/CN114201499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/10Information sensed or collected by the things relating to the environment, e.g. temperature; relating to location
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Toxicology (AREA)
  • Human Computer Interaction (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data uploading method and device and computer equipment. The data uploading method comprises the following steps: selecting a first number of preset areas from all initial storage areas; establishing a mapping relation between each virtual point location and actual point locations in a second number of reference areas; if a starting instruction input by a user is received, reading target data stored by corresponding actual point positions from each virtual point position according to a mapping relation; and uploading all target data read by each virtual point location in the preset area to a target storage area. According to the method and the device, the target data in the reference area are read to the preset area, and the purpose that the target data are integrated and then uploaded to the target storage area is achieved. Before the target data are uploaded to the target storage area, calculation can be carried out based on the integrated target data, attribute data are added, the attribute information corresponding to the target data is flexibly adjusted, and the technical effects of further calculation processing and attribute addition on the target data can be achieved.

Description

Data uploading method and device and computer equipment
Technical Field
The present application relates to the field of data transmission, and in particular, to a data uploading method and apparatus, and a computer device.
Background
With the rise of industrial internet, more and more factory devices need to access the internet. However, the types of devices are various, and the access modes and conditions for each type of device are different. However, in the production application, the working condition data acquired by different acquisition devices needs to be uploaded to the cloud platform through a transfer device.
The prior art generally realizes the "all-in-one" function by developing a data forwarding platform. For uploading one piece of equipment of multiple pieces of equipment, a function specially used for integrating the working condition data of multiple pieces of acquisition equipment into one acquisition equipment is added in the data forwarding platform, namely, the working condition data of all other acquisition equipment is written into one acquisition equipment and then uploaded to the cloud platform. All the working condition data are directly uploaded to the cloud platform through one acquisition device, and further calculation processing and attribute addition cannot be carried out on the working condition data.
Therefore, the prior art has the technical problem that further calculation processing and attribute addition cannot be carried out on the working condition data.
Disclosure of Invention
In order to solve the technical problem, the invention provides a data uploading method, a data uploading device and computer equipment, and the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a data uploading method, where the data uploading method includes:
selecting a first number of preset regions from all initial storage regions, wherein each preset region comprises at least one virtual point location, and the virtual point location is a null value;
establishing a mapping relation between each virtual point location and an actual point location in a reference area of a second quantity, wherein the first quantity is different from the second quantity, the first quantity and the second quantity are positive integers, each reference area comprises at least one actual point location, each actual point location stores target data to be uploaded, and one virtual point location corresponds to one actual point location;
if a starting instruction input by a user is received, reading the target data stored in the corresponding actual point location from each virtual point location according to the mapping relation;
and uploading all the target data read by each virtual point in the preset area to a target storage area.
According to a specific embodiment disclosed in the present application, the step of selecting a first number of preset regions from all initial storage regions includes:
receiving an uploading instruction input by a user, wherein the uploading instruction comprises a first number of transmission channels, and the uploading instruction is used for instructing to upload all target data to the target storage area through the transmission channels of the first number respectively;
if the first quantity is not equal to the second quantity, sending a selection request;
and selecting the preset areas meeting the first quantity of the selection instructions from all initial storage areas according to the selection instructions fed back by the user based on the selection request, wherein the selection instructions comprise any one of random selection and selection according to area numbers input by the user, and each initial storage area corresponds to different area numbers.
According to a specific embodiment disclosed in the present application, the step of uploading all the target data read by each virtual point location in the preset area to a target storage area includes:
judging whether a modification instruction input by a user is received, wherein the modification instruction comprises an attribute type and an attribute value corresponding to the newly added preset area;
if the modification instruction input by a user is received, storing the attribute type and the attribute value of the simulation equipment corresponding to the preset area in the modification instruction to any blank virtual point position in the preset area;
and uploading the newly added attribute type, the attribute value and all the target data read by each virtual point location in the preset area to the target storage area.
According to a specific embodiment disclosed in the present application, the step of obtaining the target data includes:
acquiring real-time environment data corresponding to a target environment through acquisition equipment or acquiring stored historical environment data from a reference database through the acquisition equipment, wherein the types of the environment data comprise temperature, pressure and yield;
and determining the real-time environment data and the historical environment data as the target data.
In a second aspect, an embodiment of the present application provides a data uploading apparatus, where the data uploading apparatus includes:
the device comprises a selecting module, a storage module and a processing module, wherein the selecting module is used for selecting a first number of preset regions from all initial storage regions, each preset region comprises at least one virtual point location, and the virtual point locations are null values;
the mapping module is configured to establish a mapping relationship between each virtual point location and an actual point location in a second number of reference regions, where the first number is different from the second number, the first number and the second number are positive integers, each reference region includes at least one actual point location, each actual point location stores target data to be uploaded, and one virtual point location corresponds to one actual point location;
the reading module is used for reading the target data stored in the corresponding actual point location from each virtual point location according to the mapping relation if a starting instruction input by a user is received;
and the uploading module is used for uploading all the target data read by each virtual point location in the preset area to a target storage area.
According to a specific embodiment disclosed in the present application, the selecting module is specifically configured to:
receiving an uploading instruction input by a user, wherein the uploading instruction comprises a first number of transmission channels, and the uploading instruction is used for instructing to upload all target data to the target storage area through the transmission channels of the first number respectively;
if the first quantity is not equal to the second quantity, sending a selection request;
and selecting the preset areas meeting the first quantity of the selection instructions from all initial storage areas according to the selection instructions fed back by the user based on the selection request, wherein the selection instructions comprise any one of random selection and selection according to area numbers input by the user, and each initial storage area corresponds to different area numbers.
According to a specific embodiment disclosed in the present application, the upload module is specifically configured to:
judging whether a modification instruction input by a user is received, wherein the modification instruction comprises an attribute type and an attribute value corresponding to the newly added preset area;
if the modification instruction input by a user is received, storing the attribute type and the attribute value of the simulation equipment corresponding to the preset area in the modification instruction to any blank virtual point position in the preset area;
and uploading the newly added attribute type, the attribute value and all the target data read by each virtual point location in the preset area to the target storage area.
According to a specific embodiment disclosed in the present application, the data uploading apparatus further includes:
the acquisition module is used for acquiring real-time environmental data corresponding to a target environment through acquisition equipment or acquiring stored historical environmental data from a reference database through the acquisition equipment, wherein the types of the environmental data comprise temperature, pressure and yield;
and determining the real-time environment data and the historical environment data as the target data.
In a third aspect, the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the computer program, when executed on the processor, implements the data uploading method in any embodiment of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed on a processor, the computer program implements the data uploading method described in any one of the embodiments of the first aspect.
Compared with the prior art, the method has the following beneficial effects:
the method comprises the steps of selecting a first number of preset areas from all initial storage areas, and establishing a mapping relation between each virtual point location and actual point locations in a second number of reference areas. And if a starting instruction input by a user is received, reading target data stored by corresponding actual point positions from each virtual point position according to the mapping relation, and uploading all the target data read by each virtual point position in the preset area to the target storage area. According to the method and the device, the target data in the reference area are read to the preset area, and the purpose that the target data are integrated and then uploaded to the target storage area is achieved. Before the target data are uploaded to the target storage area, calculation can be carried out based on the integrated target data, attribute data are added, the attribute information corresponding to the target data is flexibly adjusted, and the technical effects of further calculation processing and attribute addition on the target data can be achieved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 is a schematic flow diagram of a data acquisition platform according to the prior art;
FIG. 2 is a second schematic flow chart of a data acquisition platform according to the prior art;
fig. 3 is a schematic flowchart of a data uploading method according to an embodiment of the present application;
fig. 4 is a second schematic flowchart of a data uploading method according to an embodiment of the present application;
fig. 5 is a schematic flow chart illustrating data handling involved in a data uploading method according to an embodiment of the present application;
fig. 6 is a block diagram of a data uploading apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flow chart of a data acquisition platform in the prior art, and fig. 2 is a schematic flow chart of a data acquisition platform in the prior art.
After the data acquisition platform acquires the working condition data of the two acquisition devices, all the working condition data are synthesized together and directly transmitted to one device capable of uploading the working condition data to the IOT platform. Or grouping the acquired working condition data of one acquisition device, and directly transmitting the working condition data to corresponding equipment capable of uploading the working condition data to the IOT platform. Because the data acquisition platform directly transmits the integrated or split working condition data to the IOT platform, further calculation processing cannot be performed on the working condition data, and any required attribute information, such as the overall positions of all acquisition devices corresponding to the integrated working condition data or the information of management staff corresponding to the acquisition devices, cannot be added.
The method aims to solve the technical problem that further calculation processing and attribute addition cannot be carried out on the combined or later working condition data. The application provides a data uploading method. Referring to fig. 3, fig. 3 is a schematic flowchart of a data uploading method according to an embodiment of the present application.
After the data acquisition platform acquires the target data of a plurality of acquisition devices, if the target data needs to be synthesized into one device and sent to the cloud platform, at least one simulation device can be newly built according to specific use requirements and application scenes. The point location data in each simulation device and the point location data in the acquisition device have a preset mapping relation. If the target data needs to be uploaded to the IOT platform, namely the point location data of the simulation equipment needs to be read, the point location data in the real acquisition equipment, namely the target data, can be directly read through the data carrier according to the mapping relation. As shown in fig. 3, address1, address2, and address3 of one acquisition device and address4, address5, and address6 of another acquisition device are directly mapped into a simulation device including 6 points including address1-address6 by this method. In specific implementation, the point location calculation can be performed on the simulation equipment, and new attributes such as equipment positions and responsible persons can be given. And then forwarding the target data which is subjected to point location calculation and endowed with new attributes to the IOT platform.
Referring to fig. 4, fig. 4 is a second flowchart illustrating a data uploading method according to an embodiment of the present application. As shown in fig. 4, the data uploading method mainly includes:
step S401, selecting a first number of preset areas from all initial storage areas, wherein each preset area comprises at least one virtual point location, and the virtual point location is a null value.
In specific implementation, the initial storage area corresponds to one of the simulation devices described above, the specific storage spaces of the initial storage areas may be the same or different, and may be customized according to the actual use requirement of the user and the specific application scenario, which is not further limited herein. The first amount may be determined by user input or may be a fixed value. Each preset area includes at least one virtual point location. A "point" is a storage node, such as a bit or bits in a register, for storing target data. The virtual point is a null value, and is used for reading the target data in the acquisition device according to the mapping relationship described above.
The step of acquiring the target data comprises the following steps:
acquiring real-time environmental data corresponding to a target environment through acquisition equipment or acquiring stored historical environmental data from a reference database through the acquisition equipment, wherein the types of the environmental data comprise temperature, pressure and yield;
and determining the real-time environment data and the historical environment data as the target data.
During specific implementation, the acquisition equipment is arranged at a position corresponding to a target environment and is used for acquiring various working condition data, such as temperature, pressure, humidity and the like in the target environment. The collecting device may also be a counting device used for calculating products in a certain factory, and therefore, the target data may also be the yield of a production plant, etc., and is not limited herein. The acquisition device may also be connected to a reference database, including but not limited to a database corresponding to a local area network. Thus, the target data may also be environmental data that references a history already stored in the database.
The step of selecting a first number of preset regions from all initial storage regions comprises:
receiving an uploading instruction input by a user, wherein the uploading instruction comprises a first number of transmission channels, and the uploading instruction is used for instructing to upload all target data to the target storage area through the transmission channels of the first number respectively;
if the first quantity is not equal to the second quantity, sending a selection request;
and selecting the preset areas meeting the first quantity of the selection instructions from all initial storage areas according to the selection instructions fed back by the user based on the selection request, wherein the selection instructions comprise any one of random selection and selection according to area numbers input by the user, and each initial storage area corresponds to different area numbers.
In particular implementations, the number of reference devices may be defined as the second number. If the number of the acquisition units is the same as the number of the transmission channels input by the user, the connection relationship between each acquisition device and the IOT platform can be established, and the acquisition device directly transmits the target data to the IOT platform. If the number of the acquisition units is different from the number of the transmission channels input by the user, a selection request can be sent to the user, and the selection request is used for prompting the user to select a first number of preset areas from all the initial storage areas. Each initial storage area corresponds to different area numbers, and a user can select a first number of preset areas from all the initial storage areas according to the different area numbers or the contrast relation between the different area numbers and specific storage space numerical values. Or returning a selection instruction with the type of random selection to enable the server to select any preset area with the first number from all the initial storage areas.
Step S402, establishing a mapping relation between each virtual point location and an actual point location in a reference area of a second quantity, wherein the first quantity is different from the second quantity, the first quantity and the second quantity are positive integers, each reference area comprises at least one actual point location, each actual point location stores target data to be uploaded, and one virtual point location corresponds to one actual point location.
Step S402 is explained below by a specific example. For example, the reference areas a and B corresponding to the two acquisition devices, and the preset area C corresponding to the simulation device selected according to the upload instruction of the user. A comprises three actual points, namely address11, address12 and address13, and B also comprises three actual points, namely address14, address15 and address 16. And each actual point location stores target data. At least 6 virtual points exist in the preset area C, which are address21, address22, address23, address24, address25 and address 26. At this time, each virtual point in the preset area C is null. The specific mapping relationship can be customized according to the actual use requirement of the user and the specific application scenario, for example:
address11-address21;
address12-address22;
address13-address23;
address14-address24;
address15-address25;
address16-address26;
in specific implementation, each virtual point location establishes a mapping relationship with any one actual point location, and it should be noted that the virtual point locations and the actual point locations are in one-to-one correspondence.
Step S403, if a start instruction input by a user is received, reading the target data stored in the corresponding actual point location from each virtual point location according to the mapping relationship.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating data handling related to a data uploading method according to an embodiment of the present application. If a start instruction input by a user is received, the target data stored in the corresponding actual point location may be read from each virtual point location according to the mapping relationship described above, for example, there is a mapping relationship between the virtual point location address21 and the actual point location address11, at this time, the address of address21 points to address11, so as to read the target data stored in address 21.
Step S404, uploading all the target data read from each virtual point location in the preset area to a target storage area.
In specific implementation, the target storage area is a storage space after target data is uploaded, such as the IOT platform described above.
Uploading all the target data read by each virtual point location in the preset area to a target storage area, wherein the step comprises the following steps:
judging whether a modification instruction input by a user is received, wherein the modification instruction comprises an attribute type and an attribute value corresponding to the newly added preset area;
if the modification instruction input by a user is received, storing the attribute type and the attribute value of the simulation equipment corresponding to the preset area in the modification instruction to any blank virtual point position in the current preset area;
and uploading the newly added attribute type, the attribute value and all the target data read by each virtual point location in the preset area to the target storage area.
In specific implementation, the attribute definition can be carried out again on the simulation equipment assembled by a plurality of acquisition equipment. If a modification instruction input by a user is received, the attribute type and the corresponding attribute value of the simulation equipment input by the book in the modification instruction can be stored to any blank virtual point position in the current preset area. For example, if the aforementioned acquisition devices are all responsible for data management by the same staff member a, the target data read by the simulation device all come from the acquisition devices managed by the staff member a. Therefore, a new attribute type- "responsible person" can be defined for the simulation device, and the attribute value corresponding to the "responsible person" is "a". Other attribute types and corresponding attribute values may be customized according to specific usage requirements and application scenarios, and are not further limited herein.
The point location calculation mentioned above refers to any data processing process based on point location data. For example, the acquisition device N stores point location data: in the temperature data of the X region from 11 points to 12 points, the acquisition device M stores point data: from 11 points to 12 points, the temperature data of the Y region, the simulation device S is an aggregate of the corresponding acquisition devices N and M. At this time, the attribute type "average temperature" of the analog device may be added, and the overall average temperature value T corresponding to the X region and the Y region among 11 to 12 points may be calculated by aggregation calculation, and the average temperature value T is set as the attribute value corresponding to the "average temperature".
In addition, by the data uploading method, the target data corresponding to one acquisition device can be uploaded to the target storage area through a plurality of simulation devices. The existing data platform does not develop and develop the function of one-to-many, and in order to achieve the effect, the corresponding code can only be uploaded after being written dead, so that the transportability is poor. The method and the device can solve the technical problem that the transportability of uploading the target data to the target storage area in a one-to-many mode is poor.
Furthermore, since the target data acquired by a plurality of acquisition devices can generally only be read in their entirety, the subsystem D includes the acquisition devices D1 and D2, for example. Then, only the whole storage area corresponding to D can be read at this time, and it is difficult to distinguish the sub-storage areas corresponding to D1 and D2. In particular, although there may be parameter differences between the target data of different acquisition devices, for example a certain Z-parameter is used to characterize the number of acquisition devices. However, due to the reading limitation mentioned above, only the target data can be read integrally, and at this time, all the target data corresponding to D can be transmitted to different simulation devices through the mapping relationship by the data uploading method mentioned above, where each simulation device corresponds to the same Z parameter. And then adding an attribute type and an attribute value to each simulation device so as to distinguish target data corresponding to different acquisition devices. More specific embodiments may be customized according to actual use requirements of users and specific application scenarios, and are not further limited herein.
According to the method and the device, the target data in the reference area are read to the preset area, and the purpose that the target data are integrated and then uploaded to the target storage area is achieved. Before the target data are uploaded to the target storage area, calculation can be carried out based on the integrated target data, attribute data are added, the attribute information corresponding to the target data is flexibly adjusted, and the technical effects of further calculation processing and attribute addition on the target data can be achieved.
Corresponding to the above method embodiment, referring to fig. 6, the present invention further provides a data uploading apparatus 600, where the data uploading apparatus 600 includes:
a selecting module 601, configured to select a first number of preset regions from all initial storage regions, where each preset region includes at least one virtual point location, and the virtual point location is a null value;
a mapping module 602, configured to establish a mapping relationship between each virtual point location and an actual point location in a reference region of a second quantity, where the first quantity is different from the second quantity, the first quantity and the second quantity are positive integers, each reference region includes at least one actual point location, each actual point location stores target data to be uploaded, and one virtual point location corresponds to one actual point location;
a reading module 603, configured to, if a start instruction input by a user is received, read the target data stored in the corresponding actual point location from each virtual point location according to the mapping relationship;
an uploading module 604, configured to upload all the target data read by each virtual point location in the preset area to a target storage area.
In specific implementation, the selection module is specifically configured to:
receiving an uploading instruction input by a user, wherein the uploading instruction comprises a first number of transmission channels, and the uploading instruction is used for instructing to upload all target data to the target storage area through the transmission channels of the first number respectively;
if the first quantity is not equal to the second quantity, sending a selection request;
and selecting the preset areas meeting the first quantity of the selection instructions from all initial storage areas according to the selection instructions fed back by the user based on the selection request, wherein the selection instructions comprise any one of random selection and selection according to area numbers input by the user, and each initial storage area corresponds to different area numbers.
In specific implementation, the upload module is specifically configured to:
judging whether a modification instruction input by a user is received, wherein the modification instruction comprises an attribute type and an attribute value corresponding to the newly added preset area;
if the modification instruction input by a user is received, storing the attribute type and the attribute value of the simulation equipment corresponding to the preset area in the modification instruction to any blank virtual point position in the preset area;
and uploading the newly added attribute type, the attribute value and all the target data read by each virtual point location in the preset area to the target storage area.
In specific implementation, the data uploading device further includes:
the acquisition module is used for acquiring real-time environmental data corresponding to a target environment through acquisition equipment or acquiring stored historical environmental data from a reference database through the acquisition equipment, wherein the types of the environmental data comprise temperature, pressure and yield;
and determining the real-time environment data and the historical environment data as the target data.
In addition, a computer device is provided, the computer device comprises a processor and a memory, the memory stores a computer program, and the computer program realizes the data uploading method when executed on the processor.
Furthermore, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed on a processor, implements the above-mentioned data uploading method.
For specific implementation processes of the data uploading apparatus, the computer device, and the computer-readable storage medium provided by the present application, reference may be made to the specific implementation processes of the data uploading method provided in the foregoing embodiments, and details are not repeated here.
According to the data uploading device, the computer equipment and the computer readable storage medium, the target data in the reference area are read to the preset area, and the purpose that the target data are uploaded to the target storage area after being integrated is achieved. Before the target data are uploaded to the target storage area, calculation can be carried out based on the integrated target data, attribute data are added, the attribute information corresponding to the target data is flexibly adjusted, and the technical effects of further calculation processing and attribute addition on the target data can be achieved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part thereof which contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (6)

1. A data uploading method, characterized in that the data uploading method comprises:
selecting a first number of preset regions from all initial storage regions, wherein each preset region comprises at least one virtual point location, and the virtual point location is a null value;
establishing a mapping relation between each virtual point location and an actual point location in a reference area of a second quantity, wherein the first quantity is different from the second quantity, the first quantity and the second quantity are positive integers, each reference area comprises at least one actual point location, each actual point location stores target data to be uploaded, and one virtual point location corresponds to one actual point location;
if a starting instruction input by a user is received, reading the target data stored in the corresponding actual point location from each virtual point location according to the mapping relation;
uploading all the target data read by each virtual point location in the preset area to a target storage area;
uploading all the target data read by each virtual point location in the preset area to a target storage area, wherein the step comprises the following steps:
judging whether a modification instruction input by a user is received, wherein the modification instruction comprises an attribute type and an attribute value corresponding to the newly added preset area;
if the modification instruction input by a user is received, storing the attribute type and the attribute value of the simulation equipment corresponding to the preset area in the modification instruction to any blank virtual point position in the preset area;
uploading the newly added attribute type, the attribute value and all the target data read by each virtual point location in the preset area to the target storage area;
the step of selecting a first number of preset regions from all initial storage regions comprises:
receiving an uploading instruction input by a user, wherein the uploading instruction comprises a first number of transmission channels, and the uploading instruction is used for instructing to upload all target data to the target storage area through the transmission channels of the first number respectively;
if the first quantity is not equal to the second quantity, sending a selection request;
and selecting the preset areas meeting the first quantity of the selection instructions from all initial storage areas according to the selection instructions fed back by the user based on the selection request, wherein the selection instructions comprise any one of random selection and selection according to area numbers input by the user, and each initial storage area corresponds to different area numbers.
2. The data uploading method according to claim 1, wherein the step of obtaining the target data comprises:
acquiring real-time environment data corresponding to a target environment through acquisition equipment or acquiring stored historical environment data from a reference database through the acquisition equipment, wherein the types of the environment data comprise temperature, pressure and yield;
and determining the real-time environment data and the historical environment data as the target data.
3. A data uploading apparatus, comprising:
the device comprises a selecting module, a storage module and a processing module, wherein the selecting module is used for selecting a first number of preset regions from all initial storage regions, each preset region comprises at least one virtual point location, and the virtual point locations are null values;
the mapping module is configured to establish a mapping relationship between each virtual point location and an actual point location in a second number of reference regions, where the first number is different from the second number, the first number and the second number are positive integers, each reference region includes at least one actual point location, each actual point location stores target data to be uploaded, and one virtual point location corresponds to one actual point location;
the reading module is used for reading the target data stored in the corresponding actual point location from each virtual point location according to the mapping relation if a starting instruction input by a user is received;
the uploading module is used for uploading all the target data read by each virtual point location in the preset area to a target storage area;
the uploading module is specifically configured to:
judging whether a modification instruction input by a user is received, wherein the modification instruction comprises an attribute type and an attribute value corresponding to the newly added preset area;
if the modification instruction input by a user is received, storing the attribute type and the attribute value of the simulation equipment corresponding to the preset area in the modification instruction to any blank virtual point position in the preset area;
uploading the newly added attribute type, the attribute value and all the target data read by each virtual point location in the preset area to the target storage area;
the selection module is specifically configured to:
receiving an uploading instruction input by a user, wherein the uploading instruction comprises a first number of transmission channels, and the uploading instruction is used for instructing to upload all target data to the target storage area through the transmission channels of the first number respectively;
if the first quantity is not equal to the second quantity, sending a selection request;
and selecting the preset areas meeting the first quantity of the selection instructions from all initial storage areas according to the selection instructions fed back by the user based on the selection request, wherein the selection instructions comprise any one of random selection and selection according to area numbers input by the user, and each initial storage area corresponds to different area numbers.
4. The data uploading apparatus according to claim 3, further comprising:
the acquisition module is used for acquiring real-time environmental data corresponding to a target environment through acquisition equipment or acquiring stored historical environmental data from a reference database through the acquisition equipment, wherein the types of the environmental data comprise temperature, pressure and yield;
and determining the real-time environment data and the historical environment data as the target data.
5. A computer device, characterized in that the computer device comprises a processor and a memory, the memory storing a computer program which, when executed on the processor, implements the data upload method of any of claims 1 to 2.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed on a processor, implements the data uploading method of any of claims 1 to 2.
CN202210148590.7A 2022-02-18 2022-02-18 Data uploading method and device and computer equipment Active CN114201499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210148590.7A CN114201499B (en) 2022-02-18 2022-02-18 Data uploading method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210148590.7A CN114201499B (en) 2022-02-18 2022-02-18 Data uploading method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN114201499A CN114201499A (en) 2022-03-18
CN114201499B true CN114201499B (en) 2022-05-24

Family

ID=80645666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210148590.7A Active CN114201499B (en) 2022-02-18 2022-02-18 Data uploading method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN114201499B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105864959A (en) * 2016-03-31 2016-08-17 北京博锐尚格节能技术股份有限公司 Controller for water distributor and water collector
CN110398922A (en) * 2019-07-31 2019-11-01 珠海格力电器股份有限公司 Automatic building control system and its configuration method, device, equipment
CN112269789A (en) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 Method and device for storing data and method and device for reading data
CN112540898A (en) * 2020-12-25 2021-03-23 北京百度网讯科技有限公司 Data processing method and platform, system, electronic device and readable medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109126129B (en) * 2018-08-31 2022-03-08 腾讯科技(深圳)有限公司 Method, device and terminal for picking up virtual article in virtual environment
CN113010935A (en) * 2021-02-19 2021-06-22 龙元建设集团股份有限公司 Management method and system for BIM application based on Revit monitoring platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105864959A (en) * 2016-03-31 2016-08-17 北京博锐尚格节能技术股份有限公司 Controller for water distributor and water collector
CN110398922A (en) * 2019-07-31 2019-11-01 珠海格力电器股份有限公司 Automatic building control system and its configuration method, device, equipment
CN112269789A (en) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 Method and device for storing data and method and device for reading data
CN112540898A (en) * 2020-12-25 2021-03-23 北京百度网讯科技有限公司 Data processing method and platform, system, electronic device and readable medium

Also Published As

Publication number Publication date
CN114201499A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN110413690A (en) Method of data synchronization, server, electronic equipment, the storage medium of database
CN105550225A (en) Index construction method and query method and apparatus
CN111106899B (en) Data verification method and device in Internet of things, computer equipment and storage medium
CN110611876A (en) Indoor asset management method, device and system
CN111064776B (en) Block generation method in block chain, accounting node and storage medium
CN114025027B (en) Method and device for running data transmission script, storage medium and electronic device
CN105630419A (en) Partition view sending method of resource pools and management node
CN114201499B (en) Data uploading method and device and computer equipment
CN104468764A (en) Method, device and system for strategy scheduling
CN109993562B (en) Satisfaction degree simulation method and device and terminal equipment
CN112804099A (en) Parameter batch configuration method and device, computer equipment and readable storage medium
CN103051480B (en) The storage means of a kind of DN and DN storage device
KR20150080997A (en) Multiple tactical datalink message processing method using markup language
CN110019538A (en) A kind of tables of data switching method and device
CN114466387B (en) Updating method and device of configuration file of base station, storage medium and electronic device
US10157216B2 (en) Data management system and data management method
CN111552715B (en) User query method and device
CN111815339B (en) Marketing information pushing method and device
CN112100208A (en) Operation request forwarding method and device
CN112419058A (en) Data management method and device, storage medium and electronic equipment
CN112468317A (en) Cluster topology updating method, system, equipment and computer storage medium
CN116842031B (en) Data updating method, device and storage medium
CN116339703B (en) Bus interface code generation method and device, electronic equipment and medium
CN111090975B (en) Data printing method, data processing system and computer storage medium
CN116055915A (en) Method, device, computer equipment and storage medium for searching table

Legal Events

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