Embedded type Linux based data storage method for electric energy data acquire terminal

A technology for storing data and electricity consumption information, which is applied in the field of data storage in terminals based on embedded Linux electricity consumption information collection, can solve the problems of adding hardware, data loss, accessing data, etc., and achieves high portability, increased reliability, and improved performance effect

Active Publication Date: 2016-01-06
INTEGRATED ELECTRONICS SYST LAB
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Storing data in files can avoid data loss caused by system power outages, but the operation of reading and writing files is cumbersome, and the data cannot be accessed in the form of operating bytes, which is inconvenient to use, and the performance of frequent reading and writing files is limited, especially in the repetition of large files , random read and write
[0007] 2. Increase the hardware SRA

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Embedded type Linux based data storage method for electric energy data acquire terminal
  • Embedded type Linux based data storage method for electric energy data acquire terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The method for storing data in a power consumption information collection terminal based on embedded Linux comprises the following steps:

[0035] Step 1. Determine the data to be stored and the length of the data, define the base address of the memory mapping area in the process address space, and define the relative offset between the address for storing each data and the base address; determine according to the required storage data length The length of the required mapped memory also determines the size of the memory-mapped file;

[0036] Step 2. Detect the legality of the memory-mapped file according to the length of the required storage data in step 1, the start byte and the end byte of the memory-mapped file. If the file is legal, enter step 3; Store the data length to create a file and fill the file content with zero value before entering step 3;

[0037] Step 3, call the memory mapping function mmap, set up the mapping with the memory mapping file to be memory...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an embedded type Linux based data storage method for an electric energy data acquire terminal by using a memory mapping file to store data. The data needed to be read-written is mapped to a user process space through an memory mapping function mmap (Linux system call), and the stored data is accessed in the manner of reading and writing the memory, so that the data storage method has the advantages of data solidification and data storage, without losing data in power failure, convenience in reading and writing, excellent property, cost reduction and the like.

Description

technical field [0001] The invention relates to the field of a smart grid power consumption information collection system, in particular to a method for storing data in a power consumption information collection terminal based on embedded Linux. Background technique [0002] The power user electricity energy data acquire system is a system for collecting, processing and real-time monitoring of electricity consumption information of power users, realizing automatic collection of electricity consumption information, abnormal measurement monitoring, power quality monitoring, power consumption analysis and management, Relevant information release, distributed energy monitoring, information interaction of intelligent electrical equipment and other functions. [0003] The electricity energy data acquire terminal (electric energy data acquire terminal) is a device for collecting electricity information at each information collection point, referred to as the acquisition terminal. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F12/02
Inventor 孙明刚候志立李旭升许远向王超刘腾昇刘亮
Owner INTEGRATED ELECTRONICS SYST LAB
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products