CN104615223A - Resetting method of GSM (Global System of Mobile Communication) module - Google Patents

Resetting method of GSM (Global System of Mobile Communication) module Download PDF

Info

Publication number
CN104615223A
CN104615223A CN201310536269.7A CN201310536269A CN104615223A CN 104615223 A CN104615223 A CN 104615223A CN 201310536269 A CN201310536269 A CN 201310536269A CN 104615223 A CN104615223 A CN 104615223A
Authority
CN
China
Prior art keywords
data
reset
gsm module
sram
storage area
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
Application number
CN201310536269.7A
Other languages
Chinese (zh)
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.)
Shenyang Chenxun Simcom Technology Co Ltd
Original Assignee
Shenyang Chenxun Simcom 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 Shenyang Chenxun Simcom Technology Co Ltd filed Critical Shenyang Chenxun Simcom Technology Co Ltd
Priority to CN201310536269.7A priority Critical patent/CN104615223A/en
Publication of CN104615223A publication Critical patent/CN104615223A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a resetting method of a GSM (Global System of Mobile Communication) module. The resetting method comprises the following steps: S1) the GSM module receives a resetting instruction; S2) the GSM module stores multiple pieces of resetting transferring data to an SRAM (Static Random Access Memory); S3) the GSM module is restarted, the SRAM is initialized, and all pieces of data, except the resetting transferring data, in the SRAM are cleared; S4) the GSM module reads the resetting transferring data stored in the SRAM; and S5) the GSM module is operated. Through a way that the resetting transferring data is read during startup after the SRAM is used for replacing a FLASH or an EEPROM (Electrically Erasable Programmable Read-Only Memory) to write the resetting transferring data into the SRAM, the resetting time is shortened, and the cost is lowered.

Description

The repositioning method of gsm module
Technical field
The present invention relates to a kind of GSM(Global System of Mobile communication, global system for mobile communications) repositioning method of module.
Background technology
The Application comparison of gsm module in industry and wireless access is extensive, because application scenarios is many, production test item is also very many, wherein some test item is in PC(PC) send instruction after, specific action is performed after needing gsm module to reset, in order to these information such as specific instruction and data can be got after gsm module resets, the data that when needing these to reset, needs transmit are saved in FLASH(flash memory), EEPROM(EEPROM (Electrically Erasable Programmable Read Only Memo)) etc. in storer, due to FLASH, the Spatial General 6 R frequency of utilization of EEPROM is higher, and cost is higher, the information being used for storing production test link understands the cost of increasing device.Because the read or write speed of FLASH, EEPROM is slow, and corresponding driver will be performed just can read and write, the on time of gsm module can be increased.
Summary of the invention
The technical problem to be solved in the present invention uses FLASH, EEPROM read-write reset transmission data to cause the defect that the on time is long, equipment cost is excessive that resets to overcome in prior art, there is provided a kind of cost less, the repositioning method of reset speed gsm module faster.
The present invention solves above-mentioned technical matters by following technical proposals:
A repositioning method for gsm module, its feature is, includes following steps:
S1, described gsm module receive a reset instruction;
S2, described gsm module store some resets and transmit data to SRAM(static RAM); Herein, SRAM is positioned at baseband chip inside, and not needing increases extra cost, and the read or write speed of SRAM is higher than FLASH and EEPROM.
S3, restart described gsm module, SRAM described in initialization also removes all data in described SRAM except the described transmission data that reset;
S4, described gsm module read the described reset stored in described SRAM and transmit data; Herein, because SRAM uses less when starting, and read or write speed is fast, is better than selecting FLASH and EEPROM to store reset and transmits data.
S5, run described gsm module.
Preferably, be provided with one in described SRAM and transmit data storage area for storing the described reset of transmitting data that resets; That is, from the storage areas such as the RW/ZI in SRAM, mark a part and transmit data storage area as resetting, generally divide in SRAM afterbody.
Described S3 is: restart described gsm module, SRAM described in initialization the data removed in the whole subregions in described SRAM except the described transmission data storage area that resets.
Preferably, also include after described S3:
Whether S31, the reset judged in described reset transmission data storage area are transmitted data and can be used, if then perform S4, then perform S5 if not.
Preferably, also include between described S2 and described S3:
S21, record described reset and transmit the opening flag of data, data length, end mark be stored to described resets transmission data storage area;
Described S31 for: judge that whether the opening flag that data are transmitted in the described reset of transmitting in data storage area that resets consistent with recorded opening flag, if then perform S32, then perform S5 if not;
S32, judge that whether the data length that data are transmitted in the described reset of transmitting in data storage area that resets is consistent with recorded data length, if then perform S33, then perform S5 if not;
S33, judge that whether the end mark that data are transmitted in the described reset of transmitting in data storage area that resets is consistent with recorded end mark, if then perform S4, then perform S5 if not.
Preferably, described S21 is: the opening flag setting described reset transmission data is 0xDADADADA, data length is 1 ~ 65535 byte, end mark is 0xADADADAD and is stored to described reset to transmit data storage area; That is, before reset transmission data, leave 4 bytes deposits as the 0xDADADADA of opening flag, 4 byte 1 ~ 65535 bytes deposited as data length, transmits after data leave 4 bytes for depositing the 0xADADADAD as end mark in reset.
Described S31 is: judge whether the opening flag that data are transmitted in the described reset of transmitting in data storage area that resets is 0xDADADADA, if then perform S32, then performs S5 if not;
S32, judge whether the data length that data are transmitted in the described reset of transmitting in data storage area that resets is 1 ~ 65535 byte, if then perform S33, then performs S5 if not;
S33, judge whether the end mark that data are transmitted in the described reset of transmitting in data storage area that resets is 0xADADADAD, if then perform S4, then performs S5 if not.
Positive progressive effect of the present invention is: by use SRAM replace FLASH or EEPROM before reset by reset transmit data write SRAM again start time read mode, shorten reset time, and reduce cost.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the repositioning method of the gsm module of present pre-ferred embodiments.
Embodiment
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention among described scope of embodiments.
Fig. 1 is the process flow diagram of the repositioning method of the gsm module of the present embodiment, as shown in Figure 1, in the gsm module that the present embodiment relates to, SRAM(is not shown) in be provided with one and transmit data storage area (not shown) for storing the reset of transmitting data that resets, and the repositioning method of gsm module includes following steps:
Step 1, gsm module receive a reset instruction;
Step 2, gsm module store some resets and transmit data to SRAM;
Step 21, reset transmit that the opening flag of data is 0xDADADADA, data length is 1 ~ 65535 byte, end mark is 0xADADADAD and are stored to reset and transmit data storage area;
Step 3, restart gsm module, initialization SRAM the data removed in the whole subregions in SRAM except the transmission data storage area that resets.
Whether the opening flag that step 31, the reset of transmitting in data storage area that judges to reset transmit data is 0xDADADADA, if then perform step 32, then performs step 5 if not;
Whether the data length that step 32, the reset of transmitting in data storage area that judges to reset transmit data is 1 ~ 65535 byte, if then perform step 33, then performs step 5 if not;
Whether the end mark that step 33, the reset of transmitting in data storage area that judges to reset transmit data is 0xADADADAD, if then perform step 4, then performs step 5 if not.
Step 4, gsm module read the reset stored in SRAM and transmit data;
Step 5, operation gsm module.
Wherein, dividing resets transmits data storage area, is embodied in: by the afterbody of SRAM, and namely the 0xADADADAD of 4 bytes of the end address of SRAM is defined as to reset and transmits the end mark of data; Reserving to transmit in reset to leave before data while 4 bytes deposit the 0xDADADADA as opening flag, using the end address of 0xDADADADA as storage areas such as RW/ZI in SRAM; Reserve 4 bytes, 1 ~ 65535 byte deposited as data length again
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make numerous variations to these embodiments, but these change and amendment all falls into protection scope of the present invention.

Claims (5)

1. a repositioning method for gsm module, is characterized in that, includes following steps:
S1, described gsm module receive a reset instruction;
S2, described gsm module store some resets and transmit data to SRAM;
S3, restart described gsm module, SRAM described in initialization also removes all data in described SRAM except the described transmission data that reset;
S4, described gsm module read the described reset stored in described SRAM and transmit data;
S5, run described gsm module.
2. the repositioning method of gsm module as claimed in claim 1, is characterized in that, is provided with one and transmits data storage area for storing the described reset of transmitting data that resets in described SRAM;
Described S3 is: restart described gsm module, SRAM described in initialization the data removed in the whole subregions in described SRAM except the described transmission data storage area that resets.
3. the repositioning method of gsm module as claimed in claim 2, is characterized in that, also include after described S3:
Whether S31, the reset judged in described reset transmission data storage area are transmitted data and can be used, if then perform S4, then perform S5 if not.
4. the repositioning method of gsm module as claimed in claim 3, is characterized in that, also include between described S2 and described S3:
S21, record described reset and transmit the opening flag of data, data length, end mark be stored to described resets transmission data storage area;
Described S31 for: judge that whether the opening flag that data are transmitted in the described reset of transmitting in data storage area that resets consistent with recorded opening flag, if then perform S32, then perform S5 if not;
S32, judge that whether the data length that data are transmitted in the described reset of transmitting in data storage area that resets is consistent with recorded data length, if then perform S33, then perform S5 if not;
S33, judge that whether the end mark that data are transmitted in the described reset of transmitting in data storage area that resets is consistent with recorded end mark, if then perform S4, then perform S5 if not.
5. the repositioning method of gsm module as claimed in claim 4, it is characterized in that, described S21 is: the opening flag setting described reset transmission data is 0xDADADADA, data length is 1 ~ 65535 byte, end mark is 0xADADADAD and is stored to described reset to transmit data storage area;
Described S31 is: judge whether the opening flag that data are transmitted in the described reset of transmitting in data storage area that resets is 0xDADADADA, if then perform S32, then performs S5 if not;
S32, judge whether the data length that data are transmitted in the described reset of transmitting in data storage area that resets is 1 ~ 65535 byte, if then perform S33, then performs S5 if not;
S33, judge whether the end mark that data are transmitted in the described reset of transmitting in data storage area that resets is 0xADADADAD, if then perform S4, then performs S5 if not.
CN201310536269.7A 2013-11-01 2013-11-01 Resetting method of GSM (Global System of Mobile Communication) module Pending CN104615223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310536269.7A CN104615223A (en) 2013-11-01 2013-11-01 Resetting method of GSM (Global System of Mobile Communication) module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310536269.7A CN104615223A (en) 2013-11-01 2013-11-01 Resetting method of GSM (Global System of Mobile Communication) module

Publications (1)

Publication Number Publication Date
CN104615223A true CN104615223A (en) 2015-05-13

Family

ID=53149717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310536269.7A Pending CN104615223A (en) 2013-11-01 2013-11-01 Resetting method of GSM (Global System of Mobile Communication) module

Country Status (1)

Country Link
CN (1) CN104615223A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1170935A (en) * 1996-06-03 1998-01-21 三星电子株式会社 Intelligent volatile memory initalization
JP2000293408A (en) * 1999-04-08 2000-10-20 Meidensha Corp Reset counting process system for process system
US20040123085A1 (en) * 2002-12-19 2004-06-24 Kohei Oikawa Semiconductor device comprising transition detecting circuit and method of activating the same
CN1945555A (en) * 2006-11-01 2007-04-11 华为技术有限公司 Method and device for preventing internal storage data from losing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1170935A (en) * 1996-06-03 1998-01-21 三星电子株式会社 Intelligent volatile memory initalization
JP2000293408A (en) * 1999-04-08 2000-10-20 Meidensha Corp Reset counting process system for process system
US20040123085A1 (en) * 2002-12-19 2004-06-24 Kohei Oikawa Semiconductor device comprising transition detecting circuit and method of activating the same
CN1945555A (en) * 2006-11-01 2007-04-11 华为技术有限公司 Method and device for preventing internal storage data from losing

Similar Documents

Publication Publication Date Title
TWI467371B (en) Memory module and utilizing method thereof, computer program and computer readable medium
CN106708543B (en) OTA (over the air) upgrading method and device of operating system
CN103118198B (en) The firmware upgrade method of mobile terminal and system
WO2018145392A1 (en) Differential update method and device, terminal, storage medium, and processor
CN101952808A (en) Extended utilization area for a memory device
CN110704335A (en) Data reading and writing method and device based on asynchronous ring buffer
CN106170757B (en) A kind of date storage method and device
CN104765576B (en) A kind of date storage method and data storage device
CN103458004A (en) Internet of things-based device subscription information changing method and equipment
CN104461925A (en) Automatic correcting method and device for aligning storage device addresses
CN110333876A (en) A kind of data clearing method and control equipment
KR20170010810A (en) Method, device and user equipment for reading/writing data in nand flash
CN108572830A (en) Upgrade method, the system of a kind of embedded system and its bootstrap
CN105608013B (en) A kind of the storage card control chip and storage card of integrated MRAM
CN103019789B (en) A kind of sign software upgrade method, device and mobile terminal
CN102740279A (en) Wireless network access terminal and run method thereof
US9195582B2 (en) Data storing method and apparatus applied to flash memory storage device
CN106354718B (en) File management method and device of user identification module
CN107222341B (en) Method for updating radio frequency protocol parameters and electronic equipment
CN105094742B (en) A kind of method and apparatus for writing data
CN106293622A (en) A kind of self-healing over-the-air upgrade method of power-off and device
CN108228476B (en) Data acquisition method and device
CN104615223A (en) Resetting method of GSM (Global System of Mobile Communication) module
CN103116549B (en) Based on the flash memory storage method of maximum erasable number of times
CN101520736A (en) Method of dynamically cutting mirror image function modules of embedded equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150513