CN101626431A - Processing method and processing system capable of adapting to communication mode - Google Patents

Processing method and processing system capable of adapting to communication mode Download PDF

Info

Publication number
CN101626431A
CN101626431A CN200910305553A CN200910305553A CN101626431A CN 101626431 A CN101626431 A CN 101626431A CN 200910305553 A CN200910305553 A CN 200910305553A CN 200910305553 A CN200910305553 A CN 200910305553A CN 101626431 A CN101626431 A CN 101626431A
Authority
CN
China
Prior art keywords
module
wireless module
instruction
wireless
type
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
CN200910305553A
Other languages
Chinese (zh)
Other versions
CN101626431B (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.)
Xiamen Stelcom Information & Technology Co Ltd
Original Assignee
Xiamen Stelcom Information & 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 Xiamen Stelcom Information & Technology Co Ltd filed Critical Xiamen Stelcom Information & Technology Co Ltd
Priority to CN2009103055537A priority Critical patent/CN101626431B/en
Publication of CN101626431A publication Critical patent/CN101626431A/en
Application granted granted Critical
Publication of CN101626431B publication Critical patent/CN101626431B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a processing method and a processing system capable of adapting to a communication mode. The processing method comprises the following steps: S10: a terminal is started; S20: a control module judges the type of a wireless module and stores the type of the wireless module into a database, and the wireless module is started; S30: an application layer requests the wireless module to carry out service operation; S40: the control module reads the type of the wireless module from the database, invokes an operation function corresponding to the type of the wireless module and generates an AT instruction according to an input parameter; S50: the control module sends the AT instruction to the wireless module; S60: the wireless module receives the AT instruction, carries out the corresponding operation of the AT instruction and transmits the operation result back to the control module; S70: the control module receives and analyzes the operation result and sends the analyzed result back to the application layer; and S80: the application layer carries out the corresponding service operation according to the analyzed result.

Description

A kind of processing method and system that can adapt to communication mode
Affiliated technical field
The present invention relates to a kind of processing method and system that can adapt to communication mode.
Background technology
During equipment developments such as present terminal, switch, in the particularly present upgrade and replacement process from 2G to 3G, all can run into the problem that wireless module is replaced in requirement based on wireless module.When replacing wireless module, all need fabric swatch again, and need write the program of the corresponding processing AT instruction of a cover, it is not only wasted time and energy, and autgmentability is very poor again, can't compatible multiple wireless module, and multiple wireless module can't coexist, and can't freely replace.
Summary of the invention
The invention provides a kind of processing method and system that can adapt to communication mode, it has overcome background technology existing multiple wireless module can't be compatible, the deficiency of coexistence.
One of the technical solution adopted for the present invention to solve the technical problems is:
A kind of processing method that can adapt to communication mode, it comprises:
Step 10, starting terminal;
Step 20, control module is judged the wireless module type, and this wireless module type is preserved into database, starts wireless module;
Step 30, the application-level request wireless module is carried out business operation;
Step 40, control module read the wireless module type from database, call the corresponding handling function of this wireless module type, and generate the AT instruction according to the parameter of input;
Step 50, control module sends to wireless module with this AT instruction;
Step 60, wireless module receive this AT instruction, carry out this AT instruction corresponding operating, and operating result is returned to control module;
Step 70, control module receive this operating result, resolve this operating result, and analysis result is sent to application layer;
Step 80, application layer is carried out the corresponding service operation according to analysis result.
Among one preferred embodiment, this control module comprises instruction distribution module and command process module;
This step 40, it comprises:
Step 41, instruction distribution module call instruction processing module;
Step 42, call instruction processing module read this wireless module type from database, and call corresponding handling function, and generate the AT instruction according to the parameter of input;
Step 43, command process module is given the instruction distribution module with this AT instruction passback.
Among one preferred embodiment, this step 70, it comprises:
Step 71, the instruction distribution module receives this operating result;
Step 72, the instruction distribution module sends this operating result to command process module;
Step 73, command process module read this wireless module type from database, and call corresponding analytical function, resolve this operating result according to analytical function, to generate analysis result;
Step 74, command process module returns analysis result to the instruction distribution module;
Step 75, the instruction distribution module sends to application layer with analysis result.
Among one preferred embodiment, this step 20, it comprises:
Step 21, control module be to wireless module acquisition request wireless module production firm information, and judged whether return value, if having then execution in step 23, otherwise execution in step 22;
Step 22, control module be to wireless module acquisition request wireless module version information, and judged whether return value, if having then execution in step 23, otherwise execution in step 25;
Step 23, control module is analyzed manufacturer's information, the manufacturer's information of record wireless module correspondence, the type of record wireless module correspondence;
Step 24, wireless module starts, and this wireless module type is preserved into database, and execution in step 30;
Step 25 withdraws from processing method.
Two of the technical solution adopted for the present invention to solve the technical problems is:
A kind of treatment system that can adapt to communication mode, it comprises an application layer, at least two wireless modules, a control module and a database, this control module signal connects application layer and wireless module, and this control module comprises an instruction distribution module and a command process module;
This instructs distribution module, and it is used to judge the wireless module type, and the wireless module type after will judging is preserved into database;
This command process module, it can read the wireless module type from database, and call the handling function and the analytical function of this wireless module type relatively, and can generate the AT instruction according to the parameter of handling function and input, can be according to analytical function parse operation result;
This wireless module, it receives this AT instruction, carries out this AT instruction corresponding operating, and operating result is returned to control module.
Among one preferred embodiment, this instructs distribution module, and it comprises:
One judge module, it is used to judge the wireless module type; And
One transport module, it be used for and application layer between realize transfer of data, be used for and wireless module between realize transfer of data, be used for realizing transfer of data between the and instruction processing module.
Among one preferred embodiment, this command process module, it comprises:
One transport module, it is used for realizing transfer of data between the and instruction distribution module;
One calling module, it is used for reading the wireless module type and calling the handling function and the analytical function of this wireless module type according to the wireless module type from database;
One AT instructs generation module, and it can generate the AT instruction according to the parameter of handling function and input; And
One parsing module, it can be according to analytical function parse operation result, to generate analysis result.
The technical program is compared with background technology: owing to can dynamically judge the wireless module type, call this wireless module of AT instruction management of this wireless module type correspondence again according to this judged result, therefore have following advantage: 1, wireless module independent separate from total module can be come out; The communication mode that 2, can adapt to various wireless modules; 3, can realize the coexistence of the wireless module (comprising 2G and 3G) of a plurality of various support standard A T instructions, those wireless modules can be identical, also can be different, can be used for the equipment that terminal, switch etc. use wireless module; 4, can accomplish the perfect compatible of various wireless modules easily; 5, be easy to expansion; 6, can improve flexibility, conveniently carry out the replacement of wireless module; 7, can manage wireless module by the design improvement of hardware and the management software of exploitation; 8, can stablize the various functions of using wireless module; All judge the wireless module type earlier during each the start, and the wireless module type is preserved into database, just can directly in database, read when that next application layer is called, avoid each operation all needing to judge earlier.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is the flow chart of the processing method of a preferred embodiment of the present invention.
Embodiment
A kind of processing method that can adapt to communication mode, this method have been used at least two kinds of wireless modules, instruction distribution module, a command process module and an application layer.Wherein, those kinds wireless module comprises 2G and 3G wireless module at least, and this wireless module independent separate from system comes out to make a plate, and dissimilar wireless modules is not necessarily identical for the AT instruction of same operation, operating process is disunity also, and the handling function of respective calls is also different.
A kind of processing method that can adapt to communication mode is please referred to Fig. 1, and it comprises:
Step 10, starting terminal;
Step 20, control module is judged the wireless module type, and this wireless module type is preserved into database, starts wireless module;
Step 30, the application-level request wireless module is carried out business operation, and sends the business operation request to the instruction distribution module, and this business operation for example sends for note, calls registered network etc.;
Step 41, instruction distribution module call instruction processing module;
Step 42, call instruction processing module read this wireless module type from database, and call corresponding handling function, and generate the AT instruction according to the parameter of input; This AT instruction all is to be made of " instruction+parameter ", and set form is arranged, and among the present embodiment, this command process module is that every specific instructions of function all makes up to generate the AT instruction according to input parameter; This parameter will be set according to the requirement of AT instruction, and for example sending note just needs parameters such as recipient's telephone number, transmission content, for example calls the parameter that need be dialed phone number; This instruction is exactly a character string, and adding earlier instruction (such as " ATD " expression dialing, and then increases parameter (such as " 10086 ") according to real needs, be combined into a character string, for example: ATD10086;
Step 43, command process module is given the instruction distribution module with this AT instruction passback;
Step 50, the instruction distribution module sends to wireless module with this AT instruction;
Step 60, wireless module receive this AT instruction, carry out this AT instruction corresponding operating, and operating result is returned to the instruction distribution module; The operating result of this passback is one group of character string;
Step 71, the instruction distribution module receives this operating result;
Step 72, the instruction distribution module sends this operating result to command process module;
Step 73, command process module read this wireless module type from database, and call corresponding analytical function, resolve this operating result according to analytical function, to generate analysis result; This analysis result is that application layer can identification mode, is convenient to application layer and judges, is convenient to application layer and carries out corresponding service processing; Be the form that the character string as a result that will return is analysed into a plurality of parameters, application layer is just judged, and is handled;
Step 74, command process module returns analysis result to the instruction distribution module;
Step 75, the instruction distribution module sends to application layer with analysis result;
Step 80, application layer is carried out the corresponding service operation according to analysis result.
In one preferred embodiment, this step 20, it comprises:
Step 21, control module be to wireless module acquisition request wireless module production firm information, and judged whether return value, if having then execution in step 23, otherwise execution in step 22; This request can be adopted AT instruction " AT+CGMI ";
Step 22, control module be to wireless module acquisition request wireless module version information, and judged whether return value, if having then execution in step 23, otherwise execution in step 25; This request can be adopted AT instruction " AT+CGMR ", and wherein, the manufacturer's information that has is hidden in the version information;
Step 23, control module is analyzed manufacturer's information, the manufacturer's information of record wireless module correspondence, the type of record wireless module correspondence;
Step 24, wireless module starts, and this wireless module type is preserved into database, waits for execution in step 30 again;
Step 25 writes down this wireless module the unknown, and withdraws from processing method.
A kind of treatment system that can adapt to communication mode, it comprises: application layer, wireless module, instruction distribution module, command process module and a database.Wherein, the wireless module independent separate comes out to make separately a plate, helps improving the replaceability of system;
This wireless module, it can receive the AT instruction, carries out AT instruction corresponding operating, and operating result is returned to the instruction distribution module.
This instructs distribution module, it be used to judge the wireless module type and will judge after the wireless module type preserve into database.This instructs distribution module, and it comprises: a judge module and a transport module.This judge module, it is used to judge the wireless module type; This transport module, it be used for and application layer between realize transfer of data, be used for and wireless module between realize transfer of data, be used for realizing transfer of data between the and instruction processing module.
This command process module, it can read the wireless module type from database, and call the handling function and the analytical function of this wireless module type relatively, and can generate the AT instruction according to the parameter of handling function and input, can be according to analytical function parse operation result.It comprises: the corresponding handling function and the analytical function of a transport module, a calling module, an AT instruction generation module, a parsing module and each wireless module type.This transport module, it is used for realizing transfer of data between the and instruction distribution module; This calling module, it is used for reading the wireless module type and calling the handling function and the analytical function of this wireless module type according to the wireless module type from database; This AT instruction generation module, it can generate the AT instruction according to the parameter of handling function and input; This parsing module, it can be according to analytical function parse operation result, to generate analysis result.
The above, only for preferred embodiment of the present invention, so can not limit scope of the invention process with this, i.e. the equivalence of doing according to the present patent application claim and description changes and modification, all should still belong in the scope that patent of the present invention contains.

Claims (7)

1. processing method that can adapt to communication mode, it is characterized in that: it comprises:
Step 10, starting terminal;
Step 20, control module is judged the wireless module type, and this wireless module type is preserved into database, starts wireless module;
Step 30, the application-level request wireless module is carried out business operation;
Step 40, control module read the wireless module type from database, call the corresponding handling function of this wireless module type, and generate the AT instruction according to the parameter of input;
Step 50, control module sends to wireless module with this AT instruction;
Step 60, wireless module receive this AT instruction, carry out this AT instruction corresponding operating, and operating result is returned to control module;
Step 70, control module receive this operating result, resolve this operating result, and analysis result is sent to application layer;
Step 80, application layer is carried out the corresponding service operation according to analysis result.
2. a kind of processing method that can adapt to communication mode according to claim 1 is characterized in that: this control module comprises instruction distribution module and command process module;
This step 40, it comprises:
Step 41, instruction distribution module call instruction processing module;
Step 42, call instruction processing module read this wireless module type from database, and call corresponding handling function, and generate the AT instruction according to the parameter of input;
Step 43, command process module is given the instruction distribution module with this AT instruction passback.
3. a kind of processing method that can adapt to communication mode according to claim 2 is characterized in that: this step 70, and it comprises:
Step 71, the instruction distribution module receives this operating result;
Step 72, the instruction distribution module sends this operating result to command process module;
Step 73, command process module read this wireless module type from database, and call corresponding analytical function, resolve this operating result according to analytical function, to generate analysis result;
Step 74, command process module returns analysis result to the instruction distribution module;
Step 75, the instruction distribution module sends to application layer with analysis result.
4. a kind of processing method that can adapt to communication mode according to claim 2 is characterized in that: this step 20, and it comprises:
Step 21, control module be to wireless module acquisition request wireless module production firm information, and judged whether return value, if having then execution in step 23, otherwise execution in step 22;
Step 22, control module be to wireless module acquisition request wireless module version information, and judged whether return value, if having then execution in step 23, otherwise execution in step 25;
Step 23, control module is analyzed manufacturer's information, the manufacturer's information of record wireless module correspondence, the type of record wireless module correspondence;
Step 24, wireless module starts, and this wireless module type is preserved into database, and execution in step 30;
Step 25 withdraws from processing method.
5. treatment system that can adapt to communication mode, it is characterized in that: it comprises an application layer, at least two wireless modules, a control module and a database, this control module signal connects application layer and wireless module, and this control module comprises an instruction distribution module and a command process module;
This instructs distribution module, and it is used to judge the wireless module type, and the wireless module type after will judging is preserved into database;
This command process module, it can read the wireless module type from database, and call the handling function and the analytical function of this wireless module type relatively, and can generate the AT instruction according to the parameter of handling function and input, can be according to analytical function parse operation result;
This wireless module, it receives this AT instruction, carries out this AT instruction corresponding operating, and operating result is returned to control module.
6. a kind of treatment system that can adapt to communication mode according to claim 5 is characterized in that: this instruction distribution module, and it comprises:
One judge module, it is used to judge the wireless module type; And
One transport module, it be used for and application layer between realize transfer of data, be used for and wireless module between realize transfer of data, be used for realizing transfer of data between the and instruction processing module.
7. a kind of treatment system that can adapt to communication mode according to claim 6 is characterized in that: this command process module, and it comprises:
One transport module, it is used for realizing transfer of data between the and instruction distribution module;
One calling module, it is used for reading the wireless module type and calling the handling function and the analytical function of this wireless module type according to the wireless module type from database;
One AT instructs generation module, and it can generate the AT instruction according to the parameter of handling function and input; And
One parsing module, it can be according to analytical function parse operation result, to generate analysis result.
CN2009103055537A 2009-08-12 2009-08-12 Processing method and processing system capable of adapting to communication mode Expired - Fee Related CN101626431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009103055537A CN101626431B (en) 2009-08-12 2009-08-12 Processing method and processing system capable of adapting to communication mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009103055537A CN101626431B (en) 2009-08-12 2009-08-12 Processing method and processing system capable of adapting to communication mode

Publications (2)

Publication Number Publication Date
CN101626431A true CN101626431A (en) 2010-01-13
CN101626431B CN101626431B (en) 2012-05-23

Family

ID=41522105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009103055537A Expired - Fee Related CN101626431B (en) 2009-08-12 2009-08-12 Processing method and processing system capable of adapting to communication mode

Country Status (1)

Country Link
CN (1) CN101626431B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677834A (en) * 2013-12-16 2014-03-26 北京经纬恒润科技有限公司 Signal operating and processing method and device
CN104765662A (en) * 2013-12-31 2015-07-08 深圳市伊爱高新技术开发有限公司 Self-adaptive firmware program and system
CN107360295A (en) * 2017-07-20 2017-11-17 京信通信系统(中国)有限公司 A kind of test main frame and method
CN114070721A (en) * 2021-11-16 2022-02-18 中国联合网络通信集团有限公司 Method for determining module information, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326424C (en) * 2005-09-19 2007-07-11 北京天碁科技有限公司 Quick selecting network registrated double mode or multiple mode terminal and method
CN101155184A (en) * 2006-09-25 2008-04-02 中兴通讯股份有限公司 Method for implementing AT command commutation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677834A (en) * 2013-12-16 2014-03-26 北京经纬恒润科技有限公司 Signal operating and processing method and device
CN104765662A (en) * 2013-12-31 2015-07-08 深圳市伊爱高新技术开发有限公司 Self-adaptive firmware program and system
CN107360295A (en) * 2017-07-20 2017-11-17 京信通信系统(中国)有限公司 A kind of test main frame and method
CN114070721A (en) * 2021-11-16 2022-02-18 中国联合网络通信集团有限公司 Method for determining module information, terminal and storage medium

Also Published As

Publication number Publication date
CN101626431B (en) 2012-05-23

Similar Documents

Publication Publication Date Title
CN110248358B (en) eSIM management method and system based on Internet of things
CN100461926C (en) System and method for testing speech service
AU738714B2 (en) Adapter of subscriber identity module to a mobile radiocommunications terminal
EP2466928A1 (en) Method, system and signaling gateway for enabling message intercommunication between global system for mobile communications (gsm) and code division multiple access (cdma)
CN101827302A (en) Multi-service unified processing method and unified service platform
CN103281797A (en) Mobile terminal and method of transmitting business data by same
CN104022922A (en) Mobile terminal, heartbeat forwarding server and heartbeat information transmitting method and system
CN101626431B (en) Processing method and processing system capable of adapting to communication mode
CN111901793B (en) UICC application setting information management method and system, UICC smart card and terminal
CN101523864B (en) System and method for accessing features offered by an application server
CN101083819A (en) Method and apparatus for entering into application by one key
CN101339508A (en) Java2 miniature edition application operation method and device
CN104301352B (en) The adaptation method and device of double-terminal
CN102014433B (en) Multi-standard mobile access integrated gateway device
CN111274325A (en) Platform automation test method and system
CN100568178C (en) A kind of control adding method
CN103888923A (en) Call proceeding method, system and device applied to virtual private mobile network
CN102801877B (en) Interactive voice response (IVR)-free virtual switchboard service method and system
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN105208537A (en) Call transfer state query method and system
CN101715183A (en) Network access method and device
CN101426054A (en) Method for sending short message by mobile terminal and mobile terminal therefor
CN101247586A (en) Method for updating double-module mobile phone network binding number
CN103841508A (en) User information obtaining method and information aggregation platform
CN101409934B (en) Method and apparatus for processing signaling stream between application platform and protocol stack

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120523

Termination date: 20130812