CN101299850B - Terminal number-baking method based on AT command - Google Patents

Terminal number-baking method based on AT command Download PDF

Info

Publication number
CN101299850B
CN101299850B CN2008100982993A CN200810098299A CN101299850B CN 101299850 B CN101299850 B CN 101299850B CN 2008100982993 A CN2008100982993 A CN 2008100982993A CN 200810098299 A CN200810098299 A CN 200810098299A CN 101299850 B CN101299850 B CN 101299850B
Authority
CN
China
Prior art keywords
order
terminal
write
read
parameter
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.)
Expired - Fee Related
Application number
CN2008100982993A
Other languages
Chinese (zh)
Other versions
CN101299850A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100982993A priority Critical patent/CN101299850B/en
Publication of CN101299850A publication Critical patent/CN101299850A/en
Application granted granted Critical
Publication of CN101299850B publication Critical patent/CN101299850B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A terminal burning method based on the AT command includes transmitting the novel AT command related with the burning by the burning device; resolving the content and the parameters of the AT command, if the resolved command and the parameters are correct, executing the AT command. The method of the invention is simple and practical, and saves the time and cost to maintain.

Description

Terminal number-baking method based on the AT order
Technical field
The present invention relates to moving communicating field, in particular, is a kind of terminal number-baking technology in the moving communicating field.
Background technology
At present the parameter of the ID at terminal has dual mode to write in the card (also be referred to as to burn number): a kind of is that relevant parameter is write in the card; Block like SIM (client identification module); PIM (personal information management), UIM (subscriber identification module) card etc., another kind of is exactly with the parameter mobile phone that writes direct.The method that the latter uses is to use special PC side software, and parameter is written in the terminal; Because the type at terminal is many, each Terminal Type needs a kind of special burning software, is difficult to management, has occurred single PC side software afterwards, and realize through disposing different dynamic link libraries at the terminal of every kind of model.
This method through dynamic link library is because common code and resource that the dynamic link library the inside comprises need great amount of time and cost to go to safeguard, the burden that has so just increased exploitation and used.
Summary of the invention
The technical problem that the present invention will solve provides a kind of terminal number-baking method based on the AT order, and is not only simple and practical, and saved time and the cost safeguarded.
In order to address the above problem, the invention provides a kind of terminal number-baking method based on the AT order, comprising: burning equipment sends to the terminal and burns number relevant newly-increased AT order; Resolve the content and the parameter of said AT order after receiving said AT order at said terminal, if order that parses and parameter are correct, said AT order is carried out at then said terminal.
Further, said method also can have following characteristics: said newly-increased AT order is the AT order relevant with network, userspersonal information's the AT order or the AT order of read-write password.
Further, said method also can have following characteristics: resolve the content of this AT order at said terminal, and the result of parsing is for writing terminal or inquiry terminal.
Further; Said method also can have following characteristics: after said AT order is received at said terminal, parse this AT order any in the newly-increased AT order, the content of said AT order is resolved again; If for writing the AT order at terminal; Judge whether parameter wherein is correct, if correct, this AT order is carried out at said terminal; If incorrect, then carry out fault processing, and to said burning equipment feedback error information.
Further, said method also can have following characteristics: when whether the said parameter of said terminal judges was correct, in the following content one or more are judged: the length of parameter, whether alphabet size was write, have forbidden character to occur.
Further, said method also can have following characteristics: said AT order is the AT order relevant with network, parses this AT order after the terminal receives and is the AT order relevant with network, and judge that this AT order writes or inquiry terminal:
If the AT order of the inquiry terminal that parses is directly carried out in this AT order of inquiry terminal, finish;
If write the AT order at terminal, need carry out parameter and judge that correct like parameter, said terminal writes network parameter, show simultaneously and finish the network parameter of supporting at present; If this AT order can't be resolved after parameter is judged, will carry out finishing after the fault processing.
Further, said method also can have following characteristics: said AT order is userspersonal information's AT order; Parse the AT order of this AT order after the terminal receives, and judge that this AT order writes terminal or inquiry terminal for the userspersonal information:
If this AT order, judges at first whether read and write flag bit accordingly read-write at the terminal in for writing the terminal and its parameter is correct, if read-write, this userspersonal information is write the terminal, end; If the read-write flag bit in the terminal is not read-write, then return miscue, flow process finishes;
When if this AT command context is inquiry terminal, judge whether corresponding read-write flag bit is read-write in the terminal, if read-write, demonstrates all userspersonal informations; Otherwise display part userspersonal information only.
Further; Said method also can have following characteristics: said userspersonal information's AT order can be all or part of personal user information of inquiry terminal; Said terminal judges goes out AT when order that this order is the userspersonal information of inquiry terminal; Whether the read-write flag bit of judging the userspersonal information in the terminal is read-write; Confirm that which userspersonal information can read, judge also that simultaneously this AT order inquires about all or certain customers' personal information, according to above-mentioned judged result to burnings equipment feedback can be read and needs are inquired about userspersonal information.
Further, said method also can have following characteristics: said AT order is the AT order of read-write password; After receiving, the terminal parses the AT order of this AT order for read-write password; As judge this AT order for writing the terminal and its parameter is correct, judge at first whether read and write flag bit accordingly read-write at the terminal in, if read-write; The personal identification number that then more is provided with in the new terminal finishes; If the read-write flag bit of judging in the terminal is read-write for not, the password that is provided with in personal identification number that carries in the AT order and the terminal is compared, if both are consistent, it is read-write then will reading and writing the mark position, finishes; If both are not inconsistent, then return bomp, finish.
Further, said method also can have following characteristics: after said terminal write userspersonal information or personal identification number, it is read-write for not that the mark position also will be read and write accordingly in said terminal.
Further, said method also can have following characteristics: if said AT command context is an inquiry terminal, under the readable situation of said personal user information, the parameter of demonstration comprises: personal information number, authentication type and authentication code; Under the unreadable situation of said personal user information, the parameter of demonstration comprises: personal information number and authentication type.
Adopt the method for the invention, solved in the prior art because terminal type is various, the problem that the PC side software is difficult to manage, and the method for the invention need not spend great amount of time and cost removes to safeguard dynamic link library, has practiced thrift time and cost.
Description of drawings
Fig. 1 is the flow chart of the method for the invention AT order number-baking method;
Fig. 2 writes the flow chart of CPI information to the terminal for the embodiment of the invention;
Fig. 3 is the flow chart of the embodiment of the invention to terminal inquiry CPI information;
Fig. 4 is the flow chart of the embodiment of the invention to the terminal read-write password.
Embodiment
AT (Attention) order is the function command that terminal equipment (TE, Terminal Equipment) sends to terminal adapter (TA, Terminal Adapter), the character string that the AT order normally starts with letter " AT ".The present invention is on the basis of the widely used AT order of the communications industry at present; Increase relevant command set; The relevant parameter that realize to burn number; Special-purpose PC side software and dynamic link library are used in release in the burning process, make the terminal (like hyper terminal) of any support AT order can accomplish the burning function, have reduced relevant maintenance work.
Below in conjunction with accompanying drawing and embodiment the enforcement of technical scheme of the present invention is done further to describe in detail:
Please, the invention provides a kind of terminal number-baking method, may further comprise the steps based on the AT order with reference to Fig. 1:
Step S101: burning equipment (like computer) sends the burning number relevant AT that increases newly in the command set through serial ports to the terminal and orders;
This increases command set newly and comprises three types of AT orders: (1) is relevant with network; (2) userspersonal information; (3) read-write password.The user can select the command type of transmission as required from increase command set newly.
Step S102: said terminal receives burns number relevant AT order;
Step S103: resolve its content after receiving the AT order at said terminal;
Following to said Context resolution step:
At first, judge whether the AT order that receives is to burn number relevant AT order;
If judge that again this AT order is to increase any in the command set newly.
After the type of judging this AT order, judge that this order writes terminal (promptly to the terminal writing information) or inquiry terminal (promptly the sense information from the terminal can be all or part of parameter of inquiry, also can be whether some parameter of inquiry is read-write); When this AT order when writing the terminal, carry parameter in this order, then the terminal need be judged this order and parameter.The content of judging comprises: confirm the length of parameter, alphabet size is write, and whether forbidden character appearance etc. is arranged.
Step S104: if said AT order is correct order and parameter, this order will be carried out in the terminal; Otherwise execution in step S105;
Step S105: fault processing will be carried out to said AT order in the terminal, and feed back to said burning Device Errors prompting.
Be elaborated to the three kinds of command types application process in the methods of the invention that increases newly in the command set below in conjunction with embodiment.
(A) the burning process of the AT order relevant with network may further comprise the steps:
Computer sends the AT order relevant with network by serial ports to the terminal; The terminal receives this AT order, parses this AT order and is the AT order relevant with network, and judge that this AT order writes or inquiry terminal:
If the AT order of the inquiry terminal that parses is directly carried out in this AT order of inquiry terminal, finish;
If write the AT order at terminal, need carry out parameter and judge that correct like parameter, said terminal writes network parameter, show simultaneously and finish the network parameter of supporting at present; If this AT order can't be resolved after parameter is judged, will carry out finishing after the fault processing.
An example of the AT order relevant with network is following:
The parameter that+CNET network is relevant
AT+CNET=<Country?Code>,<Operator>,<Control?Channel>
Write network parameter to the terminal, wherein:
Country Code is a country code;
Operator is an operator code;
Control Channel is a control channel
AT+CNET?
The terminal shows the network parameter of supporting at present.
Owing to need increase the function of safeguard protection, prevent that personal information from not have under the situation of authorizing by read/write, thereby cause the stolen of Subscriber Number or be modified, so in AT orders, increased Cipher Processing function to personal information to the userspersonal information.
(B) the burning process of the AT of personal user information order may further comprise the steps:
Computer sends userspersonal information's AT order to the terminal through serial ports; Parse the AT order of this AT order after the terminal receives, and judge that this AT order writes terminal or inquiry terminal for the userspersonal information:
If this AT order is for writing the terminal and its parameter is correct,, judge at first whether read and write flag bit accordingly read-write at the terminal in please with reference to Fig. 2; If it is read-write; This userspersonal information is write the terminal, can the read-write flag bit in the terminal be made into not read-writely then, finish; If the read-write flag bit in the terminal is not read-write, then return miscue, flow process finishes.If this AT order can't be resolved, will carry out fault processing after parameter is judged.So just avoided the userspersonal information not having under the situation of authorizing to have been guaranteed the safety of account by other people read/write.
When if this AT command context is inquiry terminal, judge directly whether corresponding read-write flag bit is read-write in the terminal, if read-write, demonstrates all userspersonal informations; Otherwise display part userspersonal information only is please with reference to Fig. 3.
In another embodiment; All or part of personal user information that can inquiry terminal; Should judge whether the userspersonal information's in the terminal read-write flag bit is read-write this moment; To confirm that which userspersonal information can read, to judge that also this AT order inquires about all or certain customers' personal information, can read and the userspersonal information of needs inquiry to the computer feedback according to above-mentioned judged result.
In another embodiment, whether this querying command can also be used to querying individual user profile readable and/or can write, and this moment, the information that these parameters such as authentication code be whether readable and/or can write was fed back to burnings equipment in the terminal.
An example of userspersonal information's AT order is following:
+ CPI userspersonal information
AT+CPI=<PSNUM>,<Auth-Type>,<Auth-Key>
Under read-write condition, write the personal information parameter to the terminal, wherein:
PSNUM is the personal information number;
Auth-Type is an authentication type;
Auth-Key is an authentication code;
AT+CPI=? (here "=? " Represent whether this AT order is read-write for a certain type of parameter of inquiry terminal)
Show PSNUM, Auth-Type, whether Auth-Key is readable
AT+CPI?
Under read-write condition, show PSNUM, Auth-Type, Auth-Key;
Under not read-write condition, show PSNUM, Auth-Type
(C) the burning process of the AT of read-write password order may further comprise the steps:
Computer sends the AT order of read-write password to the terminal through serial ports; Parse the AT order of this AT order after the terminal receives, and judge that this AT order is for writing terminal or inquiry terminal for read-write password:
If to the terminal write personal identification number (PS-KEY) and its parameter correct; (this read-write flag bit can be used as above-mentioned userspersonal information's read-write flag bit simultaneously at first to judge in the terminal corresponding read-write flag bit; But also can be provided with respectively) whether read-write, if read-write, the personal identification number that then more is provided with in the new terminal; And can be read-write for not with reading and writing the mark position, finish; If the read-write flag bit of judging in the terminal is read-write for not, the password that is provided with in personal identification number (PS-KEY) that carries in the AT order and the terminal is compared, if both are consistent, it is read-write then will reading and writing the mark position, finishes; If both are not inconsistent, then return bomp, flow process finishes.Please with reference to Fig. 4.
If whether some parameter of inquiry terminal is readable and/or can write, the then whether readable and/or information that can write to burning equipment these parameters of feedback such as authentication code.
An example of the AT order of read-write password is following:
+ CPIA personal identification number is confirmed
AT+CPIA=<PS-KEY>
Write password for inquiry to the terminal
< PS-KEY>personal identification number
AT+CPIA=?。
Show Auth-Key whether read-write (PS-Key is correct)
Though execution mode provided by the present invention as above, described content is not to be used for directly limiting scope of patent protection of the present invention.Any persond having ordinary knowledge in the technical field of the present invention under the prerequisite that does not break away from spirit and scope provided by the present invention, can do a little change what implement in form and on the details.Scope of patent protection of the present invention, still must with appending claims the person of being defined be as the criterion.

Claims (7)

1. the terminal number-baking method based on the AT order is characterized in that, comprising:
Burning equipment sends to the terminal and burns number relevant newly-increased AT order; Resolve the content and the parameter of said AT order after receiving said AT order at said terminal, if order that parses and parameter are correct, said AT order is carried out at then said terminal;
Said newly-increased AT order is the AT order relevant with network, userspersonal information's the AT order or the AT order of read-write password;
Resolve the content of this AT order at said terminal, and the result of parsing is for writing terminal or inquiry terminal;
Wherein, after said AT order is received at said terminal, parse this AT order any in the newly-increased AT order, the content of said AT order is resolved again, said AT order is userspersonal information's AT order; Parse the AT order of this AT order after the terminal receives, and judge that this AT order writes terminal or inquiry terminal for the userspersonal information:
If this AT order, judges at first whether read and write flag bit accordingly read-write at the terminal in for writing the terminal and its parameter is correct, if read-write, this userspersonal information is write the terminal, end; If the read-write flag bit in the terminal is not read-write, then return miscue, flow process finishes;
When if this AT command context is inquiry terminal, judge whether corresponding read-write flag bit is read-write in the terminal, if read-write, demonstrates all userspersonal informations; Otherwise display part userspersonal information only.
2. the method for claim 1 is characterized in that:
When whether the said parameter of said terminal judges was correct, in the following content one or more are judged: the length of parameter, whether alphabet size was write, have forbidden character to occur.
3. the method for claim 1 is characterized in that:
Said AT order is the AT order relevant with network, parses this AT order after the terminal receives and is the AT order relevant with network, and judge that this AT order writes or inquiry terminal:
If the AT order of the inquiry terminal that parses is directly carried out in this AT order of inquiry terminal, finish;
If write the AT order at terminal, need carry out parameter and judge that correct like parameter, said terminal writes network parameter, show simultaneously and finish the network parameter of supporting at present; If this AT order can't be resolved after parameter is judged, will carry out finishing after the fault processing.
4. the method for claim 1 is characterized in that:
Said userspersonal information's AT order can be all or part of personal user information of inquiry terminal; Said terminal judges goes out AT when order that this order is the userspersonal information of inquiry terminal; Whether the read-write flag bit of judging the userspersonal information in the terminal is read-write; Confirm that which userspersonal information can read; Judge also that simultaneously this AT order inquires about all or certain customers' personal information, according to above-mentioned judged result to burnings equipment feedback can be read and needs are inquired about userspersonal information.
5. the method for claim 1 is characterized in that:
Said AT order is the AT order of read-write password; After receiving, the terminal parses the AT order of this AT order for read-write password; As judge this AT order for writing the terminal and its parameter is correct, judge at first whether read and write flag bit accordingly read-write at the terminal in, if read-write; The personal identification number that then more is provided with in the new terminal finishes; If the read-write flag bit of judging in the terminal is read-write for not, the password that is provided with in personal identification number that carries in the AT order and the terminal is compared, if both are consistent, it is read-write then will reading and writing the mark position, finishes; If both are not inconsistent, then return bomp, finish.
6. like claim 1 or 5 described methods, it is characterized in that:
After said terminal write userspersonal information or personal identification number, it is read-write for not that the mark position also will be read and write accordingly in said terminal.
7. the method for claim 1 is characterized in that:
If said AT command context is an inquiry terminal, under the readable situation of said personal user information, the parameter of demonstration comprises: personal information number, authentication type and authentication code; Under the unreadable situation of said personal user information, the parameter of demonstration comprises: personal information number and authentication type.
CN2008100982993A 2008-06-03 2008-06-03 Terminal number-baking method based on AT command Expired - Fee Related CN101299850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100982993A CN101299850B (en) 2008-06-03 2008-06-03 Terminal number-baking method based on AT command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100982993A CN101299850B (en) 2008-06-03 2008-06-03 Terminal number-baking method based on AT command

Publications (2)

Publication Number Publication Date
CN101299850A CN101299850A (en) 2008-11-05
CN101299850B true CN101299850B (en) 2012-07-18

Family

ID=40079508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100982993A Expired - Fee Related CN101299850B (en) 2008-06-03 2008-06-03 Terminal number-baking method based on AT command

Country Status (1)

Country Link
CN (1) CN101299850B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651942B (en) * 2009-09-04 2012-05-23 中兴通讯股份有限公司 Method and device for unlocking terminal equipment
CN101925052A (en) * 2010-08-30 2010-12-22 深圳市宏电技术股份有限公司 Method and system for allocating numbers to communication modules and number allocating terminal equipment
CN104935449A (en) * 2014-03-19 2015-09-23 上海赞迪网络科技有限公司 Telecommunication terminal backboard default information reading-and-writing method
CN108829404B (en) * 2018-05-30 2022-03-22 珠海全志科技股份有限公司 Number burning method and device for terminal equipment, terminal equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665329A (en) * 2004-03-05 2005-09-07 Lg电子株式会社 Coding method of mobile user equipment
US20050197099A1 (en) * 2004-03-08 2005-09-08 Lan-Ver Technologies Solutions Ltd. Cellular device security apparatus and method
CN1713754A (en) * 2004-06-22 2005-12-28 中兴通讯股份有限公司 Method for number burning and network locking for PHS mobile telephone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665329A (en) * 2004-03-05 2005-09-07 Lg电子株式会社 Coding method of mobile user equipment
US20050197099A1 (en) * 2004-03-08 2005-09-08 Lan-Ver Technologies Solutions Ltd. Cellular device security apparatus and method
CN1713754A (en) * 2004-06-22 2005-12-28 中兴通讯股份有限公司 Method for number burning and network locking for PHS mobile telephone

Also Published As

Publication number Publication date
CN101299850A (en) 2008-11-05

Similar Documents

Publication Publication Date Title
CN101110853B (en) Portable communication equipment with loss protection function and loss protection method thereof
CN102411684B (en) Data protection method and device
CN102149083B (en) Personalized card writing method, system and device
CN100579261C (en) Method for simulating AT command report
CN101299850B (en) Terminal number-baking method based on AT command
US8798581B2 (en) Terminal and method for binding SIM card
RU2009146820A (en) COMMUNICATION TERMINAL
CN103309709A (en) Firmware upgrading method, device and communication equipment
CN102780989A (en) Method and system for preventing loss of mobile terminal
CN101895883B (en) Smart card supporting authentication arithmetic update and method for updating authentication arithmetic
CN101330301A (en) System and method for writing smart card base on wireless communication
CN103765925B (en) Method and corresponding system for accessing at least one service
CN104378375A (en) Remote access method for mobile phone, terminal device, server and system
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN101583204B (en) Method and system for realizing managing universal combined circuit card multiple application files
CN104267921A (en) Page display control method and server
CN103379478A (en) Control method, control system, client terminal and server
CN104598782A (en) Data packaging and analysis method and device
CN104282098A (en) Invoicing and tax copying process upgrading method of tax control device
CN100425092C (en) Mobile communication terminal data management method using sim card
CN108834126B (en) Card changing equipment and method
CN101106780A (en) Data synchronization method of multi-mode mobile terminal
CN103179499A (en) Number display processing method and system of service provider service numbers
CN102594972A (en) Method, device and system for card locking of mobile terminal
KR102115908B1 (en) User equipment and control method thereof

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120718

Termination date: 20160603