CN114647650A - Data storage method and device, electronic equipment and storage medium - Google Patents
Data storage method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114647650A CN114647650A CN202210536396.6A CN202210536396A CN114647650A CN 114647650 A CN114647650 A CN 114647650A CN 202210536396 A CN202210536396 A CN 202210536396A CN 114647650 A CN114647650 A CN 114647650A
- Authority
- CN
- China
- Prior art keywords
- data
- message
- processed
- sub
- vehicle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C5/00—Registering or indicating the working of vehicles
- G07C5/008—Registering or indicating the working of vehicles communicating information to a remotely located station
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C5/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0841—Registering performance data
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Electric Propulsion And Braking For Vehicles (AREA)
Abstract
The embodiment of the invention discloses a data storage method, a data storage device, electronic equipment and a storage medium, wherein the method comprises the following steps: when a target vehicle is in a battery replacement process, acquiring a message to be processed of the target vehicle, and determining a data hierarchy relation corresponding to the message to be processed, wherein the message to be processed comprises data associated with the target vehicle, data associated with a driving motor and data associated with a battery pack; creating a main table for data at a first level in the data hierarchical relationship, and creating at least one sub-table associated with the main table for data at other levels in the data hierarchical relationship; and storing the data in the message to be processed into the main table and at least one sub-table according to the data hierarchy relationship. The technical scheme of the embodiment of the invention avoids the problems of inconvenient data management and excessively complex data aggregation caused by storing a large amount of data in a plurality of independent tables, and improves the data management level and efficiency of the power swapping station.
Description
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a data storage method and device, electronic equipment and a storage medium.
Background
At present, after a corresponding management platform is set up in a battery replacement station, relevant data of a vehicle needs to be acquired in real time, so that corresponding services are provided for a battery replacement vehicle better.
In the prior art, a vehicle can actively upload related data to a power exchange station management platform based on a specific time interval in the driving process, and when the vehicle is in the power exchange process, the time interval for uploading the data can be further shortened. Therefore, the data volume acquired by the power conversion station management platform is very large, and meanwhile, a large number of data tables are generated in the corresponding database, so that the power conversion station management platform is difficult to manage the data, and meanwhile, the subsequent data aggregation process is more complicated due to the large number of data tables.
Therefore, in the solutions provided by the related arts, the charging station management platform lacks an effective data model to store and manage the vehicle-related data.
Disclosure of Invention
The invention provides a data storage method, a data storage device, electronic equipment and a storage medium, which avoid the problems of inconvenient data management and excessively complex data aggregation caused by the fact that a large amount of data is stored in a plurality of independent tables, and improve the data management level and efficiency of a power swapping station.
In a first aspect, an embodiment of the present invention provides a data storage method, where the method includes:
when a target vehicle is in a battery replacement process, acquiring a message to be processed of the target vehicle, and determining a data hierarchy relation corresponding to the message to be processed, wherein the message to be processed comprises data associated with the target vehicle, data associated with a driving motor and data associated with a battery pack;
creating a main table for data at a first level in the data hierarchy, and creating at least one sub-table associated with the main table for data at other levels in the data hierarchy;
and storing the data in the message to be processed into the main table and the at least one sub-table according to the data hierarchy relationship.
In a second aspect, an embodiment of the present invention further provides a data storage apparatus, including:
the system comprises a data hierarchy relation determining module, a power conversion module and a power conversion module, wherein the data hierarchy relation determining module is used for acquiring a message to be processed of a target vehicle when the target vehicle is in a power conversion process, and determining a data hierarchy relation corresponding to the message to be processed, wherein the message to be processed comprises data associated with the target vehicle, data associated with a driving motor and data associated with a battery pack;
the data table creating module is used for creating a main table for the data at the first level in the data hierarchical relationship and creating at least one sub-table associated with the main table for the data at other levels in the data hierarchical relationship;
and the data storage module is used for storing the data in the message to be processed into the main table and the at least one sub-table according to the data hierarchy relationship.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the data storage method according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the data storage method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, when the target vehicle is in the battery replacement process, the message to be processed of the target vehicle is obtained, and the data hierarchy relation corresponding to the message to be processed is determined, so that the data associated with the target vehicle, the data associated with the driving motor and the data associated with the battery pack are obtained; creating a main table for data at a first level in the data hierarchical relationship, and creating at least one sub-table associated with the main table for data at other levels in the data hierarchical relationship; furthermore, data in the message to be processed is stored in the main table and the at least one sub-table according to the data hierarchical relationship, and the data can be stored in the main table and the sub-tables related to the main table by modeling the related data of the power switching vehicle, so that the problems of inconvenient data management and excessively complex data aggregation caused by the fact that a large amount of data are stored in a plurality of independent tables are solved, and the data management level and efficiency of the power switching station are improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a data storage method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a data storage device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a data storage method according to an embodiment of the present invention, which is applicable to a situation where a power conversion station acquires vehicle-related data and stores a large amount of data in a database, where the method may be executed by a data storage device, and the data storage device may be implemented in a form of software and/or hardware, and the hardware may be an electronic device, such as a mobile terminal, a PC terminal, or a server.
In order to clearly understand the technical solution of the embodiment of the present invention, the power swapping station and the power swapping station management platform may be explained first.
In order to continuously drive, the electric vehicle often needs to supplement electric energy of a battery on the vehicle, and the supplement of the electric energy is divided into charging of the whole vehicle and quick replacement of the battery. Based on this, trade power station is the power station that provides the power battery of electric automobile with charging and power battery quick replacement. Specifically, the charging mode of the battery replacement station can be divided into charging of a whole vehicle and charging after a battery and a vehicle body are separated, the charging mode comprises quick charging, conventional charging and slow charging, and for the battery replacement station, different charging modes can be embodied by different charging models. Meanwhile, the power station can be divided into a commercial vehicle power station, a household passenger vehicle power station, a multipurpose energy center and the like according to different purposes of the power station.
Correspondingly, the power exchange station management platform established for the power exchange station can be an integrated cloud platform, and it can be understood that the platform establishes a perfect data system and an information sharing mechanism through a centralized management system by means of a cloud computing technology and other related technologies, and meanwhile, the corresponding management system is installed on the cloud computing platform, and the management of information and data is realized through strict authority management and a safety mechanism. In the practical application process, the power conversion station management platform can at least acquire, store and process the relevant data of the vehicle and the battery.
As shown in fig. 1, the method specifically includes the following steps:
s110, when the target vehicle is in the battery replacement process, obtaining a message to be processed of the target vehicle, and determining a data hierarchy relation corresponding to the message to be processed.
In this embodiment, the target vehicle may be a vehicle that enters the battery replacement station and is in a battery replacement state, for example, a vehicle that is charged based on a charging station in the battery replacement station, or a vehicle that replaces a battery on a current vehicle body with a battery on a charging rack of the battery replacement station. When a target vehicle is in a battery replacement process, the battery replacement station management platform needs to acquire relevant data of the vehicle in real time in order to ensure the safety of the battery replacement process.
Specifically, in the process of obtaining vehicle-related data, the swapping station management platform may obtain a to-be-processed message from a storage space associated with a target vehicle based on a data protocol interface; and analyzing the message to be processed, and determining the data hierarchy relation according to the data identification carried by the data in the message to be processed.
In this embodiment, the power swapping station management system may acquire data actively uploaded by a vehicle through a data protocol interface corresponding to the vehicle entering the station, which may be understood as acquiring data of various dimensions from a database associated with the vehicle-machine system in a manner that meets communication modes and requirements of the vehicle-machine system.
Specifically, the target vehicle may upload data in the form of a message to be processed including data associated with the target vehicle, data associated with the drive motor, and data associated with the battery pack as data units exchanged and transmitted in the data transmission network. Illustratively, the data associated with the target vehicle includes at least one of a vehicle identification, vehicle position information, vehicle speed information, vehicle authentication information, vehicle maximum information, and vehicle alert information, and the data associated with the drive motor and the data associated with the battery pack include at least one of a device identification, device voltage information, device current information, and device temperature information.
It should be noted that, in an actual application process, in order to ensure the safety and the service quality of the battery replacement process, the target vehicle needs to continuously upload the to-be-processed messages corresponding to each time at a short time interval, for example, upload one to-be-processed message to the battery replacement station management system every five seconds. Based on the above, it can be understood that the data in the messages to be processed has strong time sequence, and in order to enable the power swapping station management system to effectively manage the data, the corresponding timestamp is added to the data in each message to be processed based on the current time in the active uploading process of the vehicle.
In this embodiment, after the swapping station management system receives a to-be-processed message of a target vehicle, the to-be-processed message can be analyzed, so as to determine data identifiers carried by data of various dimensions in each to-be-processed message; further, in order to construct a corresponding data model for the data to be stored in the database, the power conversion station management system needs to construct a corresponding data hierarchy relationship based on the data identifier.
Specifically, for the power station changing management system, the target vehicle itself can be used as a data acquisition device with integrity, and correspondingly, data associated with the target vehicle carries a vehicle type data identifier; for at least one driving motor and a battery pack installed on a target vehicle, the driving motor and the battery pack can be used as a plurality of sub-devices associated with the target vehicle, and correspondingly, the data associated with the driving motor and the data associated with the battery pack carry device type data identifications. Based on the data, a corresponding data hierarchical relation graph can be constructed according to data identification carried by data in a message to be processed, in the practical application process, data which correspond to a target vehicle and carry vehicle type data identification are positioned in a first hierarchy in the data hierarchical relation, and data which correspond to each sub-device on the target vehicle and carry device type data identification are positioned in other hierarchies in the data hierarchy.
And S120, creating a main table for the data at the first level in the data hierarchical relationship, and creating at least one sub-table associated with the main table for the data at other levels in the data hierarchical relationship.
In this embodiment, after the data hierarchy corresponding to the message to be processed is determined, the data may be processed and stored based on a specific big data platform. The big data platform can be an open-source internet of things big data platform, such as TDengine and the like, and a person skilled in the art can understand that TDengine is used as a time sequence processing engine specially designed and optimized for internet of things, car networking, industrial internet, IT operation and maintenance and the like, and besides a core time sequence database function, functions of data caching, data subscription, streaming calculation and the like can be provided for a power station replacement management system.
Meanwhile, in order to solve the problem that the number of tables is too large and management is difficult due to the fact that one traditional data acquisition point corresponds to one Table, for example, a TDengine internet of things big data platform adopts Super Tables (ST) to store data. A super table refers to a collection of data collection points of a particular type. The structure of the tables is identical for the same type of data collection point, but the static attributes (e.g., tags) of each table are different. Therefore, when describing a hyper-table (i.e., a collection of data collection points of a particular type), a collection of database objects (Schema) whose labels are defined is needed in addition to the table structure that defines the collection volume. Further, when a table in the internet of things big data platform such as TDengine represents a specific data acquisition point, the super table represents a group of data acquisition point sets of the same type, and compared with the traditional relational database, the table in the big data platform also carries static tags that can be modified, added or deleted. Based on this, in this embodiment, based on the determined data hierarchy relationship of the to-be-processed packet, a main table (i.e., a super table) may be created for data at the first hierarchy and carrying the vehicle type data identifier, and at least one sub table may be created for data at other hierarchies and carrying the device type data identifier.
Optionally, splitting the object type instance at the first level, and determining the data type of the data in the object type instance; generating a corresponding target field according to the data identification of the data in the object type instance, and taking the current moment as a target timestamp; a master table is created based on the data types, the target fields, and the target timestamp.
For example, for the power station swapping management system, after a message to be processed is acquired from a target vehicle and a data hierarchy relationship of data in the message is determined, an Object type instance in the message may be further split and refined, so as to determine vehicle data, vehicle position data, extreme value data, and alarm data associated with the target vehicle, and at the same time, data types of the data, such as integer type, floating point type, and character string type, may also be determined, and then a large data platform such as TDengine is used to construct a super table which is used as a main table and is located at a first layer. Those skilled in the art should understand that in the constructed super table, the specific identifier carried by the data may be used as a target field in each column in the table, and details of the embodiment of the present disclosure are not described herein again.
It should be noted that, the target super table is a bidirectional table, and is configured to query, in the main table and the at least one sub table, data associated with the target vehicle and/or data associated with the battery pack when a data query instruction is received, where labels of the bidirectional table are an identifier of the target vehicle and an identifier of the battery pack, respectively. It can be understood that the related data of the battery pack is reported to the battery swapping station management system through the data protocol interface of the vehicle, however, for each battery pack in the battery swapping station, it may be installed on different vehicles at different times, and therefore, in the case that the battery pack and the vehicle are in bidirectional change, the design of the bidirectional table needs to be adopted. In an actually constructed super table, when the Vehicle Identification Number (VIN) of the target Vehicle is used as a label of the super table, the Number batterypackage Number of the associated battery pack can be used as a common column in the table, correspondingly, when the Number batterypackage Number of the battery pack is used as a label of the super table, the VIN code of the associated Vehicle can be used as a common column of the super table, and through the design of the bidirectional table, the efficiency and convenience of data query in the subsequent process are further improved.
Optionally, determining data types of data in other hierarchies, and respectively creating corresponding sub-tables for data associated with the driving motor and data associated with the battery pack according to each data type and each device type data identifier; and naming each sub-table according to the identification of the object type instance to which the data at other levels belong, and associating each sub-table with the main table.
For example, for each sub-device such as each driving motor and each battery pack on the target vehicle, a corresponding next-level sub-table needs to be created on the basis of the created super-table, and for example, after the corresponding sub-table is created for the driving motor, the sub-table may be used to store driving motor data, rechargeable energy storage device voltage data, and rechargeable energy storage device temperature data. Similar to each column in the super table, in each constructed sub-table, the device type data carried by each data may also be identified as a target field in each column in the table, and details of the embodiment of the present disclosure are not repeated here.
And S130, storing the data in the message to be processed into the main table and at least one sub-table according to the data hierarchy relationship.
In this embodiment, after the main table corresponding to the message to be processed and the at least one sub-table associated with the main table are constructed based on TDengine, the data associated with the target vehicle, the data associated with the driving motor, and the data associated with the battery pack may be stored.
It should be noted that, when it is determined that the data type of the data in the message to be processed is the string chain table type based on the data hierarchy relationship, the string corresponding to the string chain table type data is stored in the main table, and the value corresponding to the string chain table type data is stored in the corresponding sub table. Specifically, for string chain table data with a data format of list, TDengine needs to use a duplicate storage manner, that is, in one main table, data in the list is stored in a form of a string based on a separator, and in another associated sub-table, a value of the data in the list is stored. The advantage of such storage is that, in the subsequent process of managing data based on the power conversion station management system, the requirement of querying the int value in the list from the viewpoint of Object can be met, and the character string in the list can be disassembled based on the relevant application program, so that the data is applied to a specific service.
As will be understood by those skilled in the art, when the power station management system processes and stores data by using an internet of things big data platform such as TDengine, a to-be-used database needs to be created according to preset database parameters, so that a main table and at least one associated sub-table are created based on the created to-be-used database. The preset database parameters at least comprise at least one of data retention time, copy number, memory block occupation number, time precision and file block record number.
According to the technical scheme of the embodiment, when the target vehicle is in the battery replacement process, a message to be processed of the target vehicle is obtained, and a data hierarchy relation corresponding to the message to be processed is determined, so that data related to the target vehicle, data related to a driving motor and data related to a battery pack are obtained; creating a main table for data at a first level in the data hierarchical relationship, and creating at least one sub-table associated with the main table for data at other levels in the data hierarchical relationship; furthermore, data in the message to be processed is stored in the main table and the at least one sub-table according to the data hierarchical relationship, and the data can be stored in the main table and the sub-tables related to the main table by modeling the related data of the power switching vehicle, so that the problems of inconvenient data management and excessively complex data aggregation caused by the fact that a large amount of data are stored in a plurality of independent tables are solved, and the data management level and efficiency of the power switching station are improved.
Example two
Fig. 2 is a block diagram of a data storage device according to a second embodiment of the present invention, which is capable of executing a data storage method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 2, the apparatus specifically includes: a data hierarchy relationship determination module 210, a data table creation module 220, and a data storage module 230.
The data hierarchy relation determining module 210 is configured to, when a target vehicle is in a battery replacement process, acquire a message to be processed of the target vehicle, and determine a data hierarchy relation corresponding to the message to be processed, where the message to be processed includes data associated with the target vehicle, data associated with a driving motor, and data associated with a battery pack.
A data table creating module 220, configured to create a main table for data at a first level in the data hierarchy, and create at least one sub-table associated with the main table for data at other levels in the data hierarchy.
A data storage module 230, configured to store the data in the to-be-processed message into the main table and the at least one sub-table according to the data hierarchy relationship.
On the basis of the above technical solutions, the data hierarchy relationship determining module 210 includes a to-be-processed message obtaining unit and a data hierarchy relationship determining unit.
And the message to be processed acquiring unit is used for acquiring the message to be processed from the storage space associated with the target vehicle based on a data protocol interface.
The data hierarchy relation determining unit is used for analyzing the message to be processed and determining the data hierarchy relation according to a data identifier carried by data in the message to be processed; wherein the data associated with the target vehicle carries a vehicle type data identifier at a first level in the data hierarchy, and the data associated with the drive motor and the data associated with the battery pack carry a device type data identifier at other levels in the data hierarchy.
On the basis of the above technical solutions, the data table creating module 220 includes a main table creating unit and a sub table creating unit.
The main table creating unit is used for splitting the object type instance at the first level and determining the data type of the data in the object type instance; generating a corresponding target field according to the data identification of the data in the object type instance, and taking the current moment as a target timestamp; creating the master table based on the data types, the target fields, and the target timestamp.
On the basis of the above technical solutions, the target super table is a bidirectional table, and is configured to query, in the main table and the at least one sub table, data associated with the target vehicle and/or data associated with the battery pack when a data query instruction is received, where tags of the bidirectional table are an identifier of the target vehicle and an identifier of the battery pack, respectively.
The sub-table creating unit is used for determining the data types of the data in other layers and respectively creating corresponding sub-tables for the data related to the driving motor and the data related to the battery pack according to the data types and the equipment type data identifications; and naming each sub-table according to the identification of the object type instance to which the data at other levels belong, and associating each sub-table with the main table.
Optionally, the data storage module 230 is further configured to, when it is determined that the data type of the data in the to-be-processed message is a character string chain table type based on the data hierarchical relationship, store a character string corresponding to the character string chain table type data in the main table, and store a value corresponding to the character string chain table type data in a corresponding sub-table.
On the basis of the above technical solutions, the data associated with the target vehicle includes at least one of a vehicle identifier, vehicle position information, vehicle speed information, vehicle verification information, vehicle maximum value information, and vehicle alarm information, and the data associated with the drive motor and the data associated with the battery pack include at least one of a device identifier, device voltage information, device current information, and device temperature information.
According to the technical scheme provided by the embodiment, when the target vehicle is in the battery replacement process, the message to be processed of the target vehicle is obtained, and the data hierarchy relation corresponding to the message to be processed is determined, so that data related to the target vehicle, data related to the driving motor and data related to the battery pack are obtained; creating a main table for data at a first level in the data hierarchical relationship, and creating at least one sub-table associated with the main table for data at other levels in the data hierarchical relationship; furthermore, data in the message to be processed is stored in the main table and the at least one sub-table according to the data hierarchical relationship, and the data can be stored in the main table and the sub-tables related to the main table by modeling the related data of the power switching vehicle, so that the problems of inconvenient data management and excessively complex data aggregation caused by the fact that a large amount of data are stored in a plurality of independent tables are solved, and the data management level and efficiency of the power switching station are improved.
The data storage device provided by the embodiment of the invention can execute the data storage method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary electronic device 30 suitable for use in implementing embodiments of the present invention. The electronic device 30 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 3, the electronic device 30 is in the form of a general purpose computing device. The components of the electronic device 30 may include, but are not limited to: one or more processors or processing units 301, a memory 302, and a bus 303 that couples the various system components (including the memory 302 and the processing unit 301).
A program/utility 308 having a set (at least one) of program modules 307 may be stored, for example, in memory 302, such program modules 307 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 307 generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device 30 may also communicate with one or more external devices 309 (e.g., keyboard, pointing device, display 310, etc.), with one or more devices that enable a user to interact with the electronic device 30, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 30 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 311. Also, the electronic device 30 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 312. As shown, the network adapter 312 communicates with the other modules of the electronic device 30 via the bus 303. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 30, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 301 executes various functional applications and data processing by executing programs stored in the memory 302, for example, implementing the data storage method provided by the embodiment of the present invention.
Example four
A fourth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a data storage method.
The method comprises the following steps:
when a target vehicle is in a battery replacement process, acquiring a message to be processed of the target vehicle, and determining a data hierarchy relation corresponding to the message to be processed, wherein the message to be processed comprises data associated with the target vehicle, data associated with a driving motor and data associated with a battery pack;
creating a main table for data at a first level in the data hierarchy, and creating at least one sub-table associated with the main table for data at other levels in the data hierarchy;
and storing the data in the message to be processed into the main table and the at least one sub-table according to the data hierarchy relationship.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable item code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
The item code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer project code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The project code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method of storing data, comprising:
when a target vehicle is in a battery replacement process, acquiring a message to be processed of the target vehicle, and determining a data hierarchy relation corresponding to the message to be processed, wherein the message to be processed comprises data associated with the target vehicle, data associated with a driving motor and data associated with a battery pack;
creating a main table for data at a first level in the data hierarchy, and creating at least one sub-table associated with the main table for data at other levels in the data hierarchy;
and storing the data in the message to be processed into the main table and the at least one sub-table according to the data hierarchy relationship.
2. The data storage method according to claim 1, wherein the obtaining of the message to be processed of the target vehicle and the determining of the data hierarchy corresponding to the message to be processed comprise:
acquiring the message to be processed from a storage space associated with the target vehicle based on a data protocol interface;
analyzing the message to be processed, and determining the data hierarchy relation according to a data identifier carried by data in the message to be processed;
wherein the data associated with the target vehicle carries a vehicle type data identifier at a first level in the data hierarchy, and the data associated with the drive motor and the data associated with the battery pack carry a device type data identifier at other levels in the data hierarchy.
3. The data storage method of claim 2, wherein said creating a master table for data at a first level in said data hierarchy comprises:
splitting an object type instance at a first level, and determining a data type of data in the object type instance;
generating a corresponding target field according to the data identification of the data in the object type instance, and taking the current moment as a target timestamp;
creating the master table based on the data types, the target fields, and the target timestamp.
4. The data storage method according to claim 3, wherein the target super table is a bidirectional table, and is used for querying data associated with the target vehicle and/or data associated with the battery pack in the main table and the at least one sub table when a data query instruction is received, and labels of the bidirectional table are an identifier of the target vehicle and an identifier of the battery pack respectively.
5. The data storage method of claim 3, wherein said creating at least one sub-table associated with said main table for data at other levels in said data hierarchy comprises:
determining data types of data in other layers, and respectively creating corresponding sub-tables for data associated with the driving motor and data associated with the battery pack according to each data type and each equipment type data identification;
and naming each sub table according to the identification of the object type instance to which the data at other levels belong, and associating each sub table with the main table.
6. The data storage method according to claim 1, wherein the storing the data in the message to be processed into the main table and the at least one sub-table according to the data hierarchy relationship comprises:
and when the data type of the data in the message to be processed is determined to be the character string chain table type based on the data hierarchical relationship, storing the character string corresponding to the character string chain table type data in the main table, and storing the value corresponding to the character string chain table type data in the corresponding sub table.
7. The data storage method according to claim 1, wherein the data associated with the target vehicle includes at least one of vehicle identification, vehicle position information, vehicle speed information, vehicle authentication information, vehicle maximum value information, and vehicle alarm information, and the data associated with the drive motor and the data associated with the battery pack include at least one of device identification, device voltage information, device current information, and device temperature information.
8. A data storage device, comprising:
the system comprises a data hierarchy relation determining module, a power conversion module and a power conversion module, wherein the data hierarchy relation determining module is used for acquiring a message to be processed of a target vehicle and determining a data hierarchy relation corresponding to the message to be processed when the target vehicle is in a power conversion process, and the message to be processed comprises data related to the target vehicle, data related to a driving motor and data related to a battery pack;
a data table creating module, configured to create a main table for data at a first level in the data hierarchical relationship, and create at least one sub-table associated with the main table for data at other levels in the data hierarchical relationship;
and the data storage module is used for storing the data in the message to be processed into the main table and the at least one sub-table according to the data hierarchy relationship.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a data storage method as claimed in any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the data storage method of any one of claims 1-7 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210536396.6A CN114647650A (en) | 2022-05-18 | 2022-05-18 | Data storage method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210536396.6A CN114647650A (en) | 2022-05-18 | 2022-05-18 | Data storage method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114647650A true CN114647650A (en) | 2022-06-21 |
Family
ID=81996857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210536396.6A Pending CN114647650A (en) | 2022-05-18 | 2022-05-18 | Data storage method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114647650A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115048557A (en) * | 2022-08-16 | 2022-09-13 | 山东双仁信息技术有限公司 | Vehicle data processing method and device based on artificial intelligence |
CN115098507A (en) * | 2022-06-30 | 2022-09-23 | 东方合智数据科技(广东)有限责任公司 | Storage method based on industrial internet data and related equipment |
CN116204554A (en) * | 2023-05-04 | 2023-06-02 | 浙江康勒工业软件有限公司 | Data processing method, system, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104683125A (en) * | 2013-11-27 | 2015-06-03 | 上海墨芋电子科技有限公司 | Network storage management and debugging system of cloud computing |
CN108427556A (en) * | 2018-03-12 | 2018-08-21 | 深圳市博安达信息技术股份有限公司 | A kind of form design analytic method and system |
CN112100186A (en) * | 2020-08-26 | 2020-12-18 | 金蝶软件(中国)有限公司 | Data processing method and device based on distributed system and computer equipment |
CN112602090A (en) * | 2018-07-02 | 2021-04-02 | 奇跃公司 | Method and system for interpolating different inputs |
CN112783901A (en) * | 2021-03-01 | 2021-05-11 | 合沃物联技术(南京)有限公司 | Internet of things time sequence big data processing method based on Internet of things middleware |
CN113568925A (en) * | 2021-08-03 | 2021-10-29 | 中电金信软件有限公司 | Message data conversion method and device, electronic equipment and storage medium |
-
2022
- 2022-05-18 CN CN202210536396.6A patent/CN114647650A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104683125A (en) * | 2013-11-27 | 2015-06-03 | 上海墨芋电子科技有限公司 | Network storage management and debugging system of cloud computing |
CN108427556A (en) * | 2018-03-12 | 2018-08-21 | 深圳市博安达信息技术股份有限公司 | A kind of form design analytic method and system |
CN112602090A (en) * | 2018-07-02 | 2021-04-02 | 奇跃公司 | Method and system for interpolating different inputs |
CN112100186A (en) * | 2020-08-26 | 2020-12-18 | 金蝶软件(中国)有限公司 | Data processing method and device based on distributed system and computer equipment |
CN112783901A (en) * | 2021-03-01 | 2021-05-11 | 合沃物联技术(南京)有限公司 | Internet of things time sequence big data processing method based on Internet of things middleware |
CN113568925A (en) * | 2021-08-03 | 2021-10-29 | 中电金信软件有限公司 | Message data conversion method and device, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
TDENGINE: "听说你还没有真正理解 TDengine 的超级表 STable", 《HTTPS://MP.WEIXIN.QQ.COM/S/I_UTMVGVTHF5DPUQQKYLQQ》 * |
符涵等: "基于PaaS平台的定制化教学管理功能开发研究", 《工业控制计算机》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115098507A (en) * | 2022-06-30 | 2022-09-23 | 东方合智数据科技(广东)有限责任公司 | Storage method based on industrial internet data and related equipment |
CN115098507B (en) * | 2022-06-30 | 2023-08-18 | 东方合智数据科技(广东)有限责任公司 | Storage method and related equipment based on industrial Internet data |
CN115048557A (en) * | 2022-08-16 | 2022-09-13 | 山东双仁信息技术有限公司 | Vehicle data processing method and device based on artificial intelligence |
CN116204554A (en) * | 2023-05-04 | 2023-06-02 | 浙江康勒工业软件有限公司 | Data processing method, system, electronic device and storage medium |
CN116204554B (en) * | 2023-05-04 | 2023-08-08 | 浙江康勒工业软件有限公司 | Data processing method, system, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114647650A (en) | Data storage method and device, electronic equipment and storage medium | |
CN107391744B (en) | Data storage method, data reading method, data storage device, data reading device and equipment | |
CN109558450A (en) | A kind of automobile remote monitoring method and apparatus based on distributed structure/architecture | |
CN111258978B (en) | Data storage method | |
CN112698953A (en) | Power grid intelligent operation and detection platform based on micro-service | |
CN103115779B (en) | Electric automobile on-line state monitoring system | |
CN108170832B (en) | Monitoring system and monitoring method for heterogeneous database of industrial big data | |
CN109376173A (en) | A kind of data query method, apparatus, electronic equipment and storage medium | |
CN109474467A (en) | Network automatically management method, device, storage medium and electronic equipment | |
CN109284108A (en) | Date storage method, device, electronic equipment and storage medium | |
CN109144965A (en) | A kind of log processing method, device, equipment and medium | |
CN111198861A (en) | Logic log processing method and device and electronic equipment | |
CN110069392A (en) | A kind of acquisition methods reflecting data center's information technoloy equipment efficiency feature | |
CN115439015B (en) | Local area power grid data management method, device and equipment based on data middleboxes | |
CN117056564A (en) | Power topology island detection method, device, equipment and storage medium | |
CN116860447A (en) | Task caching method, device, system, equipment and medium | |
CN105808890A (en) | Data cloud system for automobile enterprise product design | |
Jampala et al. | Practical challenges of integrating synchrophasor applications into an EMS | |
CN114819675A (en) | Charging and battery replacing service management method and device, electronic equipment and storage medium | |
CN115374101A (en) | Rail transit station level data management system | |
CN112784434A (en) | Model-based avionics design method | |
CN113806556A (en) | Method, device, equipment and medium for constructing knowledge graph based on power grid data | |
CN113888028A (en) | Patrol task allocation method and device, electronic equipment and storage medium | |
CN111859145B (en) | Information searching method and device, electronic equipment and computer storage medium | |
CN111104416A (en) | Distributed electric power data management system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220621 |
|
RJ01 | Rejection of invention patent application after publication |