CN110865887A - Method for saving and outputting direct output short message - Google Patents

Method for saving and outputting direct output short message Download PDF

Info

Publication number
CN110865887A
CN110865887A CN201911167919.9A CN201911167919A CN110865887A CN 110865887 A CN110865887 A CN 110865887A CN 201911167919 A CN201911167919 A CN 201911167919A CN 110865887 A CN110865887 A CN 110865887A
Authority
CN
China
Prior art keywords
short message
memory
output
data
port
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.)
Granted
Application number
CN201911167919.9A
Other languages
Chinese (zh)
Other versions
CN110865887B (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.)
Zhongke Shujin Henan Technology Co ltd
Original Assignee
BEIJING SIMPLIGHT NANOELECTRONICS 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 BEIJING SIMPLIGHT NANOELECTRONICS Co Ltd filed Critical BEIJING SIMPLIGHT NANOELECTRONICS Co Ltd
Priority to CN201911167919.9A priority Critical patent/CN110865887B/en
Publication of CN110865887A publication Critical patent/CN110865887A/en
Application granted granted Critical
Publication of CN110865887B publication Critical patent/CN110865887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention relates to an information storage and output method, in particular to a method for directly outputting short messages for storage and output. The short message content storage problem under the configuration that the short message content is directly output in the AT port data state comprises a storage medium, a cache and an output method, since the configuration that the short message content is directly output to an AP, the AP analyzes and decodes the short message content, the AP enables the data to be output to the AP better as soon as possible, and under the condition that the data has to be cached in the port data state, the NV and USIM storage and reading speeds are slow, which is not beneficial to outputting the short message content to the AP quickly when the port is restored to the command state, therefore, the short message is cached in a RAM, and the RAM has the advantages that the data reading speed is fast, and the cache and the output of the short message under the condition are just matched.

Description

Method for saving and outputting direct output short message
Technical Field
The invention relates to an information storage and output method, in particular to a method for directly outputting short messages for storage and output.
Background
Short messages are point-to-point information transmission techniques. The short message received by the modem is stored, transmitted and notified to the AP, and the AP can be configured through a series of AT commands.
The short message received by the Modem can be stored in the Modem side, and then the AP is informed to fetch the short message. The short message may also be directly output to the AP. The data interface between the Modem and the AP is generally an AT interface, and the state of the AT interface is divided into a data state and a command state. In the command state, the received short message can be directly output to the AP. In the data state, data is generally buffered at the modem side, and the buffered message is output to the AP when the data state is restored.
The short message content or the indication message output to the AP is also notified to the AP through an AT command on the serial port. The state of the AT port includes a data state and a command state. If the port state is a data state, the short message data directly outputs the short message content to the AP according to the setting instead of being stored in the modem, and outputs a storage instruction to the AP. How the data is buffered in this case is not explicitly indicated by the 3GPP standard protocol 27005.
The storage media of the short message on the modem are mainly 2 kinds, NV and USIM. Aiming AT the configuration that the short message content is directly output in the AT port data state, the short message content is also stored on the 2 media, and a simpler, faster and quicker mode does not exist,
the advantage of short message save on the NV and USIM is that it can be saved for long periods of time without loss of data even if the system is powered off. The disadvantage is the slow data storage read speed.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for storing and outputting the short message by directly outputting the short message aiming AT the problem of storing the short message under the configuration of directly outputting the short message content under the data state of the AT port, comprising a storage medium and a caching and outputting method.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for saving and outputting short message directly includes applying RAM memory space when short message is needed to be cached in data state of AT port, and pressing address and length parameter of applied memory into said memory management queue; when the memory address needs to be output, the address and the length information are sequentially read out from the queue, the data of the memory address is output to the AP, and meanwhile the memory space is released.
The invention is further improved, and the steps of directly outputting the short message content to the RAM for storage when the AT port is in a data state are specifically as follows:
s1, establishing a memory management queue for managing a memory for storing the short message;
s2, firstly analyzing the header information of the received short message to obtain the grade of the short message, judging whether the content of the short message needs to be directly output to the AP or not based on the grade and output configuration, if not, processing according to the description of 3GPP 27007, and if so, entering S3;
s3, the AT port state directly outputs the short message content to the AP if the AT port state is the command state; if the data state is the data state, the step goes to S4;
s4, applying for the memory space of the short message content length in the RAM, copying the short message content to the applied memory, and simultaneously pressing the applied memory address and length information into a memory management queue.
The invention is further improved, when the AT port is restored to the command state, the data is taken out from the RAM and output to the AP specifically comprises the following steps:
s1, sequentially taking out elements in a queue from a management memory queue;
and S2, outputting the short message content on the address to the AP, and releasing the corresponding memory space.
The invention has the beneficial effects that: the short message content storage problem under the configuration that the short message content is directly output in the AT port data state comprises a storage medium, a cache and an output method, since the configuration that the short message content is directly output to an AP, the AP analyzes and decodes the short message content, the AP enables the data to be output to the AP better as soon as possible, and under the condition that the data has to be cached in the port data state, the NV and USIM storage and reading speeds are slow, which is not beneficial to outputting the short message content to the AP quickly when the port is restored to the command state, therefore, the short message is cached in a RAM, and the RAM has the advantages that the data reading speed is fast, and the cache and the output of the short message under the condition are just matched.
Drawings
FIG. 1 is a schematic view of a preservation process of the present invention;
FIG. 2 is a schematic diagram of an output process according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example (b): as shown in fig. 1 and fig. 2, the method for saving and outputting a short message includes applying for a RAM memory space when a short message needs to be cached in a data state AT an AT port, and pushing an address and a length parameter of the applied RAM memory into the memory management queue; when the memory address needs to be output, the address and the length information are sequentially read out from the queue, the data of the memory address is output to the AP, and meanwhile the memory space is released.
In this embodiment, when the AT port is in the data state, the step of directly outputting the short message content to the RAM includes the following steps:
s1, establishing a memory management queue for managing a memory for storing the short message;
s2, firstly analyzing the header information of the received short message to obtain the grade of the short message, judging whether the content of the short message needs to be directly output to the AP or not based on the grade and output configuration, if not, processing according to the description of 3GPP 27007, and if so, entering S3;
s3, the AT port state directly outputs the short message content to the AP if the AT port state is the command state; if the data state is the data state, the step goes to S4;
s4, applying for the memory space of the short message content length in the RAM, copying the short message content to the applied memory, and simultaneously pressing the applied memory address and length information into a memory management queue.
In this embodiment, when the AT port is restored to the command state, the step of retrieving data from the RAM and outputting the data to the AP specifically includes:
s1, sequentially taking out elements in a queue from a management memory queue;
and S2, outputting the short message content on the address to the AP, and releasing the corresponding memory space.
The foregoing is merely an example of the present invention and common general knowledge of known specific structures and features of the embodiments is not described herein in any greater detail. It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (3)

1. A method for saving and outputting short message directly includes applying RAM memory space when short message is needed to be cached in data state of AT port, and pressing address and length parameter of applied memory into said memory management queue; when the memory address needs to be output, the address and the length information are sequentially read out from the queue, the data of the memory address is output to the AP, and meanwhile the memory space is released.
2. The method for saving and outputting the direct output short message according to claim 1, wherein the AT port is in a data state, the step of saving the direct output short message in the RAM is specifically as follows:
s1, establishing a memory management queue for managing a memory for storing the short message;
s2, firstly analyzing the header information of the received short message to obtain the grade of the short message, judging whether the content of the short message needs to be directly output to the AP or not based on the grade and output configuration, if not, processing according to the description of 3GPP 27007, and if so, entering S3;
s3, the AT port state directly outputs the short message content to the AP if the AT port state is the command state; if the data state is the data state, the step goes to S4;
s4, applying for the memory space of the short message content length in the RAM, copying the short message content to the applied memory, and simultaneously pressing the applied memory address and length information into a memory management queue.
3. The method as claimed in claim 1, wherein the step of retrieving the data from the RAM and outputting the retrieved data to the AP when the AT port returns to the command state comprises:
s1, sequentially taking out elements in a queue from a management memory queue;
and S2, outputting the short message content on the address to the AP, and releasing the corresponding memory space.
CN201911167919.9A 2019-11-25 2019-11-25 Direct output short message storage output method Active CN110865887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911167919.9A CN110865887B (en) 2019-11-25 2019-11-25 Direct output short message storage output method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911167919.9A CN110865887B (en) 2019-11-25 2019-11-25 Direct output short message storage output method

Publications (2)

Publication Number Publication Date
CN110865887A true CN110865887A (en) 2020-03-06
CN110865887B CN110865887B (en) 2024-04-16

Family

ID=69655957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911167919.9A Active CN110865887B (en) 2019-11-25 2019-11-25 Direct output short message storage output method

Country Status (1)

Country Link
CN (1) CN110865887B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961361A (en) * 2021-11-10 2022-01-21 重庆紫光华山智安科技有限公司 Control method and system for cache resources

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5696931A (en) * 1994-09-09 1997-12-09 Seagate Technology, Inc. Disc drive controller with apparatus and method for automatic transfer of cache data
KR20040032512A (en) * 2002-10-10 2004-04-17 엘지전자 주식회사 System And Method For Serving Short Message In High Rate Packet Data System
CN101076137A (en) * 2006-05-16 2007-11-21 北京握奇数据系统有限公司 Apparauts for transmitting and receiving title SMS and method for transmitting, receiving and displaying
CN102223681A (en) * 2010-04-19 2011-10-19 中兴通讯股份有限公司 M2M system and cache control method therein
US20160117119A1 (en) * 2014-10-28 2016-04-28 Samsung Electronics Co., Ltd. Storage device and operating method of the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5696931A (en) * 1994-09-09 1997-12-09 Seagate Technology, Inc. Disc drive controller with apparatus and method for automatic transfer of cache data
KR20040032512A (en) * 2002-10-10 2004-04-17 엘지전자 주식회사 System And Method For Serving Short Message In High Rate Packet Data System
CN101076137A (en) * 2006-05-16 2007-11-21 北京握奇数据系统有限公司 Apparauts for transmitting and receiving title SMS and method for transmitting, receiving and displaying
CN102223681A (en) * 2010-04-19 2011-10-19 中兴通讯股份有限公司 M2M system and cache control method therein
US20160117119A1 (en) * 2014-10-28 2016-04-28 Samsung Electronics Co., Ltd. Storage device and operating method of the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961361A (en) * 2021-11-10 2022-01-21 重庆紫光华山智安科技有限公司 Control method and system for cache resources
CN113961361B (en) * 2021-11-10 2024-04-16 重庆紫光华山智安科技有限公司 Control method and system for cache resources

Also Published As

Publication number Publication date
CN110865887B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
US8713287B2 (en) Off-loading of processing from a processor blade to storage blades based on processing activity, availability of cache, and other status indicators
WO2018049761A1 (en) Gif file playing method and system
US11425057B2 (en) Packet processing
CN111221759A (en) Data processing system and method based on DMA
CN110297722B (en) Thread task communication method and related product
CN111343089B (en) Method and system for solving flooding problem caused by MAC address HASH conflict
US11010094B2 (en) Task management method and host for electronic storage device
CN111813343A (en) Solid state disk garbage recovery method, system and related components
CN110865887B (en) Direct output short message storage output method
CN110232029B (en) Method for realizing DDR4 packet cache in FPGA based on index
CN115905086A (en) Control method and controller for synchronously reading and writing single-port SRAM (static random Access memory) based on AXI (advanced extensible interface)
CN111181874B (en) Message processing method, device and storage medium
EP3872642B1 (en) Caching device, cache, system, method and apparatus for processing data, and medium
CN110781166B (en) Data management method and device in storage system
CN111770054A (en) Interaction acceleration method and system for SMB protocol read request
CN113641604B (en) Data transmission method and system
CN115495406A (en) Message transmission method, device, equipment and storage medium based on PCIe
CN112395011B (en) Method for returning command response information, return control device and electronic equipment
CN113709202B (en) Method and system for waking up system chip
CN114443585A (en) Log collection method, device, equipment and medium
US20110179236A1 (en) Memory Block Reclaiming Judging Apparatus and Memory Block Managing System
CN111654886A (en) Method and device for limiting user bandwidth
CN101562604B (en) Non-cache model matching method based on message flow data
CN116760996B (en) PNG image decoding method, hardware architecture thereof, electronic device and storage medium
CN112242962B (en) Message buffer cutting processing 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240312

Address after: Room 1412, 14th Floor, Building B, Building 3, Shenglong Plaza, No. 78 Shangding Road, Zhengzhou Area (Zhengdong), Henan Pilot Free Trade Zone, Zhengzhou City, Henan Province, 450000

Applicant after: Zhongke Shujin (Henan) Technology Co.,Ltd.

Country or region after: China

Address before: Room 1001 and 1002, block B, Jinqiu international building, No. 6, Zhichun Road, Haidian District, Beijing 100089

Applicant before: BEIJING SIMPLIGHT NANOELECTRONICS Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant