CN108334384A - 4G module management methods based on state machine - Google Patents

4G module management methods based on state machine Download PDF

Info

Publication number
CN108334384A
CN108334384A CN201810137145.4A CN201810137145A CN108334384A CN 108334384 A CN108334384 A CN 108334384A CN 201810137145 A CN201810137145 A CN 201810137145A CN 108334384 A CN108334384 A CN 108334384A
Authority
CN
China
Prior art keywords
module
states
state
state machine
tts
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
CN201810137145.4A
Other languages
Chinese (zh)
Other versions
CN108334384B (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.)
ZHENGZHOU TIANMAI TECHNOLOGY Co Ltd
Original Assignee
ZHENGZHOU TIANMAI 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 ZHENGZHOU TIANMAI TECHNOLOGY Co Ltd filed Critical ZHENGZHOU TIANMAI TECHNOLOGY Co Ltd
Priority to CN201810137145.4A priority Critical patent/CN108334384B/en
Publication of CN108334384A publication Critical patent/CN108334384A/en
Application granted granted Critical
Publication of CN108334384B publication Critical patent/CN108334384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4498Finite state machines
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a kind of, and the 4G module management methods based on state machine redesign the working condition of 4G modules, 4G modules are divided into normal operating conditions and init state in existing 4G module basis.Define the event that may occur under each state and the corresponding processing action of the event.And module management relative program is instructed to design with this state machine.Present invention management module in a manner of state machine, more conducively tutorial program design, and module status transition process is apparent.Reset module machines are distinguished soft reboot (softreset) and are restarted (hardreset) firmly.Soft reboot module speed is fast, can solve most of software issue.Restarting mode firmly can power off and re-power to module, can repair the indeterminable problem of soft reboot.Define " CALL, TTS " working condition.Under this state, it is not responding to unnecessary configuration and inquiry instruction, phone is avoided surprisingly to hang up, TTS reports abnormal.

Description

4G module management methods based on state machine
Technical field:
The invention belongs to computer modularized administrative skill fields, and in particular to a kind of module management sides 4G based on state machine Method.
Background technology:
In the design of early stage, module status definition is roughly classified into INIT_DO(No initializtion), INIT_DOING(It is initial Change), INIT_DONE(Initialization is completed), INIT_UPDATE(Configuration update),INIT_RESET(Restart)Five states.It deposits In following disadvantage:
1. without distinguishing the mode of reset modules, reset management is not fine enough.Reset modules can be divided into actual use Soft reboot (softreset) and restart (hardreset) firmly.Soft reboot module speed is fast, can solve most of software issue. Restarting mode firmly can power off and re-power to module, can repair the indeterminable problem of soft reboot.
2. after the completion of module initialization, not defining " CALL, TTS " working condition.To module under INIT_DONE states Part operation or part AT instruction phone can be caused surprisingly to hang up, TTS report it is abnormal.
3.INIT_DO, INIT_UPDATE state are not necessarily to.Under INIT_DO states, module is to event without response. INIT_UPDATE states are to configure to design for update module, are also unnecessary in actual use.
Invention content:
For existing defect and problem under each state during current modularization management, the present invention provides a kind of based on state machine 4G module management methods.
Scheme is used by the present invention solves its technical problem:A kind of 4G module management methods based on state machine, In existing 4G module basis, a state machine is devised(Finite State Machine), and 4G is managed with this state machine The work of module, the state machine redesign the working condition of 4g modules, define under each state the event that may occur and The corresponding processing action of the event.And module management relative program is instructed to design with this state machine;Again module in design Working condition has:Initing states, Normal states, Call/TTS states, SoftRest states and HardReset states;
Call/tts particular job states are divided out from normal operating conditions again, unnecessary module is not handled under this state and matches It sets and inquiry instruction.
Under module normal operating conditions, if configuration change or module itself are abnormal, need to jump to Initing states, And increase SoftReset states(Soft reboot state)With HardReset states(Hard rebooting status).
The Initing states:Meet module on hardware and normally start requirement, software upper module is not yet completed to initialize. Management program can only execute R or I under this state(Recognize or Init)Action.If the action runs succeeded, module Enter Normal states.If the action executes failure, module jumps to HardReset states.
The Normal states:Module can work normally, and the action that module management program can execute under this state has Module is arranged(Search net pattern, volume setting, APN settings etc.).Status inquiry(Network registry state, sim card informations etc.).It connects It makes a phone call or TTS is reported(The action lower module will jump to CALL/TTS working conditions).
If the work of 4G modules is abnormal or necessary configuration updates, make module jump to SoftReset states or HardReset states.
The Call/tts states:Under the state, the unnecessary operations to module should be stopped(Prevent phone from being hung extremely It is disconnected).And follow-up call or TTS business progresses.When service ending, Normal states are immediately hopped to.
The SoftReset states:Module repeatedly returns to ERROR, registration abnormity, and the events such as configuration update can lead to mould Block jumps to SoftReset states.Under the state, module is removed error and is counted, and is jumped to after executing soft reboot operation Initing states.
The HardReset states:When fatal error or soft reboot cannot solve the problems, such as, module can jump to HardReset states.Under the state, module is removed error and is counted, and hard reboot operation is executed(To module power down and power on)After jump Go to initing states.
Beneficial effects of the present invention:
1. the management module in a manner of state machine, more conducively tutorial program design, module status transition process is apparent.
2. reset module machines are distinguished soft reboot (softreset) and are restarted (hardreset) firmly.Soft reboot module Speed is fast, can solve most of software issue.Restarting mode firmly can power off and re-power to module, can repair soft reboot Indeterminable problem.
3. defining " CALL, TTS " working condition.Under this state, it is not responding to unnecessary configuration and inquiry instruction, is avoided Phone is surprisingly hung up, and TTS reports abnormal.
Description of the drawings:
Fig. 1 is state machine work and state transition design sketch in the present invention.
Specific implementation mode:
Present invention will be further explained below with reference to the attached drawings and examples.
Devise a state machine(Finite State Machine), and with this state machine manage 4G modules work, The state machine redesigns the working condition of 4g modules, defines the event that may occur under each state and the event is corresponding Processing acts.And module management relative program is instructed to design with this state machine.Again there is the working condition of module in design: Initing states, Normal states, Call/TTS states, SoftRest states and HardReset states;Initing states are negative Blame the initialization of module;Normal states are the normal operating conditions of module;CALL/TTS states are particular job shapes of module State does not handle unnecessary module configuration and inquiry instruction, is interrupted accidentally to avoid phone or tts broadcastings under this state. SoftReset states are responsible for the soft reboot of module, and HardReset states are responsible for restarting firmly for module.4G modules can be simply It is divided into normal operating conditions and init state.In view of make a phone call or TTS playing process in, part operation can cause phone different It often hangs up, so dividing out CALL/TTS particular job states from normal operating conditions, does not handle under this state unnecessary Module configures and inquiry instruction.Under module normal operating conditions, configuration change or module itself are abnormal, need to jump to INITING states increase soft reboot state and hard rebooting status.
As shown in Figure 1:
(1)Initing states (are initializing):Meet module on hardware and normally start requirement, software upper module is not yet completed Initialization.Management program can only execute R or I under this state(Recognize or Init)Action.The action runs succeeded, mould Block enters Normal states.The action executes failure, and module jumps to HardReset states.
(2)Normal states:Module can work normally, and the action that module management program can execute under this state has mould Block is arranged(Search net pattern, volume setting, APN settings etc.);Status inquiry(Network registry state, sim card informations etc.);It takes Phone or TTS are reported(The action lower module will jump to CALL/TTS working conditions).Module work is abnormal or necessary matches Update is set, module can be made to jump to SoftReset states or HardReset states.
(3)Call, tts state:Under the state, the unnecessary operations to module should be stopped(Prevent phone from being hung extremely It is disconnected).And follow-up call or TTS business progresses.When service ending, normal states are immediately hopped to.
(4)SoftReset states:Module repeatedly returns to ERROR, registration abnormity, and the events such as configuration update can lead to module Jump to SoftReset states.Under the state, module is removed error and is counted, and initing is jumped to after executing soft reboot operation State.
(5)HardReset states:When fatal error or soft reboot cannot solve the problems, such as, module can jump to HardReset State.Under the state, module is removed error and is counted, and hard reboot operation is executed(To module power down and power on)After jump to Initing states.

Claims (5)

1. a kind of 4G module management methods based on state machine, which is characterized in that devise a state machine(Finite State Machine), and with the work of this state machine management 4G modules, which redesigns the working condition of 4g modules, definition is every The corresponding processing action of event and the event that may occur under a state;
And module management relative program is instructed to design with this state machine;Again there is the working condition of module in design:Initing State, Normal states, Call/TTS states, SoftRest states and HardReset states;
Under module normal operating conditions, if configuration change or module itself are abnormal, need to jump to Initing states, and increase Add SoftReset states and HardReset states;
The Initing states:Meet module on hardware and normally start requirement, software upper module is not yet completed to initialize;This shape Management program can only execute R or I action under state;If the action runs succeeded, module enters Normal states;If should Action executes failure, then module jumps to HardReset states;
The Normal states:Module can work normally, and the action that module management program can execute under this state has module It setting, status inquiry and takes phone or TTS and reports;
If the work of 4G modules is abnormal or necessary configuration updates, make module jump to SoftReset states or HardReset states;
The SoftReset states:Module repeatedly returns to ERROR, registration abnormity, and the events such as configuration update can cause module to be jumped Go to SoftReset states;Under the state, module is removed error and is counted, and initing shapes are jumped to after executing soft reboot operation State;
The HardReset states:When fatal error or soft reboot cannot solve the problems, such as, module can jump to HardReset shapes State;Under the state, module is removed error and is counted, and initing states are jumped to after executing hard reboot operation.
2. the 4G module management methods according to claim 1 based on state machine, which is characterized in that from normal operating conditions In divide out Call/tts particular job states, do not handle the configuration of unnecessary module and inquiry instruction under this state;It is described Call/tts states:Under the state, the unnecessary operations to module should be stopped;And follow-up call or TTS business progresses;Work as business At the end of, immediately hop to Normal states.
3. the 4G module management methods according to claim 1 based on state machine, which is characterized in that the module setting packet Include net pattern of searching, volume setting and APN settings.
4. the 4G module management methods according to claim 1 based on state machine, which is characterized in that the status inquiry packet Include network registry state and sim card informations.
5. the 4G module management methods according to claim 1 based on state machine, which is characterized in that it is described take phone or When TTS is reported, which will jump to CALL/TTS working conditions.
CN201810137145.4A 2018-02-10 2018-02-10 4G module management method based on state machine Active CN108334384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810137145.4A CN108334384B (en) 2018-02-10 2018-02-10 4G module management method based on state machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810137145.4A CN108334384B (en) 2018-02-10 2018-02-10 4G module management method based on state machine

Publications (2)

Publication Number Publication Date
CN108334384A true CN108334384A (en) 2018-07-27
CN108334384B CN108334384B (en) 2023-07-21

Family

ID=62928733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810137145.4A Active CN108334384B (en) 2018-02-10 2018-02-10 4G module management method based on state machine

Country Status (1)

Country Link
CN (1) CN108334384B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213177A (en) * 2019-06-06 2019-09-06 上海华测导航技术股份有限公司 Timesharing sending method based on 4g module
CN112636461A (en) * 2020-11-09 2021-04-09 国家电网有限公司 Remote restart method and system for fault recorder

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106461A (en) * 2007-06-20 2008-01-16 中兴通讯股份有限公司 Control method for status management computer of communication device line clamp
CN101311902A (en) * 2007-05-22 2008-11-26 上海宇梦通信科技有限公司 State machine system associating with multi-instance and its realization method
CN102970442A (en) * 2012-12-06 2013-03-13 江苏诚迈科技有限公司 Method for handling incoming calls on smart touch screen mobile phone
CN104519565A (en) * 2013-10-08 2015-04-15 北京旅信顺捷软件科技有限公司 Thin-film SIM (subscriber identity module) card and SIM card switching method based on thin-film SIM card
CN105578505A (en) * 2015-12-14 2016-05-11 美的集团股份有限公司 State management method of wireless communication module and wireless communication module
US9569255B1 (en) * 2015-03-25 2017-02-14 Amazon Technologies, Inc. Persistent state machine
CN106534260A (en) * 2016-10-09 2017-03-22 电子科技大学 Three-layer state machine-based internet-of-things equipment communication method
CN206272856U (en) * 2016-12-22 2017-06-20 济南深发信息技术有限公司 4G communication module real-time detection activation systems
CN107171916A (en) * 2017-04-07 2017-09-15 浙江工业大学 The special 4G intelligent wireless bridge of industry measurement pump remote monitoring

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311902A (en) * 2007-05-22 2008-11-26 上海宇梦通信科技有限公司 State machine system associating with multi-instance and its realization method
CN101106461A (en) * 2007-06-20 2008-01-16 中兴通讯股份有限公司 Control method for status management computer of communication device line clamp
CN102970442A (en) * 2012-12-06 2013-03-13 江苏诚迈科技有限公司 Method for handling incoming calls on smart touch screen mobile phone
CN104519565A (en) * 2013-10-08 2015-04-15 北京旅信顺捷软件科技有限公司 Thin-film SIM (subscriber identity module) card and SIM card switching method based on thin-film SIM card
US9569255B1 (en) * 2015-03-25 2017-02-14 Amazon Technologies, Inc. Persistent state machine
CN105578505A (en) * 2015-12-14 2016-05-11 美的集团股份有限公司 State management method of wireless communication module and wireless communication module
CN106534260A (en) * 2016-10-09 2017-03-22 电子科技大学 Three-layer state machine-based internet-of-things equipment communication method
CN206272856U (en) * 2016-12-22 2017-06-20 济南深发信息技术有限公司 4G communication module real-time detection activation systems
CN107171916A (en) * 2017-04-07 2017-09-15 浙江工业大学 The special 4G intelligent wireless bridge of industry measurement pump remote monitoring

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WENSHAN FU等: "The Hidden Fine-Grained State Machine in Cellular Network for Simultaneous Voice and Data Services", 2015 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM), pages 1 - 6 *
高启等: "基于4G网络的智能家居系统的设计与实现", 信息通信, no. 03, pages 138 - 140 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213177A (en) * 2019-06-06 2019-09-06 上海华测导航技术股份有限公司 Timesharing sending method based on 4g module
CN110213177B (en) * 2019-06-06 2022-12-20 上海华测导航技术股份有限公司 Time-sharing sending method based on 4g module
CN112636461A (en) * 2020-11-09 2021-04-09 国家电网有限公司 Remote restart method and system for fault recorder
CN112636461B (en) * 2020-11-09 2022-08-02 国家电网有限公司 Remote restart method and system for fault recorder

Also Published As

Publication number Publication date
CN108334384B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN104899055B (en) A kind of ME more new systems and its update method based on BIOS controls
US10938653B2 (en) System and method of updating a network
CN101996106B (en) Method for monitoring software running state
CN104320475B (en) A kind of device updating method and device
US7934213B2 (en) Device driver rollback
CN108334384A (en) 4G module management methods based on state machine
CN105159718B (en) Firmware upgrade method and device
CN103327038B (en) The method of the batch upgrade network equipment and device
CN101950254B (en) Software updating method and system thereof
CN106406955A (en) A method and a device for upgrades of a bootloader program in an RSU apparatus
CN110618864A (en) Interrupt task recovery method and device
CN104391754B (en) A kind of processing method and processing device of task abnormity
CN110032399A (en) A kind of TPM initial method and relevant apparatus
CN106502741A (en) A kind of realization method and system of USB upgradings
CN108319492A (en) Reset the method, apparatus and system of physical machine
CN109032635A (en) Method for upgrading software, device and the network equipment
CN105912414A (en) Method and system for server management
CN110413310A (en) Programme upgrade method and terminal device
CN106445610A (en) Application processing method and device
CN107341024A (en) Method for upgrading system and system upgrade device
CN105975322A (en) Device and method for program update and microcontroller
CN101212340B (en) Method for restarting control nodes in automatic switching optical network
US10019272B1 (en) Virtual appliance manager
CN106919423B (en) Firmware upgrading method and device
CN102195811B (en) Method and device for upgrading network element component software as well as master control board

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