CN107092691A - A kind of date storage method and system based on car networking - Google Patents
A kind of date storage method and system based on car networking Download PDFInfo
- Publication number
- CN107092691A CN107092691A CN201710271393.3A CN201710271393A CN107092691A CN 107092691 A CN107092691 A CN 107092691A CN 201710271393 A CN201710271393 A CN 201710271393A CN 107092691 A CN107092691 A CN 107092691A
- Authority
- CN
- China
- Prior art keywords
- data
- mongodb
- car networking
- type
- configuration information
- 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
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/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
-
- 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
-
- 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/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols 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)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of date storage method based on car networking and system, this method includes:The type of the data sent to car-mounted terminal is identified;When type is real time information, by data storage to distributed experiment & measurement system;When type is configuration information, by data storage to relevant database;The present invention with distributed experiment & measurement system by the data of the real time information type increased without limitation of vehicle by that when type is real time information, by data storage to distributed experiment & measurement system, can carry out storage management;By when type is configuration information, by data storage to relevant database, storage management can be carried out to the data of configuration information type by traditional relevant database, combine distributed experiment & measurement system and the respective advantage of traditional relevant database, realize effective management to data in car networking, the storage threshold value of data in car networking is improved, and reduces the time delay of data processing, Consumer's Experience is improved.
Description
Technical field
The present invention relates to car networking field, more particularly to a kind of date storage method and system based on car networking.
Background technology
With the development of modern society's science and technology, the arrival in big data epoch brings larger impact and hair to all trades and professions
Exhibition, increasingly shows, traditional relationship type number face-to-face to growing mass data, the drawbacks of traditional centralized data base
Start to expose some shortcomings for being difficult to overcome according to storehouse.For example inquiry velocity is slow, it is difficult to extend, and cannot tackle the sea increased without limitation
Measure data.It is limited for some data volumes, it is not especially strong field, traditional Data Storage Models to data resource requirements
It can be very good support.But it is big for the data volume as this processing of vehicle net system, high is required to data managing capacity
For system, traditional relevant database has often been difficult to support.Car networking, refers to by installing car in vehicle instrument desk
Mounted terminal equipment, realizes to vehicle all working situation and quiet, multidate information collection, stores and send.Car networking system one
As have real-time outdoor scene function, it is possible to use mobile network realizes people's car mutual.
In the prior art, in traditional car networking system, the memory module of bottom is generally adopted by traditional relationship type
Database model, this model can tackle the data of limited data volume, still, for having very daily in the big data epoch
The support of the vehicle data of big sustainable growth has obvious defect.The problem of it has following:It is unlimited in view of information of vehicles
Increase, the extended capability of traditional relevant database is not enough, once the storage for the relevant database that information data is reached
Threshold value, for whole car networking system, its influence produced will be catastrophic;Although at the data of small data quantity
Reason, the processing speed or people's acceptable of relevant database, but with the sustainable growth of vehicle data, it is handled
The delay that data are brought can largely reduce Consumer's Experience.Therefore, how car connection is improved in the big data epoch
The storage threshold value of data in net, and the time delay of data processing is reduced, Consumer's Experience is lifted, is to be badly in need of asking for solution now
Topic.
The content of the invention
It is an object of the invention to provide a kind of date storage method based on car networking and system, to use traditional relation
The mixing storage model of type database and distributed experiment & measurement system, improves the storage threshold value of data in car networking, and reduces number
According to the time delay of processing, Consumer's Experience is lifted.
In order to solve the above technical problems, the present invention provides a kind of date storage method based on car networking, including:
The type of the data sent to car-mounted terminal is identified;
When the type is real time information, by the data storage to distributed experiment & measurement system;Wherein, it is described real-time
Information includes CAN information and OBD information;
When the type is configuration information, by the data storage to relevant database;Wherein, the configuration information
Including vehicle configuration information and car-mounted terminal configuration information.
Optionally, the distributed experiment & measurement system is specially MongoDB data-base clusters.
Optionally, it is described by the data storage to MongoDB data-base clusters, including:
By mark of the Mongos routers according to the data, the data are shared into corresponding MongoDB pieces, profit
The data are stored with the MongoDB pieces, and the configuration information of the data and response is stored in
MongoConfig servers.
Optionally, it is described that the data are stored using the MongoDB pieces, including:
The performance of replica node of the arbitration node in copy set in the MongoDB pieces determines optimal copy section
Point;
Host node writes the data and by the data duplication into the optimal replica node.
Optionally, this method also includes:
When the host node delays machine, the optimal replica node is regard as the host node.
Optionally, this method also includes:
When needing to read the data, the data are read by the optimal replica node.
In addition, present invention also offers a kind of data-storage system based on car networking, including:
Car networking cloud platform, the type of the data for being sent to car-mounted terminal is identified;
Distributed experiment & measurement system, for when the type is real time information, storing the data;Wherein, the reality
When information include CAN information and OBD information;
Relevant database, for when the type is configuration information, storing the data;Wherein, it is described to match somebody with somebody confidence
Breath includes vehicle configuration information and car-mounted terminal configuration information.
Optionally, the distributed experiment & measurement system is specifically for passing through mark of the Mongos routers according to the data
Know, the data are shared into corresponding MongoDB pieces, the data stored using the MongoDB pieces, and by institute
The configuration information for stating data and response is stored in MongoConfig servers.
Optionally, the distributed experiment & measurement system, including:
Optimal replica node determining module, for copy of the arbitration node in the MongoDB pieces in copy set
The performance of node determines optimal replica node;
Data writing module, the data are write and by the data duplication to the optimal replica node for host node
In.
Optionally, the distributed experiment & measurement system, including:
Data read through model, for when needing to read the data, the data to be read by the optimal replica node.
A kind of date storage method based on car networking provided by the present invention, including:The data sent to car-mounted terminal
Type be identified;When the type is real time information, by the data storage to distributed experiment & measurement system;Wherein,
The real time information includes CAN information and OBD information;When the type is configuration information, by the data storage extremely
Relevant database;Wherein, the configuration information includes vehicle configuration information and car-mounted terminal configuration information;
It can be seen that, the present invention is by when the type of data is real time information, by data storage to distributed experiment & measurement system,
The data of the real time information type increased without limitation of vehicle can be subjected to storage management with distributed experiment & measurement system;Pass through
When the type of data is configuration information, by data storage to relevant database, traditional relevant database can be passed through
Data to configuration information type carry out storage management, combine distributed experiment & measurement system and traditional relevant database is each
From advantage, realize effective management to data in car networking, improve the storage threshold value of data in car networking, and reduce
The time delay of data processing, improve Consumer's Experience.In addition, present invention also offers a kind of data storage based on car networking
System, equally with above-mentioned beneficial effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
A kind of flow chart for date storage method based on car networking that Fig. 1 is provided by the embodiment of the present invention;
A kind of data-storage system for date storage method based on car networking that Fig. 2 is provided by the embodiment of the present invention is whole
The schematic diagram of body framework;
The flow chart for another date storage method based on car networking that Fig. 3 is provided by the embodiment of the present invention;
The MongoDB data for another date storage method based on car networking that Fig. 4 is provided by the embodiment of the present invention
The schematic diagram of storehouse cluster overall architecture;
In the MongoDB pieces for another date storage method based on car networking that Fig. 5 is provided by the embodiment of the present invention
The schematic diagram of portion's framework;
The data receiver storage for another date storage method based on car networking that Fig. 6 is provided by the embodiment of the present invention
E-R figure;
A kind of structure chart for data-storage system based on car networking that Fig. 7 is provided by the embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It refer to Fig. 1 and Fig. 2, a kind of date storage method based on car networking that Fig. 1 is provided by the embodiment of the present invention
Flow chart;A kind of data-storage system for date storage method based on car networking that Fig. 2 is provided by the embodiment of the present invention
The schematic diagram of overall architecture.This method can include:
Step 101:The type of the data sent to car-mounted terminal is identified.
Wherein, this step can be received after multiple data that car-mounted terminal is sent for car networking cloud platform as shown in Figure 2,
Simultaneously the type of each data is identified for the processing related to each data, then respectively by step 102 or step 103 with
The data memory module of bottom is interacted, that is, by the data storage of corresponding types to distributed experiment & measurement system or tradition
Relevant database, realize the instantiation of data.Client in Fig. 2 can be carried out for user to data storage in car networking
Inquiry or the terminal of other interactions, the present embodiment do not do any limitation to this.
It is understood that being identified for the type that the data that this step is sent to car-mounted terminal are carried out in car networking
Particular location, can be car networking cloud platform as shown in Figure 2;Can also be the data memory module of bottom, such as car networking
Cloud platform is carried out after handling accordingly to data, and the type of data is identified by data memory module, and by corresponding types
Data storage to distributed experiment & measurement system or traditional relevant database;Can also be car networking data-storage system
Other positions, the present embodiment does not do any limitation to this.
It should be noted that one kind that the data of the transmission of car-mounted terminal can send for a car-mounted terminal in this step
The data of type, that is to say, that each type of data that each car-mounted terminal is sent can be identified by this step.
If car-mounted terminal sends polytype data, also car networking cloud platform can such as be passed through by the mode similar to this step
Polytype data are handled accordingly, then by the data storage of corresponding types in the data to distributed data base
Cluster or traditional relevant database.The present embodiment is unrestricted to this.
Specifically, the detailed process that the type of the data sent for car networking cloud platform to car-mounted terminal is identified,
Corresponding recognizer can voluntarily be set according to practical scene and user's request by designer, the present embodiment is not appointed to this
What is limited.
Step 102:When the type is real time information, by the data storage to distributed experiment & measurement system;Wherein,
The real time information includes CAN information and OBD information.
It is understood that the purpose of this step is in order to by the unlimited of such as CAN information and this kind of vehicle of OBD information
The data storage of the real time information type of growth is to distributed experiment & measurement system, to improve the car networking data storage system such as Fig. 2
The storage threshold value of the data memory module of bottom in system, and stored by distributed experiment & measurement system and manage real time information class
The data of type, can reduce the delay for handling the data, lift Consumer's Experience.
It should be noted that for the particular type and set-up mode of distributed experiment & measurement system, can be by designer
Voluntarily set according to practical scene and user's request, can such as use MongoDB data-base clusters and corresponding set-up mode,
Other kinds of distributed experiment & measurement system and corresponding set-up mode can be used.The present embodiment does not do any limitation to this.
Specifically, in this step by the detailed process of data storage to distributed experiment & measurement system, can according to point
The particular type of cloth data-base cluster is corresponding with set-up mode to be carried out, such as when distributed experiment & measurement system is MongoDB data
During the cluster of storehouse, data can be shared by corresponding MongoDB pieces by mark of the Mongos routers according to data, utilized
MongoDB pieces are stored to data, and the configuration information of data and response is stored in into MongoConfig servers.This reality
Apply example and do not do any limitation to this.Equally, the concrete mode data of storage being managed for distributed experiment & measurement system,
As copied data to the concrete mode of the replica node in copy set and from MongoDB pieces in host node in MongoDB pieces
The concrete mode of data is read, can be corresponding with set-up mode according to the particular type of distributed experiment & measurement system by designer
It is configured, the present embodiment does not do any limitation equally to this.
Step 103:When the type is configuration information, by the data storage to relevant database;Wherein, it is described
Configuration information includes vehicle configuration information and car-mounted terminal configuration information.
It is understood that the purpose of this step is in order to will be as vehicle configuration information and car-mounted terminal configuration information are this kind of
The data storage of the configuration information type on basis is to traditional relevant database.Because traditional relevant database is to configuration
The data processing of information type has very big advantage, therefore passes through number of traditional relevant database to configuration information type
According to being stored and being managed, it can be very good to play the advantage of traditional relevant database, and script is stored to relation
The data storage of the real time information type of type database is greatly reduced in relevant database and deposited to distributed experiment & measurement system
The data volume of storage, can reduce the delay of the data of relevant database processing configuration information type, lift Consumer's Experience.
It should be noted that for the particular type and set-up mode of relevant database, can use in the prior art
Traditional relevant database, such as Mysql data-base clusters, can also use other kinds of relevant database, this implementation
Example does not do any limitation to this.
Specifically, in this step by the detailed process and relevant database pair of data storage to relevant database
The concrete mode that the data of storage are managed, can be using traditional with such as Mysql data-base clusters in the prior art
Relevant database similar process and mode, it would however also be possible to employ other particular types and set-up mode with relevant database
Corresponding process and mode.The present embodiment is unrestricted to this.
In the present embodiment, the embodiment of the present invention is by when the type of data is real time information, by data storage to distribution
Formula data-base cluster, can be carried out the data of the real time information type increased without limitation of vehicle with distributed experiment & measurement system
Storage management;By when data type be configuration information when, can be by traditional by data storage to relevant database
Relevant database carries out storage management to the data of configuration information type, combines distributed experiment & measurement system and traditional pass
It is the respective advantage of type database, realizes effective management to data in car networking, improve the storage of data in car networking
Threshold value, and the time delay of data processing is reduced, improve Consumer's Experience.
It refer to Fig. 3, Fig. 4, Fig. 5 and Fig. 6, another number based on car networking that Fig. 3 is provided by the embodiment of the present invention
According to the flow chart of storage method;Another date storage method based on car networking that Fig. 4 is provided by the embodiment of the present invention
The schematic diagram of MongoDB data-base cluster overall architectures;Fig. 5 by the embodiment of the present invention provide it is another based on car networking
The schematic diagram of the MongoDB piece inside structures of date storage method;Fig. 6 by the embodiment of the present invention provide it is another be based on car
The E-R figures of the data receiver storage of the date storage method of networking.This method can include:
Step 201:The type of the data sent to car-mounted terminal is identified.
Wherein, this step is similar to step 101, will not be repeated here.
Step 202:When the type of data is real time information, by mark of the Mongos routers according to data, by number
According to corresponding MongoDB pieces are shared, data are stored using MongoDB pieces, and by data and response configuration information
It is stored in MongoConfig servers.
Wherein, in the method that this implementation is provided, the distributed experiment & measurement system for storing the data of real time information type can
Think MongoDB data-base clusters as shown in Figure 4.The data of real time information type are stored for MongoDB data-base clusters
Concrete mode, can be with as shown in figure 4, car networking cloud platform (Client) sends the data of real time information type to Mongos
The data, by mark of the Mongos routers according to the data, are shared corresponding MongoDB pieces by router (Mongos)
(Shard), the data are stored using MongoDB pieces, and the configuration information of the data and response is stored in
MongoConfig servers (MongoConfig), to realize the scalability and load balancing of MongoDB data-base clusters;
The MongoDB data-base clusters and corresponding mode of other structures can be used to store the data of real time information type.This implementation
Example does not do any limitation to this.For mark of the Mongos routers according to data, data are shared into corresponding MongoDB pieces
Detailed process and data mark specific setting, can voluntarily be set according to practical scene and user's request by designer
Put, such as the mark of data can be set to piece key.As long as data are shared right by Mongos routers according to the piece key of data
The MongoDB pieces answered, the present embodiment does not do any limitation to this.
It is understood that can be as in Fig. 4 for the concrete mode stored using MongoDB pieces to data
The performance of replica node of the arbitration node (shard Server arbitrations) in copy set in MongoDB pieces (shard) is true
Fixed optimal replica node (shard Server copies), host node (shard Server) write-in data are simultaneously copied data to most
In excellent replica node, to reduce the duplication pressure of host node, systematic function is improved;It can also use as of the prior art
MongoDB pieces carry out storage mode to data, such as host node immediate data and copy data to whole copy sections of copy set
Point in.The present embodiment is unrestricted to this.
It is preferred that, the method that the present embodiment is provided can also include when the host node in MongoDB pieces delays machine, will most
Excellent replica node is stored and managed to data as host node, to reach the effect of heat deployment, improves the stability of system.
It should be noted that for actual demand, most of business is all reading business in MongoDB pieces, that is,
Data are read from MongoDB pieces, therefore, when needing to read data from MongoDB pieces, the MongoDB pieces can be passed through
Copy set in replica node read data, that is, read copy set in replica node as optimal replica node when replicate
Host node in data, copy set that can be as shown in Figure 5 sets (Replica Set), for extraneous application server
For, the read operation in its operation is write operation towards the replica node in the copy set of MongoDB pieces, and in its operation
It is that, towards the host node (master server) in copy set, so can effectively reduce the pressure of MongoDB data-base clusters,
Improve the performance and storage efficiency of system;MongoDB pieces host node reading data, sheet can also be passed through such as prior art
Embodiment does not do any limitation to this.
Specific configuration operation can be as follows:
Prepare three machines:192.168.1.136、192.168.1.137、192.168.1.138.192.168.1.136
As the host node of copy set, 192.168.1.137,192.168.1.138 as copy set replica node.
Set up MongDB copy set files on every machine respectively afterwards, and startup MongoDB program bags be installed,
Its instruction is as follows:
# deposits whole mongodb files
mkdir-p/data/mongodbtest/replset
# deposits mongodb data files
mkdir-p/data/mongodbtest/replset/data
# enters mongodb files
cd/data/mongodbtest
# downloads MongoDB installation kits
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz
The compressed package that # decompressions are downloaded
tar xvzf mongodb-linux-x86_64-2.4.8.tgz
# runs MongoDB programs
/data/mongodbtest/mongodb-linux-x86_64-2.4.8/bin/mongod--dbpath/data/
mongodbtest/replset/data--replSet repset
Corresponding initial configuration is carried out to copy set afterwards:
Here select any one machine on three machines to login, and use admin databases, at this moment, change it
Configuration file, defines copy set configuration variables:
Afterwards by setting several parameters in configuration file to realize read and write abruption., wherein it is desired in replica node
Secondary sets setSlave OK, sets replica node to be responsible for read operation in program again afterwards.
Wherein, read parameter and also have five parameters in addition to decondary:primary、primaryPreferred、
secondary、secondaryPreferred、nearest.Primary, default parameters is only read out behaviour from host node
Make;PrimaryPreferred, it is most of that data are read from host node, when only host node is unavailable, from secondary sections
Point (optimal replica node) reads data;Secondary, is only read, the problem of existing from secondary nodes
The data for being secondary nodes can be than primary node data " old ";SecondaryPreferred, preferentially from
Secondary nodes are read, and data are read from host node when secondary nodes are unavailable;nearest:No matter
It is host node, secondary nodes, data is read from the minimum node of network delay.
Step 203:When the type of data is configuration information, by data storage to Mysql data-base clusters.
It is understood that in this step by the detailed process and Mysql of data storage to Mysql data-base clusters
The concrete mode that data-base cluster is managed to the data of storage, can use the process and mode similar to prior art,
Other processes and mode can also be used, the present embodiment does not do any limitation to this.
It should be noted that MongoDB data-base clusters and Mysql databases in the method provided for the present embodiment
The specific dividing mode of the data of the configuration information type of cluster respectively and the data of real time information type, can be by designer
Voluntarily set according to practical scene and user's request, the present embodiment is unrestricted to this.As shown in fig. 6, for vehicle-mounted end
The data sended over are held, its real-time gps data, CAN message and OBD information can use MonoDB data-base clusters to deposit
Storage, and the relatively-stationary configuration information (information of vehicles, mobile unit entrucking information and car-mounted terminal information) of vehicle can be by
Mysql databases are stored, and are effectively alleviated the pressure of Mysql databases in the prior art, are improved systematic function.
In the present embodiment, the embodiment of the present invention is by when the type of data is real time information, utilizing MongoDB piece logarithms
The scalability and load balancing of MongoDB data-base clusters are realized according to storage is carried out;Pass through optimal copy in MongoDB pieces
The setting of node, reduces the duplication pressure of host node, improves systematic function;By being delayed when the host node in MongoDB pieces
During machine, optimal replica node is stored and managed to data as host node, the effect of heat deployment has been reached, improved and be
The stability of system;By reading data from optimal replica node, the pressure of MongoDB data-base clusters is effectively reduced, is carried
The high performance and storage efficiency of system, improves Consumer's Experience.
It refer to Fig. 7, a kind of structure for data-storage system based on car networking that Fig. 7 is provided by the embodiment of the present invention
Figure.The system can include:
Car networking cloud platform 100, the type of the data for being sent to car-mounted terminal is identified;
Distributed experiment & measurement system 200, for when the type is real time information, storing the data;Wherein, it is described
Real time information includes CAN information and OBD information;
Relevant database 300, for when the type is configuration information, storing the data;Wherein, the configuration
Information includes vehicle configuration information and car-mounted terminal configuration information.
Optionally, the distributed experiment & measurement system 200 can specifically for by Mongos routers according to the number
According to mark, the data are shared into corresponding MongoDB pieces, the data stored using the MongoDB pieces,
And the configuration information of the data and response is stored in MongoConfig servers.
Optionally, the distributed experiment & measurement system 200, can include:
Optimal replica node determining module, for copy of the arbitration node in the MongoDB pieces in copy set
The performance of node determines optimal replica node;
Data writing module, the data are write and by the data duplication to the optimal replica node for host node
In.
Optionally, the distributed experiment & measurement system 200, can include:
Data read through model, for when needing to read the data, the data to be read by the optimal replica node.
In the present embodiment, the embodiment of the present invention is by distributed experiment & measurement system 200 when the type of data is real time information
When, data storage can be deposited the data of the real time information type increased without limitation of vehicle with distributed experiment & measurement system
Storage management;By relevant database 300 when the type of data is configuration information, data storage can pass through traditional pass
It is that type database carries out storage management to the data of configuration information type, combines distributed experiment & measurement system and traditional relation
The respective advantage of type database, realizes effective management to data in car networking, improves the storage threshold of data in car networking
Value, and the time delay of data processing is reduced, improve Consumer's Experience.
The embodiment of each in specification is described by the way of progressive, and what each embodiment was stressed is and other realities
Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration
.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The date storage method provided by the present invention based on car networking and system are described in detail above.Herein
In apply specific case the principle and embodiment of the present invention be set forth, the explanation of above example is only intended to side
The method and its core concept of the assistant solution present invention.It should be pointed out that for those skilled in the art, not
On the premise of departing from the principle of the invention, some improvement and modification can also be carried out to the present invention, these are improved and modification is also fallen into
In the protection domain of the claims in the present invention.
Claims (10)
1. a kind of date storage method based on car networking, it is characterised in that including:
The type of the data sent to car-mounted terminal is identified;
When the type is real time information, by the data storage to distributed experiment & measurement system;Wherein, the real time information
Including CAN information and OBD information;
When the type is configuration information, by the data storage to relevant database;Wherein, the configuration information includes
Vehicle configuration information and car-mounted terminal configuration information.
2. the date storage method according to claim 1 based on car networking, it is characterised in that the distributed data base
Cluster is specially MongoDB data-base clusters.
3. the date storage method according to claim 2 based on car networking, it is characterised in that described to deposit the data
Store up to MongoDB data-base clusters, including:
By mark of the Mongos routers according to the data, the data are shared into corresponding MongoDB pieces, institute is utilized
State MongoDB pieces to store the data, and the configuration information of the data and response is stored in MongoConfig clothes
Business device.
4. the date storage method based on car networking according to any one of claims 1 to 3, it is characterised in that the profit
The data are stored with the MongoDB pieces, including:
The performance of replica node of the arbitration node in copy set in the MongoDB pieces determines optimal replica node;
Host node writes the data and by the data duplication into the optimal replica node.
5. the date storage method according to claim 4 based on car networking, it is characterised in that also include:
When the host node delays machine, the optimal replica node is regard as the host node.
6. the date storage method according to claim 4 based on car networking, it is characterised in that also include:
When needing to read the data, the data are read by the optimal replica node.
7. a kind of data-storage system based on car networking, it is characterised in that including:
Car networking cloud platform, the type of the data for being sent to car-mounted terminal is identified;
Distributed experiment & measurement system, for when the type is real time information, storing the data;Wherein, the real-time letter
Breath includes CAN information and OBD information;
Relevant database, for when the type is configuration information, storing the data;Wherein, the configuration information bag
Include vehicle configuration information and car-mounted terminal configuration information.
8. the data-storage system according to claim 8 based on car networking, it is characterised in that the distributed data base
Cluster by the data specifically for by mark of the Mongos routers according to the data, sharing corresponding MongoDB
The data are stored by piece using the MongoDB pieces, and the configuration information of the data and response is stored in
MongoConfig servers.
9. the data-storage system based on car networking according to claim 7 or 8, it is characterised in that the distributed number
According to storehouse cluster, including:
Optimal replica node determining module, for replica node of the arbitration node in the MongoDB pieces in copy set
Performance determine optimal replica node;
Data writing module, the data are write and by the data duplication into the optimal replica node for host node.
10. the data-storage system according to claim 9 based on car networking, it is characterised in that the distributed data
Storehouse cluster, including:
Data read through model, for when needing to read the data, the data to be read by the optimal replica node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710271393.3A CN107092691A (en) | 2017-04-24 | 2017-04-24 | A kind of date storage method and system based on car networking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710271393.3A CN107092691A (en) | 2017-04-24 | 2017-04-24 | A kind of date storage method and system based on car networking |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107092691A true CN107092691A (en) | 2017-08-25 |
Family
ID=59638519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710271393.3A Pending CN107092691A (en) | 2017-04-24 | 2017-04-24 | A kind of date storage method and system based on car networking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107092691A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108319725A (en) * | 2018-02-28 | 2018-07-24 | 武汉珞珈弘禹工程技术有限公司 | A kind of method and system of hydrologic monitoring data storage |
CN109558450A (en) * | 2018-10-30 | 2019-04-02 | 中国汽车技术研究中心有限公司 | A kind of automobile remote monitoring method and apparatus based on distributed structure/architecture |
CN110149334A (en) * | 2019-05-23 | 2019-08-20 | 浙江吉利控股集团有限公司 | Vehicle management system |
WO2020140864A1 (en) * | 2018-12-31 | 2020-07-09 | 深圳市道通科技股份有限公司 | Diagnosis data processing method and device, diagnosis device and server |
CN111639072A (en) * | 2020-04-14 | 2020-09-08 | 北京中交兴路信息科技有限公司 | Data storage method and system in Internet of vehicles scene and readable storage medium |
CN111680060A (en) * | 2020-06-03 | 2020-09-18 | 长春博立电子科技有限公司 | Intelligent networked automobile big data real-time visual analysis method and system |
CN111914022A (en) * | 2020-07-23 | 2020-11-10 | 北京中数智汇科技股份有限公司 | Method and device for online capacity expansion of mongodb cluster |
CN114449000A (en) * | 2021-12-28 | 2022-05-06 | 北京邮电大学 | Vehicle network data consensus optimization storage method and storage system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111452A (en) * | 2011-03-04 | 2011-06-29 | 江苏天泽信息产业股份有限公司 | System for storing vehicle-mounted information by using distributed data storage program and storage method thereof |
US20120271903A1 (en) * | 2011-04-19 | 2012-10-25 | Michael Luna | Shared resource and virtual resource management in a networked environment |
CN103793493A (en) * | 2014-01-21 | 2014-05-14 | 深圳市元征科技股份有限公司 | Method and system for processing car-mounted terminal mass data |
CN106131126A (en) * | 2016-06-23 | 2016-11-16 | 广州亿程交通信息有限公司 | Vehicle management system based on car networking cloud platform service |
-
2017
- 2017-04-24 CN CN201710271393.3A patent/CN107092691A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111452A (en) * | 2011-03-04 | 2011-06-29 | 江苏天泽信息产业股份有限公司 | System for storing vehicle-mounted information by using distributed data storage program and storage method thereof |
US20120271903A1 (en) * | 2011-04-19 | 2012-10-25 | Michael Luna | Shared resource and virtual resource management in a networked environment |
CN103793493A (en) * | 2014-01-21 | 2014-05-14 | 深圳市元征科技股份有限公司 | Method and system for processing car-mounted terminal mass data |
CN106131126A (en) * | 2016-06-23 | 2016-11-16 | 广州亿程交通信息有限公司 | Vehicle management system based on car networking cloud platform service |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108319725A (en) * | 2018-02-28 | 2018-07-24 | 武汉珞珈弘禹工程技术有限公司 | A kind of method and system of hydrologic monitoring data storage |
CN109558450A (en) * | 2018-10-30 | 2019-04-02 | 中国汽车技术研究中心有限公司 | A kind of automobile remote monitoring method and apparatus based on distributed structure/architecture |
CN109558450B (en) * | 2018-10-30 | 2023-05-09 | 中国汽车技术研究中心有限公司 | Automobile remote monitoring method and device based on distributed architecture |
WO2020140864A1 (en) * | 2018-12-31 | 2020-07-09 | 深圳市道通科技股份有限公司 | Diagnosis data processing method and device, diagnosis device and server |
US12026985B2 (en) | 2018-12-31 | 2024-07-02 | Autel Intelligent Technology Corp., Ltd. | Method and apparatus for processing diagnosis data, diagnosis device and server |
CN110149334A (en) * | 2019-05-23 | 2019-08-20 | 浙江吉利控股集团有限公司 | Vehicle management system |
CN111639072A (en) * | 2020-04-14 | 2020-09-08 | 北京中交兴路信息科技有限公司 | Data storage method and system in Internet of vehicles scene and readable storage medium |
CN111680060A (en) * | 2020-06-03 | 2020-09-18 | 长春博立电子科技有限公司 | Intelligent networked automobile big data real-time visual analysis method and system |
CN111914022A (en) * | 2020-07-23 | 2020-11-10 | 北京中数智汇科技股份有限公司 | Method and device for online capacity expansion of mongodb cluster |
CN114449000A (en) * | 2021-12-28 | 2022-05-06 | 北京邮电大学 | Vehicle network data consensus optimization storage method and storage system |
CN114449000B (en) * | 2021-12-28 | 2022-10-11 | 北京邮电大学 | Internet of vehicles data consensus optimization storage method and storage system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107092691A (en) | A kind of date storage method and system based on car networking | |
US11340672B2 (en) | Persistent reservations for virtual disk using multiple targets | |
CN103136243B (en) | File system duplicate removal method based on cloud storage and device | |
CN104618482B (en) | Access method, server, conventional memory device, the system of cloud data | |
US10275489B1 (en) | Binary encoding-based optimizations at datastore accelerators | |
CN104539681B (en) | The processing method of distributed GIS acceleration systems and GIS service | |
CN103338242B (en) | A kind of mixed cloud storage system based on multi-level buffer and method | |
CN103793493B (en) | A kind of method and system for handling car-mounted terminal mass data | |
CN103345508A (en) | Data storage method and system suitable for social network graph | |
CN111694791B (en) | Data access method and device in distributed basic framework | |
CN105138679B (en) | A kind of data processing system and processing method based on distributed caching | |
CN108664516A (en) | Enquiring and optimizing method and relevant apparatus | |
CN109690510A (en) | Multicast device and method for multiple receivers by data distribution into high-performance calculation network and network based on cloud | |
JP2012524947A5 (en) | ||
CN103442090A (en) | Cloud computing system for data scatter storage | |
CN108519856B (en) | Data block copy placement method based on heterogeneous Hadoop cluster environment | |
US11409725B1 (en) | Multi-tenant partitioning in a time-series database | |
CN102857560A (en) | Multi-service application orientated cloud storage data distribution method | |
CN108449334A (en) | A kind of real training cloud system and method based on cloud computing | |
CN109933312A (en) | A method of containerization relevant database I/O consumption is effectively reduced | |
CN109739684A (en) | The copy restorative procedure and device of distributed key value database based on vector clock | |
CN109471725A (en) | Resource allocation methods, device and server | |
CN105791370B (en) | A kind of data processing method and associated server | |
Branco et al. | Managing very large distributed data sets on a data grid | |
CN113885797B (en) | Data storage method, device, equipment and storage medium |
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 | ||
CB02 | Change of applicant information |
Address after: 215347 7th floor, IIR complex, 1699 Weicheng South Road, Kunshan City, Suzhou City, Jiangsu Province Applicant after: Kunshan Microelectronics Technology Research Institute Address before: 215347 7th floor, complex building, No. 1699, Zuchongzhi South Road, Kunshan City, Suzhou City, Jiangsu Province Applicant before: KUNSHAN BRANCH, INSTITUTE OF MICROELECTRONICS OF CHINESE ACADEMY OF SCIENCES |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170825 |
|
RJ01 | Rejection of invention patent application after publication |