CN111246448B - Method for caching data by user identity card and user identity card - Google Patents

Method for caching data by user identity card and user identity card Download PDF

Info

Publication number
CN111246448B
CN111246448B CN202010014986.3A CN202010014986A CN111246448B CN 111246448 B CN111246448 B CN 111246448B CN 202010014986 A CN202010014986 A CN 202010014986A CN 111246448 B CN111246448 B CN 111246448B
Authority
CN
China
Prior art keywords
data
memory
service data
same type
received service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010014986.3A
Other languages
Chinese (zh)
Other versions
CN111246448A (en
Inventor
赵健
崔炳荣
甘杰
闫天瑜
王岩
刘浩
林华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Electric Power Research Institute of State Grid Fujian Electric Power Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Electric Power Research Institute of State Grid Fujian Electric Power Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Electric Power Research Institute of State Grid Fujian Electric Power Co Ltd, Beijing Smartchip Microelectronics Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202010014986.3A priority Critical patent/CN111246448B/en
Publication of CN111246448A publication Critical patent/CN111246448A/en
Application granted granted Critical
Publication of CN111246448B publication Critical patent/CN111246448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of communication, and discloses a method for caching data by a user identity card, which comprises the following steps: determining the data type of the service data received by the user identity identification card; when the data with the same type as the received service data does not exist in a memory of the user identity identification card, storing the received service data into the memory; and when the data with the same type as the received service data exists in the memory of the user identity identification card, storing the received service data to the tail part of the existing data with the same type or replacing the existing earliest data with the received service data and storing the earliest data. The invention caches the received service data in the memory of the user identity identification card in a sharing mode, thereby reducing the storage space occupied by the whole data.

Description

Method for caching data by user identity card and user identity card
Technical Field
The invention relates to the technical field of communication, in particular to a method for caching data by a user identity card and the user identity card.
Background
In the power industry, a large number of wireless public network remote communication modules and matched SIM (Subscriber Identity Module) cards or eSIM cards are used in the power industry power consumption acquisition system. The remote communication module of the acquisition terminal is used as a communication unit on the acquisition terminal, the acquisition terminal is linked with a main station through a public network in the prior art, and meter reading data collected by the acquisition terminal is transmitted to the main station through the remote communication module of the acquisition terminal and a matched SIM card. In the data transmission process, the SIM card is mainly used for network authentication (to access a public network) to realize data transparent transmission. Because the RAM space of the SIM card is limited, the SIM card does not buffer the meter reading data collected by the acquisition terminal and the service data such as the network quality information, the address information, the equipment identification information and the like collected by the remote communication module. In practical application, service data such as network quality information, address information, device identification information and the like acquired by the remote communication module need to be uploaded to the value-added server so as to facilitate analysis and management. How to store and upload service data such as network quality information, address information, equipment identification information and the like acquired by an acquisition terminal and a remote communication module to a value-added server is a problem to be solved urgently at present.
Disclosure of Invention
The invention aims to provide a method for caching data by a user identity card and the user identity card, so as to solve the problem of how to store business data acquired by an acquisition terminal and a remote communication module.
In order to achieve the above object, a first aspect of the present invention provides a method for caching data by a user identity card, where the method includes:
determining the data type of the service data received by the user identity identification card;
when the data with the same type as the received service data does not exist in a memory of the user identity identification card, storing the received service data into the memory;
and when the data with the same type as the received service data exists in the memory of the user identity identification card, storing the received service data to the tail part of the existing data with the same type or replacing the existing earliest data with the received service data and storing the earliest data.
Further, the storing the received service data to the tail of the existing data of the same type or replacing the existing earliest data of the same type with the received service data and storing the received service data includes:
if the storage amount of the same type of data existing in the memory reaches a preset threshold value, replacing the earliest existing data of the same type with the received service data and storing the earliest existing data of the same type;
and if the storage capacity of the same type of data existing in the memory does not reach a preset threshold value, storing the received service data to the tail part of the existing same type of data.
Further, before storing the received service data in the memory, the method further includes:
and when the memory is in the data uploading state, storing the received service data to a backup memory of the user identity identification card.
Further, the storing the received service data to a backup memory of the user identification card includes:
when the storage space of the backup memory is full, replacing the earliest data of the same type in the backup memory with the received service data and storing the earliest data;
and when the storage space of the backup memory is not full, directly storing the received service data to the backup memory.
Further, after storing the received service data in the backup memory of the subscriber identity card, the method further includes: after the data uploading of the memory is finished, writing the service data stored in the backup memory into the memory and clearing the service data stored in the backup memory.
Further, in the above method for caching data by a subscriber identity module card, the subscriber identity module card includes a SIM card and an eSIM card.
A second aspect of the present invention provides a user identification card, including:
the receiving module is used for receiving the service data;
a type determining unit, configured to determine a data type of the service data received by the receiving module;
the memory is used for storing the service data received by the receiving module;
a first storage unit, configured to store the received service data in the memory when there is no data of the same type as the received service data in the memory;
a second storage unit, configured to, when data of the same type as the received service data exists in the memory, store the received service data to a tail of existing data of the same type or replace existing earliest data of the same type with the received service data and store the earliest data;
and the sending module is used for sending the service data stored in the memory.
Further, still include:
and the backup memory is used for storing the service data received by the receiving module when the memory is in the data uploading state.
Further, the backup memory includes:
the third storage unit is used for replacing and storing the earliest data of the same type in the backup memory by the received service data when the memory is in the data uploading state and the storage space of the backup memory is full;
and the fourth storage unit is used for directly storing the received service data to the backup memory when the memory is in the data uploading state and the storage space of the backup memory is not full.
Further, the second storage unit includes:
the first storage subunit is configured to, when data of the same type as the received service data exists in the memory and the storage amount of the data of the same type already existing in the memory reaches a preset threshold, replace and store the earliest existing data of the same type with the received service data;
and the second storage subunit is used for storing the received service data to the tail part of the existing data of the same type when the data of the same type as the received service data exists in the memory and the storage quantity of the existing data of the same type in the memory does not reach a preset threshold value.
Further, the subscriber identity module card includes a SIM card and an eSIM card.
According to the technical scheme, the service data received by the SIM card or the eSIM card is cached in the memory of the SIM card or the eSIM card in a sharing mode, the service data of each type does not exclusively use the storage space, but is stored in the sharing mode (the storage space is shared by multiple service data), the storage space occupied by the whole data is reduced, and the limited memory space of the SIM card or the eSIM card is utilized to the maximum extent. On the other hand, when the SIM card or the eSIM card is provided with the backup memory, the backup memory stores the service data transmitted by the remote communication module when the memory is in the data uploading state, thereby avoiding the problem of new data loss caused by the fact that new data cannot be stored when the memory reports the data.
The technical scheme of the invention can be applied to an acquisition system in the power industry, and the SIM card or the eSIM card is used for caching the service data such as network quality information, address information, equipment identification information and the like acquired by the acquisition terminal and the remote communication module, and the service data is used for uploading to a value-added server so as to realize the functions of unified monitoring management, problem analysis and the like of the equipment.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
fig. 1 is a flowchart of a method for caching data by a SIM card according to an embodiment of the present invention;
fig. 2 is a block diagram of a SIM card according to an alternative embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
In this embodiment, a remote communication module of the acquisition terminal is used as a communication unit on the acquisition terminal, and the remote communication module transmits service data such as received network quality information, address information, device identification information and the like to the eSIM \ SIM card through an APDU instruction, and the eSIM \ SIM caches different types of received data in a memory of the eSIM \ SIM card, and periodically uploads the different types of received data to the value-added server.
Fig. 1 is a flowchart of a method for caching data by a SIM card according to an embodiment of the present invention. As shown in fig. 1, an embodiment of the present invention provides a method for caching data by a SIM card, where the method includes the following steps:
and S1, determining the data type of the service data received by the SIM card.
For example, it is determined which of network quality information, address information, or device identification information the service data received by the SIM card belongs to. The storage format of the service data in the SIM card includes a data Type, a data Length, and a data Value, and may adopt a TLV format including a Type, a Length, and a Value, and the data Type of the service data may be identified by a Type field.
And S11, judging whether the memory of the SIM card is in the state of uploading data.
For example, it is determined whether the memory of the SIM card is uploading service data to the value added server.
And S2, when the memory is not in the data uploading state, judging whether the memory has data with the same type as the received service data.
For example, the data Type of the service data is identified by the Type field of the service data, so as to determine whether the same data as the received service data Type exists in the memory.
And S21, if the memory does not have the data with the same type as the received service data, storing the received service data into the memory.
For example, the data type of the network quality information is a, the data type of the address information is B, and the data type of the device identification information is C. When the network quality information (A type data) is received, judging that the A type data does not exist in the memory, directly storing the received network quality information (A type data) into the memory, and recording the first address of the A type data. When the address information (B type data) is received, judging that the B type data does not exist in the memory, directly storing the received address information (B type data) into the memory, and recording the first address of the B type data. When the device identification information (C type data) is received, judging that the C type data does not exist in the memory, directly storing the received device identification information (C type data) into the memory, and recording the first address of the C type data.
And S22, if the data with the same type as the received service data exists in the memory, judging whether the storage amount of the data with the same type existing in the memory reaches a preset threshold value. The preset threshold value can be preset according to the actual application requirement.
And S23, if the storage amount of the same type of data existing in the memory reaches a preset threshold value, replacing the earliest existing data of the same type with the received service data and storing the earliest existing data of the same type.
For example, network quality information (a-type data), address information (B-type data), and device identification information (C-type data) already exist in the memory, when the a-type data (Am) is received, it is determined that the a-type data (sequentially stored as A1A2A3 … according to the sequence) already exists in the memory, and the storage amount of the a-type data has reached a preset threshold, the earliest stored a-type data is searched according to the head address of the a-type data recorded in step S21, and A1 is replaced with Am (sequentially stored as AmA2A3 …); when type a data (An) is received again, a2 (stored as AmAnA3 … in turn) is replaced with An, i.e., the oldest data is overwritten with new data.
And S24, if the storage amount of the same type of data existing in the memory does not reach a preset threshold value, storing the received service data to the tail of the existing same type of data.
For example, the memory has network quality information (a type data), address information (B type data), and device identification information (C type data) stored as A1A2A3 … B1B2B3 … C1C2C3 … in sequence according to the sequence, and when receiving the B type data (Bn), it is determined that the B type data exists in the memory, and the storage amount of the B type data does not reach the preset threshold, and the Bn is inserted and stored to the tail of the B type data (sequentially stored as A1A2A3 … B1B2B3 … BnC1C2C3 …).
And S3, judging whether the storage space of the backup memory is full when the memory is in the data uploading state.
And S31, if the storage space of the backup memory is full, replacing the earliest data of the same type in the backup memory with the received service data and storing the earliest data.
And S32, if the storage space of the backup memory is not full, directly storing the received service data to the backup memory.
And S33, after the data uploading of the memory is finished, writing the service data stored in the backup memory into the memory and clearing the service data stored in the backup memory.
The network quality information, the address information, the equipment identification information and other data acquired by the remote communication module of the acquisition terminal are stored in the memory of the SIM card through the steps, and the memory space is shared by various real-time data instead of being stored separately in blocks, so that the space occupied by the whole data storage is reduced. And moreover, the received new data is judged to be stored in the memory or the backup memory according to the reporting state of the data, so that the data loss is prevented when the data are reported.
Fig. 2 is a block diagram of a SIM card according to an alternative embodiment of the present invention. As shown in fig. 2, an embodiment of the present invention further provides a SIM card or an eSIM card, including: the device comprises a receiving module, a type determining unit, a memory, a first storage unit, a second storage unit and a sending module.
The receiving module is used for receiving the service data.
The type determining unit is used for determining the data type of the service data received by the receiving module.
The memory is used for storing the service data received by the receiving module.
The first storage unit is used for storing the received service data into the memory when the data with the same type as the received service data does not exist in the memory.
The second storage unit is used for storing the received service data to the tail of the existing data of the same type or replacing the existing earliest data of the same type with the received service data and storing the received service data when the data of the same type as the received service data exists in the memory.
And the sending module is used for sending the service data stored in the memory.
Further, the SIM card or the eSIM card further includes a backup memory, and the backup memory is configured to store the service data received by the receiving module when the memory is in the data uploading state. The backup memory comprises a third storage unit and a fourth storage unit, and the third storage unit is used for replacing and storing the earliest data of the same type in the backup memory with the received service data when the memory is in a data uploading state and the storage space of the backup memory is full; the fourth storage unit is used for directly storing the received service data to the backup memory when the memory is in an uploading data state and the storage space of the backup memory is not full.
Further, the second storage unit comprises a first storage sub-unit and a second storage sub-unit. The first storage subunit is configured to, when data of the same type as the received service data exists in the memory and the storage amount of the data of the same type already existing in the memory reaches a preset threshold, replace and store the earliest existing data of the same type with the received service data; the second storage subunit is configured to store the received service data to a tail of the existing data of the same type when data of the same type as the received service data exists in the memory and a storage amount of the existing data of the same type in the memory does not reach a preset threshold.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, which is stored in a storage medium and includes several instructions to enable a single chip, a chip, or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present invention.
While the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solution of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and the simple modifications are within the scope of the embodiments of the present invention. It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention will not be described separately for the various possible combinations.

Claims (9)

1. A method for caching data by a user identity card is characterized by comprising the following steps:
determining the data type of the service data received by the user identity identification card;
when the data with the same type as the received service data does not exist in a memory of the user identity identification card, storing the received service data into the memory;
when data with the same type as the received service data exists in a memory of the user identity card, the received service data is stored to the tail part of the existing data with the same type or replaces the existing earliest data with the received service data and stores the earliest data;
before storing the received traffic data to the memory, the method further comprises:
and when the memory is in the data uploading state, storing the received service data to a backup memory of the user identity identification card.
2. The method as claimed in claim 1, wherein the storing the received service data to the tail of the existing data of the same type or replacing the received service data with the earliest existing data of the same type and storing the data comprises:
if the storage amount of the same type of data existing in the memory reaches a preset threshold value, replacing the earliest existing data of the same type with the received service data and storing the earliest existing data of the same type;
and if the storage capacity of the same type of data existing in the memory does not reach a preset threshold value, storing the received service data to the tail part of the existing same type of data.
3. The method as claimed in claim 1, wherein the storing the received service data to the backup memory of the user id card comprises:
when the storage space of the backup memory is full, replacing the earliest data of the same type in the backup memory with the received service data and storing the earliest data;
and when the storage space of the backup memory is not full, directly storing the received service data to the backup memory.
4. The method for caching data in the subscriber identity module card according to claim 1, wherein after the storing the received service data in a backup memory of the subscriber identity module card, the method further comprises:
after the data uploading of the memory is finished, writing the service data stored in the backup memory into the memory and clearing the service data stored in the backup memory.
5. A user identification card, comprising:
the receiving module is used for receiving the service data;
a type determining unit, configured to determine a data type of the service data received by the receiving module;
the memory is used for storing the service data received by the receiving module;
a first storage unit, configured to store the received service data in the memory when there is no data of the same type as the received service data in the memory;
a second storage unit, configured to, when data of the same type as the received service data exists in the memory, store the received service data to a tail of existing data of the same type or replace existing earliest data of the same type with the received service data and store the earliest data;
a sending module, configured to send the service data stored in the memory;
and the backup memory is used for storing the service data received by the receiving module when the memory is in the data uploading state.
6. The SIM card of claim 5, wherein the backup memory comprises:
the third storage unit is used for replacing and storing the earliest data of the same type in the backup memory by the received service data when the memory is in the data uploading state and the storage space of the backup memory is full;
and the fourth storage unit is used for directly storing the received service data to the backup memory when the memory is in the data uploading state and the storage space of the backup memory is not full.
7. The sim card according to claim 5, wherein the second storage unit comprises:
the first storage subunit is configured to, when data of the same type as the received service data exists in the memory and the storage amount of the data of the same type already existing in the memory reaches a preset threshold, replace and store the earliest existing data of the same type with the received service data;
and the second storage subunit is used for storing the received service data to the tail part of the existing data of the same type when the data of the same type as the received service data exists in the memory and the storage quantity of the existing data of the same type in the memory does not reach a preset threshold value.
8. The method for caching data by a subscriber identity card according to any one of claims 1 to 4, wherein the subscriber identity card comprises a SIM card and an eSIM card.
9. The subscriber identity card according to any one of claims 5 to 7, wherein the subscriber identity card comprises a SIM card and an eSIM card.
CN202010014986.3A 2020-01-07 2020-01-07 Method for caching data by user identity card and user identity card Active CN111246448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010014986.3A CN111246448B (en) 2020-01-07 2020-01-07 Method for caching data by user identity card and user identity card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010014986.3A CN111246448B (en) 2020-01-07 2020-01-07 Method for caching data by user identity card and user identity card

Publications (2)

Publication Number Publication Date
CN111246448A CN111246448A (en) 2020-06-05
CN111246448B true CN111246448B (en) 2022-01-14

Family

ID=70870330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010014986.3A Active CN111246448B (en) 2020-01-07 2020-01-07 Method for caching data by user identity card and user identity card

Country Status (1)

Country Link
CN (1) CN111246448B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852517A (en) * 2005-05-27 2006-10-25 华为技术有限公司 Method for automatically covering short message
CN103841201A (en) * 2014-03-13 2014-06-04 中国联合网络通信集团有限公司 Data pushing method and terminal device
CN107092439A (en) * 2017-03-07 2017-08-25 华为技术有限公司 A kind of method and apparatus of data storage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577281A (en) * 2012-07-30 2014-02-12 北京网秦天下科技有限公司 Method and system for recovering data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852517A (en) * 2005-05-27 2006-10-25 华为技术有限公司 Method for automatically covering short message
CN103841201A (en) * 2014-03-13 2014-06-04 中国联合网络通信集团有限公司 Data pushing method and terminal device
CN107092439A (en) * 2017-03-07 2017-08-25 华为技术有限公司 A kind of method and apparatus of data storage

Also Published As

Publication number Publication date
CN111246448A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN102521174B (en) In a kind of embedded system, data acquisition stores the method with transmission
CN102045772B (en) Data transmission method and device
US20120054172A1 (en) Method and system for transmitting a query in a wireless network
CN101350834A (en) Information acquisition system capable of asynchronously implementing information acquisition and information transmission
CN104092717A (en) Message processing method and system, message destination end device and distributed message system
CN104301340A (en) Method and system for data transmission in mobile network
CN109120067A (en) A kind of sequence of events recording report method, device, equipment and readable storage medium storing program for executing
CN111246448B (en) Method for caching data by user identity card and user identity card
CN108228476B (en) Data acquisition method and device
CN103581846A (en) User business card updating method and system
CN114968102A (en) Data caching method, device and system, computer equipment and storage medium
CN114095876A (en) Broadcast data processing method and device, storage medium and electronic device
CN212809262U (en) Monitoring system for beehive frame
CN101404797B (en) Storage method, storage management apparatus and storage system for long and short messages
CN101252755A (en) Mobile communication terminal and monitoring method thereof
US11425632B2 (en) Mechanism to provide updates to NB-IoT devices
CN106899386B (en) Method for demodulating fragmented frame signals based on multi-channel communication receiving system
CN104253713A (en) Method for storing and reading data packets under monitoring environment, and corresponding device
CN109766462B (en) Image file reading method, device and system in power transmission line monitoring system
CN101964745A (en) Network forwarding equipment and message forwarding method thereof
CN115604089A (en) Network fault positioning method and device
CN109947371B (en) Data recording method, device, memory and T-BOX
CN101217755B (en) A front-end processor system and method applied for data acquisition
CN112422618A (en) Position sensing data reporting method, device and system
CN101707525A (en) Charging method and device

Legal Events

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