CN108460271A - Terminal identification method and device - Google Patents

Terminal identification method and device Download PDF

Info

Publication number
CN108460271A
CN108460271A CN201611131744.2A CN201611131744A CN108460271A CN 108460271 A CN108460271 A CN 108460271A CN 201611131744 A CN201611131744 A CN 201611131744A CN 108460271 A CN108460271 A CN 108460271A
Authority
CN
China
Prior art keywords
terminal
mark
storage location
serial ports
recognition
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
CN201611131744.2A
Other languages
Chinese (zh)
Other versions
CN108460271B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611131744.2A priority Critical patent/CN108460271B/en
Publication of CN108460271A publication Critical patent/CN108460271A/en
Application granted granted Critical
Publication of CN108460271B publication Critical patent/CN108460271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Abstract

The invention discloses a kind of terminal identification method and devices.Wherein, this method includes:Obtain the terminal device classification information for the terminal to be identified being connected with identification equipment;The mark storage location to match with terminal is searched according to terminal device classification information and indicates information, wherein mark storage location instruction information is used to indicate the storage location of the terminal recognition mark to match with terminal in the terminal;The terminal recognition mark that terminal is obtained from the storage location indicated by the mark storage location instruction information found, so that identification equipment identifies identification terminal by terminal recognition.The present invention solve in the prior art terminal can not normal boot-strap when the relatively low technical problem of existing terminal recognition accuracy rate.

Description

Terminal identification method and device
Technical field
The present invention relates to computer realms, in particular to a kind of terminal identification method and device.
Background technology
Currently, many terminal users often because a variety of causes can not timely update operating system that upgrading terminals are run and Application software, so that terminal causes terminal using in the process of running due to firmware and software not synchronous adaptation Occurs various problem in journey;In addition, many terminal users also want to replace or customize used operation system System.In view of these demands, various brush machine tools and third party customize read-only memory (Read-Only Memory, referred to as ROM) It comes into being.
However, in the process for carrying out brush machine to terminal based on PC (Personal Computer, referred to as PC) In, generally require the third-party application installed by terminal, that is, data are carried out by the third-party application installed with terminal Interaction can just get terminal recognition mark corresponding with terminal, to identify pending terminal.However, in the above process In, once occur can not be in the case of normal boot-strap for terminal, PC will be unable to obtain the terminal recognition mark of terminal, so as to cause nothing Method correctly identifies pending terminal.That is, terminal can not normal boot-strap when, will be unable to ensure successfully to get terminal Terminal recognition mark, in turn result in the problem of can not accurately identifying terminal.
For above-mentioned problem, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of terminal identification method and devices, can not at least to solve terminal in the prior art Existing terminal recognition accuracy rate relatively low technical problem when normal boot-strap.
One side according to the ... of the embodiment of the present invention provides a kind of terminal identification method, including:Acquisition and identification equipment The terminal device classification information for the terminal to be identified being connected;It is searched and above-mentioned terminal according to above-mentioned terminal device classification information The mark storage location instruction information to match, wherein above-mentioned mark storage location instruction information is used to indicate and above-mentioned terminal The terminal recognition to match identifies the storage location in above-mentioned terminal;Information is indicated from the above-mentioned mark storage location found Obtained in indicated above-mentioned storage location above-mentioned terminal above-mentioned terminal recognition mark so that above-mentioned identification equipment pass through it is above-mentioned Terminal recognition mark identifies above-mentioned terminal.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of terminal identification means, including:Acquiring unit is used In the terminal device classification information for obtaining the terminal to be identified being connected with identification equipment;Searching unit, for according to above-mentioned Terminal device classification information searches the mark storage location instruction information to match with above-mentioned terminal, wherein above-mentioned mark storage Position indication information is used to indicate the terminal recognition to match with above-mentioned terminal and identifies the storage location in above-mentioned terminal;Identification Unit, for obtaining above-mentioned terminal from the above-mentioned storage location indicated by the above-mentioned mark storage location instruction information found Above-mentioned terminal recognition mark so that above-mentioned identification equipment passes through above-mentioned terminal recognition mark and identifies above-mentioned terminal.
In embodiments of the present invention, after the terminal device classification information for obtaining terminal to be identified, by according to terminal Device class information searches the mark storage location instruction information for being used to indicate the storage location of terminal recognition mark in the terminal, To realize that directly acquiring the terminal recognition of storage in the terminal using mark storage location instruction information identifies, and then realize Identified come identification terminal using the terminal recognition, to overcome in the related technology in terminal abnormal, can not normal boot-strap when, Wu Facheng The problem of terminal recognition accuracy rate that work(obtains caused by terminal recognition mark reduces, realizes the effect for improving terminal recognition accuracy rate Fruit.In addition, in the case where the terminal recognition for successfully obtaining terminal identifies and terminal is recognized accurately, will also further realize Improve the effect of the remediation efficiency of abnormal terminals.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of application environment schematic diagram of optional terminal identification method according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of optional terminal identification method according to the ... of the embodiment of the present invention;
Fig. 3 is the flow chart of another optional terminal identification method according to the ... of the embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional terminal identification means according to the ... of the embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of optional terminal recognition equipment according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
Embodiment 1
In embodiments of the present invention, a kind of embodiment of above-mentioned terminal identification method is provided.As a kind of optional reality Mode is applied, which can be, but not limited to be applied in application environment as shown in Figure 1, and identification equipment 102 can be with It is established and is connected with terminal 106 to be identified by network 104, and the terminal for obtaining by network 104 terminal 106 to be identified is set Standby classification information;Then the mark storage location information to match with terminal 106 is searched according to terminal device classification information, In, which is used to indicate terminal recognition and identifies the storage location in terminal 106.Further, according to upper The terminal recognition mark of the mark storage location instruction acquisition of information terminal 106 is stated, and is identified using terminal recognition mark Terminal 106.Wherein, the quantity of above-mentioned terminal to be identified can be, but not limited to include one or more terminals.Above application field Scape is only a kind of example, and any restriction is not done to this in the present embodiment.
In the present embodiment, after the terminal device classification information for obtaining terminal to be identified, by according to terminal device Classification information searches the mark storage location instruction information for being used to indicate the storage location of terminal recognition mark in the terminal, to It realizes that directly acquiring the terminal recognition of storage in the terminal using mark storage location instruction information identifies, and then realizes and utilize Terminal recognition mark carrys out identification terminal, to overcome in the related technology in terminal abnormal, can not normal boot-strap when, can not be by the Tripartite's applications client is interacted to obtain the problem of terminal recognition accuracy rate caused by terminal recognition mark reduces.This Outside, it in the case where the terminal recognition for successfully obtaining terminal identifies and terminal is recognized accurately, also will further improve abnormal whole The remediation efficiency at end.
Optionally, in the present embodiment, above-mentioned terminal can include but is not limited at least one of:Mobile phone, tablet electricity Brain, laptop and other mobile hardware equipment.Above-mentioned identification equipment can include but is not limited at least one of:Tablet Computer, laptop, PC machine etc..Optionally, in the present embodiment, above-mentioned network can include but is not limited to:Cable network, Such as wide area network, Metropolitan Area Network (MAN), LAN.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
According to embodiments of the present invention, a kind of terminal identification method is provided, as shown in Fig. 2, this method includes:
S202 obtains the terminal device classification information for the terminal to be identified being connected with identification equipment;
S204 searches the mark storage location to match with terminal according to terminal device classification information and indicates information, wherein Mark storage location instruction information is used to indicate the storage location of the terminal recognition mark to match with terminal in the terminal;
S206, the terminal that terminal is obtained from the storage location indicated by the mark storage location instruction information found are known It does not identify, so that identification equipment identifies identification terminal by terminal recognition.
Optionally, in the present embodiment, above-mentioned terminal identification method can be, but not limited to be applied to and terminal to be identified In the identification equipment being connected, during such as the terminal for answering state in brush machine maintenance is identified applied to identification equipment, Wherein, above-mentioned identification equipment can be PC (PersonalComputer, referred to as PC).It should be noted that brush machine Refer to by certain method change or replacing some existing language of script in terminal, picture, the tinkle of bells, software or operation system System.By using the terminal recognition mark got to it is abnormal and can not the terminal of normal boot-strap accurately identify, in order to To it is abnormal and can not the terminal of normal boot-strap quickly repaired, to achieve the effect that the remediation efficiency of raising terminal.Wherein, Above-mentioned terminal can be, but not limited to operation Android operation system.Above-mentioned is only a kind of example, is not appointed to this in the present embodiment What is limited.
Optionally, in the present embodiment, above-mentioned terminal device classification information can include but is not limited to:The equipment type of terminal Number;Above-mentioned terminal recognition mark can include but is not limited to:International mobile equipment identification number (International Mobile Equipment Identity, referred to as IMEI).
Specifically, in the present embodiment, after the terminal device classification information for obtaining terminal to be identified, by according to end End equipment classification information searches the mark storage location instruction letter for being used to indicate the storage location of terminal recognition mark in the terminal Breath, to realize that directly acquiring the terminal recognition of storage in the terminal using mark storage location instruction information identifies, in turn Realize and identified come identification terminal using the terminal recognition, to overcome in the related technology in terminal abnormal, can not normal boot-strap when, will The problem of terminal recognition accuracy rate caused by terminal recognition mark reduces can not be successfully obtained, realizes that raising terminal recognition is accurate The effect of rate.In addition, in the case where the terminal recognition for successfully obtaining terminal identifies and terminal is recognized accurately, it will also be into one Step improves the remediation efficiency of abnormal terminals.
It should be noted that common mode is to generate or distribute temporarily interim identification marking for terminal in the related technology Mode carrys out identification terminal, such as generates or distribute one for terminal temporarily using mark, such as globally unique identifier (Globally Unique Identifier, referred to as GUID), and be written into terminal, it can utilize the interim identification mark to realize GUID is known to achieve the purpose that identification terminal.However, if the position of interim identification marking write-in is terminal memory here, After executing the operation of brush machine, which will be disposed of;If the position of write-in is SD card, due to ROM Difference, the mapping path for leading to interim identification marking can not be found or no permission is read, in turn resulting in can not be at Work(gets the corresponding interim identification marking of the terminal to execute identification process.
That is, in the related technology in such a way that interim identification marking is come identification terminal, can not be opened in terminal abnormal When machine, it will be unable to ensure successfully to get above-mentioned interim identification marking eventually, and then will cause quickly and accurately to identify The problem of going out above-mentioned terminal.Further, since interim identification marking does not have versatility, thus, using above-mentioned interim identification When mark carrys out identification terminal, it will be unable to the interactive operation to the terminal and carry out accurate statistics.For example, to the successful brush machine of terminal Afterwards, terminal will carry the interim identification marking GUID of the terminal for identification in the brush machine result reported, and be pacified in terminal The applications client of dress will carry the IMEI code of the terminal for identification in the installation results after reporting brush machine, report different Identification marking is counted, this inconsistent statistical result will occur, so as to cause the relatively low problem of the accuracy of statistical result. In this regard, in the present embodiment, by indicating information according to the mark storage location found, storage is directly acquired in the terminal only One terminal recognition identifies IMEI code, to ensure to obtain the success rate and accuracy rate of terminal recognition mark, and then improves the knowledge of terminal Other accuracy rate.
Optionally, in the present embodiment, it is searched according to terminal device classification information and identifies phase with the terminal recognition of terminal The mark storage location instruction information matched can include but is not limited to:Lookup and terminal device in pre-stored mapping relations The mark storage location that classification information matches indicates information.
As an alternative embodiment, finding the mark storage location to match with terminal device classification information When indicating information, it can be, but not limited to directly come according to the storage address indicated by the mark storage location instruction information found Terminal recognition mark is obtained, identification equipment institute is quick and precisely identified to realize quick positioning terminal identification marking, and then reach The terminal of connection.
As another optional embodiment, the terminal recognition to match with terminal device classification information is not being found When the storage location instruction information of mark, the output data of each terminal serial ports by traversing terminal is can be, but not limited to, with Obtain the serial ports mark of the target terminal serial ports for calling the terminal recognition of the terminal to identify.
Optionally, in the present embodiment, above-mentioned mark storage location instruction information can include but is not limited to it is following at least One of:Terminal recognition identifies in the database path stored in the terminal, terminal for calling the target that terminal recognition identifies whole Hold the serial ports mark of serial ports.Wherein, above-mentioned mark storage location instruction information can be used alone, and can also be used in combination, this Any restriction is not done in embodiment to this.That is, above-mentioned at least one storage location that identifies can be used to indicate information institute The storage address of instruction identifies to obtain terminal recognition, as an alternative embodiment, using terminal identification marking is at end The priority of the mode of the database path stored in end is higher than in using terminal for calling the target that terminal recognition identifies whole Hold the mode of the serial ports mark of serial ports.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
It should be noted that can be, but not limited to before the terminal device classification information for obtaining terminal to be identified, lead to The terminal device classification information and corresponding terminal recognition for crossing statistics different terminal equipment identify in the terminal device Correspondence between storage location, to obtain the mapping relations of above-mentioned storage.That is, be adapted to by big data analysis, To obtain the mapping relations between terminal device classification information and corresponding mark storage location instruction information.For example, above-mentioned reflect The relationship of penetrating can be as shown in table 1:
Table 1
Serial number Terminal device classification information Identify storage location information
1 A1 L1
2 A2 L2
3 B1 L3
That is, by analyzing and counting, to obtain different types of terminal device classification information, (such as terminal is set Standby model) indicated by terminal recognition mark storage location, and then the mark storage location that the storage location will be used to indicate Instruction information is stored in background server with corresponding terminal device classification information in the form of key-value pair.For example, with table 1 first It for shown in row, counts by analysis, the terminal indicated by terminal device classification information A1, terminal recognition identifies IMEI code can To be obtained by identifying storage location information L1, thus, by the above according to being stored shown in table 1, to realize next time In the case of the terminal device classification information of terminal to be identified is got as A1, the end can be searched in mapping relations using A1 The mark storage location at end indicates information L1, to realize that the instruction according to mark storage location instruction information L1 obtains the end of terminal Hold identification marking, such as IMEI-1.
It should be noted that in the present embodiment, it, can be by the fractional hardware of terminal since terminal is when system first powers on Information (including IMEI code) is synchronously written into the database of terminal, thus, the identification equipment being connect with terminal can by According to indicated database path in database, directly acquires and identify IMEI for the terminal recognition of unique mark terminal;This Outside, since terminal baseband part can be packaged into a serial equipment, thus, the identification equipment being connect with terminal can also lead to It crosses and serial equipment communicating, the terminal recognition to be used for unique mark terminal from terminal acquisition identifies IMEI.
Optionally, in the present embodiment, obtain the terminal device classification information of terminal to be identified mode can with but not It is limited to:1) it is obtained by the input unit in identification equipment, such as the input frame of display interface;2) direct from the bottom data of terminal It reads.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
It is specifically illustrated in conjunction with following example, as shown in figure 3, as what the acquisition of step S302 identification equipments was connected waits knowing The terminal device classification information of other terminal, and searched according to terminal device classification information and identify the mark to match with terminal recognition Know storage location and indicate information, such as step S304.If such as step S306-1, finds and match with terminal device classification information It identifies storage location and indicates information, wherein if the storage location indicated by the mark storage location instruction information found is number When according to library, S308-1 is thened follow the steps, terminal recognition mark is obtained according to indicated database path;If the mark found When storage location indicates that the storage location indicated by information is serial equipment, S308-2 is thened follow the steps, according to indicated mesh The serial ports mark for marking terminal serial ports obtains terminal recognition mark;Further, if not finding and terminal device classification information phase The mark storage location instruction information such as step S306-2 matched, thens follow the steps S308-3, traverses each terminal serial ports of terminal Output data, the serial ports to obtain the target terminal serial ports for calling terminal recognition to identify identifies, and executes step S310, It is identified according to the serial ports of target terminal serial ports and obtains terminal recognition mark.
Pass through root after the terminal device classification information for obtaining terminal to be identified by embodiment provided by the present application The mark storage location that the storage location of terminal recognition mark in the terminal is used to indicate according to the lookup of terminal device classification information refers to Show information, to realize that directly acquiring the terminal recognition of storage in the terminal using mark storage location instruction information identifies, And then realization can not normal boot-strap to overcome in the related technology in terminal abnormal come identification terminal using terminal recognition mark When, it can not successfully obtain the problem of terminal recognition accuracy rate caused by terminal recognition mark reduces.
As a kind of optional scheme, the mark storage location to match with terminal is searched according to terminal device classification information Indicate that information includes:
S1, the mark storage location that lookup matches with terminal device classification information in pre-stored mapping relations refer to Show information, wherein mark storage location instruction information includes at least one of:Terminal recognition identifies the number stored in the terminal According to the serial ports mark of the target terminal serial ports for calling terminal recognition mark in library path, terminal;
S2, when finding the mark storage location to match with terminal device classification information instruction information, according to lookup The mark storage location instruction information acquisition terminal identification marking arrived.
Optionally, in the present embodiment, as an alternative embodiment, from the mark storage location instruction found The terminal recognition mark of acquisition terminal includes in storage location indicated by information:
S21 is finding the storage location indicated by mark storage location instruction information according to terminal device classification information For database when, then from terminal pulling data library carry out mapping storage;
S22 is obtained according to the database path indicated by mark storage location instruction information from the database of mapping storage Terminal recognition is taken to identify.
Optionally, in the present embodiment, above-mentioned database path can be, but not limited to include following content:
1) database name (settings_db), for the pulling data library from terminal;If not configuring or value being sky, Then think that the terminal of this unit type can not use database lookup IMEI;
2) database table name (table_name), for the searching data library table from database;
3) database table field name (field_name), for searching IMEI from database table.
Wherein, the above will be written in database in terminal system boot for the first time, in the present embodiment, with The identification equipment of terminal connection to be identified carries out mapping storage by pulling above-mentioned database in identification equipment, thus will Realize the storage location for the terminal recognition mark for quickly orienting terminal according to indicated database path in identification equipment, To ensure to obtain the success rate of terminal recognition mark.
It can specifically be illustrated in conjunction with following example, it is assumed that for identification equipment by taking PC as an example, executing step can be as follows:
Assuming that it is db1, data that terminal, which is synchronously written database name in the database path of terminal hardware in system boot, Library table name is table1, the entitled field1 of database table field.Further, it is assumed that PC gets the equipment type of terminal to be identified Number A1 then sends search request according to the unit type A1 of the terminal to background server, if returning to the mark storage found Position indication information is database path, such as mark storage location instruction information L1 includes above-mentioned database path, then PC After executing adb orders " adb pull db1 db2 ", the database in terminal will be pulled from terminal onto PC, and with db2 Above-mentioned database is named on PC;Further, by executing sql sentences " select field1 from table1 ", PC will be from According to routing information (database table name table1, database table field name field1) in the database db2 pulled in PC Indicate that the terminal recognition for obtaining the terminal identifies IMEI.
Optionally, in the present embodiment, as another optional embodiment, refer to from the mark storage location found Show that the terminal recognition mark that terminal is obtained in the storage location indicated by information includes:
S21 is finding the storage location indicated by mark storage location instruction information according to terminal device classification information For serial equipment when, then by being communicated with target terminal serial ports, with obtain terminal terminal recognition identify, wherein mark Storage location instruction information is used to indicate the serial ports mark of target terminal serial ports, and target terminal serial ports is for calling terminal recognition mark Know.
Optionally, in the present embodiment, above-mentioned target terminal serial ports can be, but not limited to:Serial line interface in terminal, it is main It is used for string type data transmission by turn, wherein when not configuring or being empty, then it is assumed that the terminal device classification information is (such as Terminal device model) there is no storage mapping relationships for the terminal that is identified.
It can specifically be illustrated in conjunction with following example, it is assumed that for identification equipment by taking PC as an example, such as executing step can be as follows:
Assuming that terminal includes multiple serial line interfaces, wherein the string of the target terminal serial ports for calling terminal recognition mark Mouth is identified as serial_port-1.Further, it is assumed that PC gets the unit type B1 of terminal to be identified, then according to the end The unit type B1 at end sends search request to background server, if it is string to return to the mark storage location instruction information found Mouth mark (also referred to as serial port), such as mark storage location instruction information L3 includes above-mentioned serial port, for example, serial port Serial_port-1 then directly can send " ATI " toward the target terminal serial ports that serial port serial_port-1 is identified Order can parse the terminal recognition mark IMEI for obtaining the terminal.
By embodiment provided by the present application, by indicating the corresponding instruction side of information from different mark storage locations Formula is realized and utilizes means of different, and the terminal recognition mark of terminal is flexibly accurately positioned out, to ensure to obtain terminal recognition mark Success rate.
As a kind of optional scheme, searches in pre-stored mapping relations and match with terminal device classification information Mark storage location instruction information after, including:
S1, when not finding the mark storage location to match with terminal device classification information instruction information, traversal is eventually The output data of each terminal serial ports at end, to obtain the target terminal serial ports in the terminal being used to that terminal recognition to be called to identify Serial ports identifies.
Optionally, in the present embodiment, the output data for traversing each terminal serial ports of terminal includes:
S1 repeats following steps, until getting the string of the target terminal serial ports for calling terminal recognition to identify Mouth mark:
S11 obtains present terminal serial ports;
The output data of present terminal serial ports is redirected the file destination being output under preset path by S12;
S13 judges terminal recognition mark whether is got from file destination;
S14, when getting terminal recognition mark from file destination, by the serial ports mark of present terminal serial ports as use In the serial ports mark for the target terminal serial ports for calling terminal recognition mark;
S15, had not been obtained from file destination to terminal recognition identify when, obtain next terminal serial ports as it is current eventually Hold serial ports.
Specifically illustrated in conjunction with following example:When not finding any mark storage location instruction information, then PC will Adb orders " adb shell ls/dev " are executed, all serial ports list informations of terminal are parsed;And one serial ports of selection (assuming that The entitled serial_port-1 of serial ports), execute adb orders " adb shell cat serial_port1>/sdcard/ The output data of the serial ports (assuming that the entitled serial_port-1 of serial ports) is redirected to file destination file_ by imei.txt " 1;In addition, reopening an adb order pipeline executes order " adb shell echo-e " ATI r n " ";Execute adb lives " adb shell cat/sdcard/imei.txt " is enabled, the terminal recognition to obtain and parse terminal identifies IMEI.If obtained Failure is taken or parsed, then can reselect a serial ports circulating repetition from serial ports list information and execute above-mentioned steps, until Get the Identification of the target terminal serial ports for calling the terminal recognition of the terminal to identify.
By embodiment provided by the present application, when mark storage location having not been obtained indicating information, can also by according to File destination under the output data to preset path of the secondary serial ports for redirecting terminal, to realize by judging the specified file In whether include that terminal recognition identifies, to determine whether corresponding serial ports is mesh for calling the terminal recognition of the terminal to identify Mark terminal serial ports.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be expressed in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate Machine, server or network equipment etc.) method that executes each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of terminal identification means for implementing above-mentioned terminal identification method are additionally provided, As shown in figure 4, the device includes:
1) acquiring unit 402, the terminal device classification for obtaining the terminal to be identified being connected with identification equipment are believed Breath;
2) searching unit 404, for searching the mark storage location to match with terminal according to terminal device classification information Indicate information, wherein mark storage location instruction information is used to indicate the terminal recognition mark to match with terminal in the terminal Storage location;
3) recognition unit 406, for being obtained from the storage location indicated by the mark storage location instruction information found The terminal recognition of terminal is taken to identify, so that identification equipment identifies identification terminal by terminal recognition.
Optionally, in the present embodiment, above-mentioned terminal identification means can be, but not limited to be connected with terminal to be identified Identification equipment in, as during the terminal for answering state in brush machine maintenance is identified applied to identification equipment, wherein on It can be PC (Personal Computer, referred to as PC) to state identification equipment.It should be noted that brush machine refers to leading to It crosses certain method change or replaces some existing language of script in terminal, picture, the tinkle of bells, software or operating system.It is logical Cross using the terminal recognition mark got to it is abnormal and can not the terminal of normal boot-strap accurately identify, in order to exception And can not the terminal of normal boot-strap quickly repaired, to achieve the effect that improve the remediation efficiency of terminal.Wherein, above-mentioned end End can be, but not limited to operation Android operation system.Above-mentioned is only a kind of example, and any limit is not done to this in the present embodiment It is fixed.
Optionally, in the present embodiment, above-mentioned terminal device classification information can include but is not limited to:The equipment type of terminal Number;Above-mentioned terminal recognition mark can include but is not limited to:International mobile equipment identification number (International Mobile Equipment Identity, referred to as IMEI).
Specifically, in the present embodiment, after the terminal device classification information for obtaining terminal to be identified, by according to end End equipment classification information searches the mark storage location instruction letter for being used to indicate the storage location of terminal recognition mark in the terminal Breath, to realize that directly acquiring the terminal recognition of storage in the terminal using mark storage location instruction information identifies, in turn Realize and identified come identification terminal using the terminal recognition, to overcome in the related technology in terminal abnormal, can not normal boot-strap when, will The problem of terminal recognition accuracy rate caused by terminal recognition mark reduces can not be successfully obtained, realizes that raising terminal recognition is accurate The effect of rate.In addition, in the case where the terminal recognition for successfully obtaining terminal identifies and terminal is recognized accurately, it will also be into one Step improves the remediation efficiency of abnormal terminals.
It should be noted that common mode is to generate or distribute temporarily interim identification marking for terminal in the related technology Mode carrys out identification terminal, such as generates or distribute one for terminal temporarily using mark, such as globally unique identifier (Globally Unique Identifier, referred to as GUID), and be written into terminal, it can utilize the interim identification mark to realize GUID is known to achieve the purpose that identification terminal.However, if the position of interim identification marking write-in is terminal memory here, After executing the operation of brush machine, which will be disposed of;If the position of write-in is SD card, due to ROM Difference, the mapping path for leading to interim identification marking can not be found or no permission is read, in turn resulting in can not be at Work(gets the corresponding interim identification marking of the terminal to execute identification process.
That is, in the related technology in such a way that interim identification marking is come identification terminal, can not be opened in terminal abnormal When machine, it will be unable to ensure successfully to get above-mentioned interim identification marking eventually, and then will cause quickly and accurately to identify The problem of going out above-mentioned terminal.Further, since interim identification marking does not have versatility, thus, using above-mentioned interim identification When mark carrys out identification terminal, it will be unable to the interactive operation to the terminal and carry out accurate statistics.For example, to the successful brush machine of terminal Afterwards, terminal will carry the interim identification marking GUID of the terminal for identification in the brush machine result reported, and be pacified in terminal The applications client of dress will carry the IMEI code of the terminal for identification in the installation results after reporting brush machine, report different Identification marking is counted, this inconsistent statistical result will occur, so as to cause the relatively low problem of the accuracy of statistical result. In this regard, in the present embodiment, by indicating information according to the mark storage location found, storage is directly acquired in the terminal only One terminal recognition identifies IMEI code, to ensure to obtain the success rate and accuracy rate of terminal recognition mark, and then improves the knowledge of terminal Other accuracy rate.
Optionally, in the present embodiment, it is searched according to terminal device classification information and identifies phase with the terminal recognition of terminal The mark storage location instruction information matched can include but is not limited to:Lookup and terminal device in pre-stored mapping relations The mark storage location that classification information matches indicates information.
As an alternative embodiment, finding the mark storage location to match with terminal device classification information When indicating information, it can be, but not limited to directly come according to the storage address indicated by the mark storage location instruction information found Terminal recognition mark is obtained, identification equipment institute is quick and precisely identified to realize quick positioning terminal identification marking, and then reach The terminal of connection.
As another optional embodiment, the terminal recognition to match with terminal device classification information is not being found When the storage location instruction information of mark, the output data of each terminal serial ports by traversing terminal is can be, but not limited to, with Obtain the serial ports mark of the target terminal serial ports for calling the terminal recognition of the terminal to identify.
Optionally, in the present embodiment, above-mentioned mark storage location instruction information can include but is not limited to it is following at least One of:Terminal recognition identifies in the database path stored in the terminal, terminal for calling the target that terminal recognition identifies whole Hold the serial ports mark of serial ports.Wherein, above-mentioned mark storage location instruction information can be used alone, and can also be used in combination, this Any restriction is not done in embodiment to this.That is, above-mentioned at least one storage location that identifies can be used to indicate information institute The storage address of instruction identifies to obtain terminal recognition, as an alternative embodiment, using terminal identification marking is at end The priority of the mode of the database path stored in end is higher than in using terminal for calling the target that terminal recognition identifies whole Hold the mode of the serial ports mark of serial ports.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
It should be noted that can be, but not limited to before the terminal device classification information for obtaining terminal to be identified, lead to The terminal device classification information and corresponding terminal recognition for crossing statistics different terminal equipment identify in the terminal device Correspondence between storage location, to obtain the mapping relations of above-mentioned storage.That is, be adapted to by big data analysis, To obtain the mapping relations between terminal device classification information and corresponding mark storage location instruction information.For example, above-mentioned reflect The relationship of penetrating can be as shown in table 2:
Table 2
Serial number Terminal device classification information Identify storage location information
1 A1 L1
2 A2 L2
3 B1 L3
That is, by analyzing and counting, to obtain different types of terminal device classification information, (such as terminal is set Standby model) indicated by terminal recognition mark storage location, and then the mark storage location that the storage location will be used to indicate Instruction information is stored in background server with corresponding terminal device classification information in the form of key-value pair.For example, with table 2 first It for shown in row, counts by analysis, the terminal indicated by terminal device classification information A1, terminal recognition identifies IMEI code can To be obtained by identifying storage location information L1, thus, by the above according to being stored shown in table 2, to realize next time In the case of the terminal device classification information of terminal to be identified is got as A1, the end can be searched in mapping relations using A1 The mark storage location at end indicates information L1, to realize that the instruction according to mark storage location instruction information L1 obtains the end of terminal Hold identification marking, such as IMEI-1.
It should be noted that in the present embodiment, it, can be by the fractional hardware of terminal since terminal is when system first powers on Information (including IMEI code) is synchronously written into the database of terminal, thus, the identification equipment being connect with terminal can by According to indicated database path in database, directly acquires and identify IMEI for the terminal recognition of unique mark terminal;This Outside, since terminal baseband part can be packaged into a serial equipment, thus, the identification equipment being connect with terminal can also lead to It crosses and serial equipment communicating, the terminal recognition to be used for unique mark terminal from terminal acquisition identifies IMEI.
Optionally, in the present embodiment, obtain the terminal device classification information of terminal to be identified mode can with but not It is limited to:1) it is obtained by the input unit in identification equipment, such as the input frame of display interface;2) direct from the bottom data of terminal It reads.Above-mentioned is only a kind of example, and any restriction is not done to this in the present embodiment.
It is specifically illustrated in conjunction with following example, as shown in figure 3, as what the acquisition of step S302 identification equipments was connected waits knowing The terminal device classification information of other terminal, and searched according to terminal device classification information and identify the mark to match with terminal recognition Know storage location and indicate information, such as step S304.If such as step S306-1, finds and match with terminal device classification information It identifies storage location and indicates information, wherein if the storage location indicated by the mark storage location instruction information found is number When according to library, S308-1 is thened follow the steps, terminal recognition mark is obtained according to indicated database path;If the mark found When storage location indicates that the storage location indicated by information is serial equipment, S308-2 is thened follow the steps, according to indicated mesh The serial ports mark for marking terminal serial ports obtains terminal recognition mark;Further, if not finding and terminal device classification information phase The mark storage location instruction information such as step S306-2 matched, thens follow the steps S308-3, traverses each terminal serial ports of terminal Output data, the serial ports to obtain the target terminal serial ports for calling terminal recognition to identify identifies, and executes step S310, It is identified according to the serial ports of target terminal serial ports and obtains terminal recognition mark.
Pass through root after the terminal device classification information for obtaining terminal to be identified by embodiment provided by the present application The mark storage location that the storage location of terminal recognition mark in the terminal is used to indicate according to the lookup of terminal device classification information refers to Show information, to realize that directly acquiring the terminal recognition of storage in the terminal using mark storage location instruction information identifies, And then realization can not normal boot-strap to overcome in the related technology in terminal abnormal come identification terminal using terminal recognition mark When, it can not successfully obtain the problem of terminal recognition accuracy rate caused by terminal recognition mark reduces.
As a kind of optional scheme, searching unit 404 includes:
1) searching module, for searching the mark to match with terminal device classification information in pre-stored mapping relations Know storage location and indicate information, wherein mark storage location instruction information includes at least one of:Terminal recognition identified at end Serial ports mark in the database path that is stored in end, terminal for calling target terminal serial ports that terminal recognition identifies;
2) the first acquisition module, for finding the mark storage location to match with terminal device classification information instruction When information, information acquisition terminal identification marking is indicated according to the mark storage location found.
Optionally, in the present embodiment, recognition unit 406 includes:
(1) module is pulled, for finding mark storage location instruction information meaning according to terminal device classification information When the storage location shown is database, then pulling data library carries out mapping storage from terminal;
(2) second acquisition modules, for indicating the database path indicated by information from mapping according to mark storage location Terminal recognition mark is obtained in the database of storage.
Optionally, in the present embodiment, above-mentioned database path can be, but not limited to include following content:
1) database name (settings_db), for the pulling data library from terminal;If not configuring or value being sky, Then think that the terminal of this unit type can not use database lookup IMEI;
2) database table name (table_name), for the searching data library table from database;
3) database table field name (field_name), for searching IMEI from database table.
Wherein, the above will be written in database in terminal system boot for the first time, in the present embodiment, with The identification equipment of terminal connection to be identified carries out mapping storage by pulling above-mentioned database in identification equipment, thus will Realize the storage location for the terminal recognition mark for quickly orienting terminal according to indicated database path in identification equipment, To ensure to obtain the success rate of terminal recognition mark.
It can specifically be illustrated in conjunction with following example, it is assumed that for identification equipment by taking PC as an example, executing step can be as follows:
Assuming that it is db1, data that terminal, which is synchronously written database name in the database path of terminal hardware in system boot, Library table name is table1, the entitled field1 of database table field.Further, it is assumed that PC gets the equipment type of terminal to be identified Number A1 then sends search request according to the unit type A1 of the terminal to background server, if returning to the mark storage found Position indication information is database path, such as mark storage location instruction information L1 includes above-mentioned database path, then PC After executing adb orders " adb pull db1 db2 ", the database in terminal will be pulled from terminal onto PC, and with db2 Above-mentioned database is named on PC;Further, by executing sql sentences " select field1 from table1 ", PC will be from According to routing information (database table name table1, database table field name field1) in the database db2 pulled in PC Indicate that the terminal recognition for obtaining the terminal identifies IMEI.
Optionally, in the present embodiment, recognition unit 406 includes:
(1) communication module, for finding mark storage location instruction information meaning according to terminal device classification information When the storage location shown is serial equipment, then by being communicated with target terminal serial ports, to obtain the terminal recognition mark of terminal Know, wherein mark storage location instruction information is used to indicate the serial ports mark of target terminal serial ports, and target terminal serial ports is for adjusting It is identified with terminal recognition.
Optionally, in the present embodiment, above-mentioned target terminal serial ports can be, but not limited to:Serial line interface in terminal, it is main It is used for string type data transmission by turn, wherein when not configuring or being empty, then it is assumed that the terminal device classification information is (such as Terminal device model) there is no storage mapping relationships for the terminal that is identified.
It can specifically be illustrated in conjunction with following example, it is assumed that for identification equipment by taking PC as an example, such as executing step can be as follows:
Assuming that terminal includes multiple serial line interfaces, wherein the string of the target terminal serial ports for calling terminal recognition mark Mouth is identified as serial_port-1.Further, it is assumed that PC gets the unit type B1 of terminal to be identified, then according to the end The unit type B1 at end sends search request to background server, if it is string to return to the mark storage location instruction information found Mouth mark (also referred to as serial port), such as mark storage location instruction information L3 includes above-mentioned serial port, for example, serial port Serial_port-1 then directly can send " ATI " toward the target terminal serial ports that serial port serial_port-1 is identified Order can parse the terminal recognition mark IMEI for obtaining the terminal.
By embodiment provided by the present application, by indicating the corresponding instruction side of information from different mark storage locations Formula is realized and utilizes means of different, and the terminal recognition mark of terminal is flexibly accurately positioned out, to ensure to obtain terminal recognition mark Success rate.
As a kind of optional scheme, searching unit 404 includes:
1) spider module, for searching the mark to match with terminal device classification information in pre-stored mapping relations After knowing storage location instruction information, letter is indicated not finding the mark storage location to match with terminal device classification information When breath, the output data of each terminal serial ports of terminal is traversed, to obtain the mesh in the terminal being used to that terminal recognition to be called to identify Mark the serial ports mark of terminal serial ports.
Optionally, in the present embodiment, spider module includes:
(1) submodule is handled, for repeating following steps, until getting the mesh for calling terminal recognition to identify Mark the serial ports mark of terminal serial ports:
S1 obtains present terminal serial ports;
The output data of present terminal serial ports is redirected the file destination being output under preset path by S2;
S3 judges terminal recognition mark whether is got from file destination;
S4, when getting terminal recognition mark from file destination, by the serial ports mark of present terminal serial ports as use In the serial ports mark for the target terminal serial ports for calling terminal recognition mark;
S5, when getting terminal recognition mark from file destination, by the serial ports mark of present terminal serial ports as use In the serial ports mark for the target terminal serial ports for calling terminal recognition mark.
Specifically illustrated in conjunction with following example:When not finding any mark storage location instruction information, then PC will Adb orders " adb shell ls/dev " are executed, all serial ports list informations of terminal are parsed;And one serial ports of selection (assuming that The entitled serial_port-1 of serial ports), execute adb orders " adb shell cat serial_port1>/sdcard/ The output data of the serial ports (assuming that the entitled serial_port-1 of serial ports) is redirected to file destination file_ by imei.txt " 1;In addition, reopening an adb order pipeline executes order " adb shell echo-e " ATI r n " ";Execute adb lives " adb shell cat/sdcard/imei.txt " is enabled, the terminal recognition to obtain and parse terminal identifies IMEI.If obtained Failure is taken or parsed, then can reselect a serial ports circulating repetition from serial ports list information and execute above-mentioned steps, until Get the Identification of the target terminal serial ports for calling the terminal recognition of the terminal to identify.
By embodiment provided by the present application, when mark storage location having not been obtained indicating information, can also by according to File destination under the output data to preset path of the secondary serial ports for redirecting terminal, to realize by judging the specified file In whether include that terminal recognition identifies, to determine whether corresponding serial ports is mesh for calling the terminal recognition of the terminal to identify Mark terminal serial ports.
Embodiment 3
The application environment of the embodiment of the present invention can be, but not limited to reference to the application environment in embodiment 1, in the present embodiment This is repeated no more.An embodiment of the present invention provides a kind of optional concrete applications for implementing above-mentioned terminal identification method to show Example.
As a kind of optional embodiment, above-mentioned terminal identification method can be, but not limited to be applied to system identified below In, wherein the system include 7 modules, be respectively Android test bridge (Android Debug Bridge, ADB) command module, Serial communication modular, network module, data resolution module, equipment information management module, client modules, server module.
1) ADB command modules, the module mainly (are in this example with mobile phone with terminal by calling ADB tools Example) it is communicated, to obtain the information in mobile phone.Such as by this module, can from mobile phone pulling data library, or pass through serial ports Communication.
2) serial communication modular, the module are mainly communicated by sending AT orders to serial ports with mobile phone, to obtain Take the information in mobile phone.By this module, IMEI can be obtained from mobile phone.
3) Sqlite operation modules, the module are mainly responsible for believing from the path searched in database where obtaining IMEI Breath, such as database table mark and database literary name segment identification.
4) network module, the module are mainly responsible for and background communication, are such as obtained from backstage by cell phone apparatus model The relevant configuration value (database path where such as IMEI) of mobile phone, is set and is gone here and there come rapidly locating warehouse compartment by these configurations Mouth name;Simultaneously also can be by the information preservation of mobile phone to backstage (the serial ports name of such as mobile phone), the unification as same model equipment is matched It sets.
Wherein, backstage configuration information and purposes can be as follows:
1, database name -- settings_db
-- for the pulling data library from mobile phone
-- it does not configure or value is sky, then it is assumed that the mobile phone of this model can not use database lookup IMEI
2, database table name -- table_name
-- for the searching data library table from database
3, database table field name -- field_name
-- for searching IMEI from database table
4, serial ports name -- serial_port
-- it is communicated with mobile phone for passing through this serial ports name
-- do not configure or for sky, then it is assumed that the mobile phone of this model not yet be adapted to, need port basis to search
5) data resolution module, the module mainly provide the solution of data for equipment information management module and network module Analyse interface.The data got by ADB tools, serial ports and backstage can be better after being parsed and arranged by this module It uses.
6) equipment information management module, the module are mainly responsible for acquisition, storage and management equipment information, and provide and connect Confession upper layer module is called.Configuration information is obtained by network module, IMEI is preferentially obtained by database path, if having not been obtained IMEI is obtained to above-mentioned database path, then by serial ports mark (also referred to as serial port).
A. the method that IMEI is obtained by database is as follows:
S1, it is assumed that by network module to database path be db1, table name table1, the entitled field1 of field;
S2 executes adb orders " adb pull db1 db2 ", database is got from mobile phone pull-up on PC, db2 is on PC The full name of file;
S3 executes sql sentences " select field1 from table1 " by sqlite modules and is obtained from db2 IMEI。
B. the method that IMEI is obtained by serial ports is as follows:
S1, it is directly past by serial communication modular if having serial_port in the configuration information that network module returns Serial_port, which sends " ATI " order, can parse acquisition IMEI;
S2 then executes adb orders without serial_port " adb shell ls/dev ", parse all serial ports list letters Breath;
S3 selects a serial ports (assuming that the entitled serial_port1 of serial ports) and executes adb orders " adb shell cat serial_port1>/ sdcard/imei.txt ", by serial ports output redirection to file;
S4 reopens an adb order pipeline and executes order " adb shell echo-e " ATI r n " ";
S5 executes adb orders " adb shell cat/sdcard/imei.txt " and obtains and parse IMEI, if obtained Or then circulation step CDE removes other serial ports for attempting to get for parsing failure;
6) client modules obtain IMEI by calling equipment information management module to search.If it is by attempting to traverse Serial ports will then attempt available serial ports name and be sent to server-side record by network module come what is got.
7) server module, the module are mainly responsible for that service is communicated and provided with client.It can customer in response end Request and model is identified according to the cellphone information in request, while issue this model is allocated to client;It receives simultaneously Client reports, and serial ports name is saved in the configuration of corresponding mobile phone model.
Embodiment 4
According to embodiments of the present invention, a kind of terminal recognition equipment for implementing above-mentioned terminal identification method is additionally provided, As shown in figure 5, the equipment includes:
1) communication interface 502 are set as obtaining the terminal device classification for the terminal to be identified being connected with identification equipment Information;
2) processor 504 are connect with communication interface 502, are set as being searched and terminal phase according to terminal device classification information Matched mark storage location indicates information, wherein mark storage location instruction information is used to indicate the end to match with terminal Hold the storage location of identification marking in the terminal;It is also configured to indicate depositing indicated by information from the mark storage location found Storage space sets the middle terminal recognition mark for obtaining terminal, so that identification equipment identifies identification terminal by terminal recognition;
3) memory 506 are connect with communication interface 502 and processor 504, are set as storage terminal device classification information And/or mark storage location indicates information.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
Embodiment 5
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can With at least one of multiple network equipments in network network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 obtains the terminal device classification information for the terminal to be identified being connected with identification equipment;
S2 searches the mark storage location to match with terminal according to terminal device classification information and indicates information, wherein mark Know storage location instruction information and is used to indicate the storage location of the terminal recognition mark to match with terminal in the terminal;
S3 obtains the terminal recognition of terminal from the storage location indicated by the mark storage location instruction information found Mark, so that identification equipment identifies identification terminal by terminal recognition.
Optionally, storage medium is also configured to store the program code for executing following steps:
S1, the mark storage location that lookup matches with terminal device classification information in pre-stored mapping relations refer to Show information, wherein mark storage location instruction information includes at least one of:Terminal recognition identifies the number stored in the terminal According to the serial ports mark of the target terminal serial ports for calling terminal recognition mark in library path, terminal;
S2, when finding the mark storage location to match with terminal device classification information instruction information, according to lookup The mark storage location instruction information acquisition terminal identification marking arrived.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (16)

1. a kind of terminal identification method, which is characterized in that including:
Obtain the terminal device classification information for the terminal to be identified being connected with identification equipment;
The mark storage location to match with the terminal, which is searched, according to the terminal device classification information indicates information, wherein The mark storage location instruction information is used to indicate the terminal recognition to match with the terminal and identifies in the terminal Storage location;
The institute of the terminal is obtained from the storage location indicated by the mark storage location instruction information found Terminal recognition mark is stated, so that the identification equipment identifies the terminal by terminal recognition mark.
2. according to the method described in claim 1, it is characterized in that, described according to terminal device classification information lookup and institute Stating the mark storage location instruction information that terminal matches includes:
The mark storage location to match with the terminal device classification information is searched in pre-stored mapping relations Indicate information, wherein the mark storage location instruction information includes at least one of:The terminal recognition mark is described The serial ports of target terminal serial ports in the database path that is stored in terminal, the terminal for calling the terminal recognition mark Mark;
When finding the mark storage location to match with the terminal device classification information instruction information, according to lookup Terminal recognition mark described in the mark storage location instruction acquisition of information arrived.
3. according to the method described in claim 1, it is characterized in that, described indicate letter from the mark storage location found The terminal recognition mark that the terminal is obtained in the indicated storage location of breath includes:
The storage indicated by the mark storage location instruction information is being found according to the terminal device classification information When position is database, then the database is pulled from the terminal and carries out mapping storage;
It is obtained from the database of mapping storage according to the database path indicated by the mark storage location instruction information The terminal recognition is taken to identify.
4. according to the method described in claim 3, it is characterized in that, the database path includes:Database Identification, database Table mark, database table field identification.
5. according to the method described in claim 1, it is characterized in that, described indicate letter from the mark storage location found The terminal recognition mark that the terminal is obtained in the indicated storage location of breath includes:
The storage indicated by the mark storage location instruction information is being found according to the terminal device classification information When position is serial equipment, then by being communicated with target terminal serial ports, to obtain the terminal recognition mark of the terminal Know, wherein the mark storage location instruction information is used to indicate the serial ports mark of the target terminal serial ports, and the target is whole End serial ports is for calling the terminal recognition to identify.
6. according to the method described in claim 2, it is characterized in that, in the pre-stored mapping relations search with it is described After the mark storage location instruction information that terminal device classification information matches, further include:
When not finding the mark storage location to match with the terminal device classification information instruction information, institute is traversed The output data for stating each terminal serial ports of terminal, to obtain the institute in the terminal for calling the terminal recognition mark State the serial ports mark of target terminal serial ports.
7. according to the method described in claim 6, it is characterized in that, the output data of each serial ports of the traversal terminal Including:
Following steps are repeated, until getting the string of the target terminal serial ports for calling the terminal recognition mark Mouth mark:
Obtain present terminal serial ports;
The output data of the present terminal serial ports is redirected to the file destination being output under preset path;
Judge the terminal recognition mark whether is got from the file destination;
When getting the terminal recognition mark from the file destination, the serial ports of the present terminal serial ports is identified and is made For the serial ports mark of the target terminal serial ports for calling the terminal recognition mark;
Had not been obtained from the file destination to the terminal recognition identify when, obtain next terminal serial ports be used as described in work as Preceding terminal serial ports.
8. method according to any one of claim 1 to 7, which is characterized in that the terminal device classification information includes: The unit type of the terminal;The terminal recognition identifies:International mobile equipment identification number IMEI.
9. a kind of terminal identification means, which is characterized in that including:
Acquiring unit, the terminal device classification information for obtaining the terminal to be identified being connected with identification equipment;
Searching unit refers to for searching the mark storage location to match with the terminal according to the terminal device classification information Show information, wherein the mark storage location instruction information is used to indicate the terminal recognition mark to match with the terminal and exists Storage location in the terminal;
Recognition unit, for being obtained from the storage location indicated by the mark storage location instruction information found The terminal recognition of the terminal identifies, so that the identification equipment identifies the terminal by terminal recognition mark.
10. device according to claim 9, which is characterized in that the searching unit includes:
Searching module, described in lookup and the terminal device classification information match in pre-stored mapping relations It identifies storage location and indicates information, wherein the mark storage location instruction information includes at least one of:The terminal is known It does not identify in the database path stored in the terminal, the terminal for calling the target of the terminal recognition mark whole Hold the serial ports mark of serial ports;
First acquisition module, for referring to finding the mark storage location to match with the terminal device classification information When showing information, identified according to terminal recognition described in the mark storage location instruction acquisition of information found.
11. device according to claim 9, which is characterized in that the recognition unit includes:
Module is pulled, for finding the mark storage location instruction information meaning according to the terminal device classification information When the storage location shown is database, then the database is pulled from the terminal and carries out mapping storage;
Second acquisition module, for indicating the database path indicated by information from mapping storage according to the mark storage location The database in obtain terminal recognition mark.
12. according to the devices described in claim 11, which is characterized in that the database path includes:Database Identification, data Library table mark, database table field identification.
13. device according to claim 9, which is characterized in that the recognition unit includes:
Communication module, for finding the mark storage location instruction information meaning according to the terminal device classification information When the storage location shown is serial equipment, then by being communicated with target terminal serial ports, to obtain the institute of the terminal State terminal recognition mark, wherein the mark storage location instruction information is used to indicate the serial ports mark of the target terminal serial ports Know, the target terminal serial ports is for calling the terminal recognition to identify.
14. device according to claim 10, which is characterized in that the searching unit includes:
Spider module matches for being searched in the pre-stored mapping relations with the terminal device classification information After the mark storage location instruction information, the mark to match with the terminal device classification information is not being found When storage location indicates information, the output data of each terminal serial ports of the terminal is traversed, is used in the terminal with obtaining In the serial ports mark for the target terminal serial ports for calling the terminal recognition mark.
15. device according to claim 14, which is characterized in that the spider module includes:
Submodule is handled, for repeating following steps, until getting for calling described in the terminal recognition mark The serial ports of target terminal serial ports identifies:
Obtain present terminal serial ports;
The output data of the present terminal serial ports is redirected to the file destination being output under preset path;
Judge the terminal recognition mark whether is got from the file destination;
When getting the terminal recognition mark from the file destination, the serial ports of the present terminal serial ports is identified and is made For the serial ports mark of the target terminal serial ports for calling the terminal recognition mark;
Had not been obtained from the file destination to the terminal recognition identify when, obtain next terminal serial ports be used as described in work as Preceding terminal serial ports.
16. device according to any one of claims 9 to 15, which is characterized in that the terminal device classification information packet It includes:The unit type of the terminal;The terminal recognition identifies:International mobile equipment identification number IMEI.
CN201611131744.2A 2016-12-09 2016-12-09 Terminal identification method and device Active CN108460271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611131744.2A CN108460271B (en) 2016-12-09 2016-12-09 Terminal identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611131744.2A CN108460271B (en) 2016-12-09 2016-12-09 Terminal identification method and device

Publications (2)

Publication Number Publication Date
CN108460271A true CN108460271A (en) 2018-08-28
CN108460271B CN108460271B (en) 2020-09-29

Family

ID=63221465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611131744.2A Active CN108460271B (en) 2016-12-09 2016-12-09 Terminal identification method and device

Country Status (1)

Country Link
CN (1) CN108460271B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110177093A (en) * 2019-05-22 2019-08-27 上海上湖信息技术有限公司 A kind of equipment, equipment and recognition methods for identification carrying out identification
CN110225511A (en) * 2019-06-20 2019-09-10 世纪龙信息网络有限责任公司 Acquisition methods, device, system and the computer equipment of terminal IMEI number
CN111045737A (en) * 2019-11-29 2020-04-21 惠州Tcl移动通信有限公司 Equipment identifier acquisition method and device, terminal equipment and storage medium
CN111097175A (en) * 2019-11-21 2020-05-05 腾讯科技(深圳)有限公司 Simulator determination method and device and storage medium
CN116932449A (en) * 2023-09-15 2023-10-24 浪潮(山东)计算机科技有限公司 Method, system, equipment and medium for realizing serial port redirection to remote equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750100A (en) * 2012-06-20 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Terminal and method for identifying operating system of terminal
KR20130030956A (en) * 2011-09-20 2013-03-28 삼성전자주식회사 Apparatus and method for charging in one device multi-user system
CN103840914A (en) * 2014-02-17 2014-06-04 天地融科技股份有限公司 Data communication method, terminal and information security equipment
CN104079634A (en) * 2014-06-12 2014-10-01 深圳市金立通信设备有限公司 Method, device and system for displaying device interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130030956A (en) * 2011-09-20 2013-03-28 삼성전자주식회사 Apparatus and method for charging in one device multi-user system
CN102750100A (en) * 2012-06-20 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Terminal and method for identifying operating system of terminal
CN103840914A (en) * 2014-02-17 2014-06-04 天地融科技股份有限公司 Data communication method, terminal and information security equipment
CN104079634A (en) * 2014-06-12 2014-10-01 深圳市金立通信设备有限公司 Method, device and system for displaying device interface

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110177093A (en) * 2019-05-22 2019-08-27 上海上湖信息技术有限公司 A kind of equipment, equipment and recognition methods for identification carrying out identification
CN110225511A (en) * 2019-06-20 2019-09-10 世纪龙信息网络有限责任公司 Acquisition methods, device, system and the computer equipment of terminal IMEI number
CN110225511B (en) * 2019-06-20 2022-04-15 天翼数字生活科技有限公司 Method, device and system for acquiring IMEI number of terminal and computer equipment
CN111097175A (en) * 2019-11-21 2020-05-05 腾讯科技(深圳)有限公司 Simulator determination method and device and storage medium
CN111097175B (en) * 2019-11-21 2021-09-14 腾讯科技(深圳)有限公司 Simulator determination method and device and storage medium
CN111045737A (en) * 2019-11-29 2020-04-21 惠州Tcl移动通信有限公司 Equipment identifier acquisition method and device, terminal equipment and storage medium
CN111045737B (en) * 2019-11-29 2023-09-19 惠州Tcl移动通信有限公司 Equipment identifier acquisition method, device, terminal equipment and storage medium
CN116932449A (en) * 2023-09-15 2023-10-24 浪潮(山东)计算机科技有限公司 Method, system, equipment and medium for realizing serial port redirection to remote equipment
CN116932449B (en) * 2023-09-15 2023-12-15 浪潮(山东)计算机科技有限公司 Method, system, equipment and medium for realizing serial port redirection to remote equipment

Also Published As

Publication number Publication date
CN108460271B (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN108460271A (en) Terminal identification method and device
EP3605323B1 (en) Method for generating network slice template and for applying network slice template, and apparatus
CN109361562B (en) Automatic testing method based on associated network equipment access
US20180121335A1 (en) Testing a virtual network function by a virtual network tester
US20160148259A1 (en) Method of managing cookie information for target advertisement and application for managing cookie information
US7831709B1 (en) Flexible grouping for port analysis
CN109150572B (en) Method, device and computer readable storage medium for realizing alarm association
CN110569298B (en) Data docking and visualization method and system
CN106612204B (en) Service checking method and device
CN104951700B (en) Webpage leak detection method and device
US8458323B1 (en) Associating problem tickets based on an integrated network and customer database
CN109815231A (en) Data fragmentation method, device, computer equipment and storage medium
CN109391548A (en) List item moving method, device and network communicating system
US11106570B2 (en) Zero coding automation with natural language processing, such as for use in testing telecommunications software and resources
CN109587351B (en) Call testing method, device, equipment and storage medium
CN109240847A (en) EMS memory error report method, device, terminal and storage medium during a kind of POST
CN104468207A (en) Terminal management method, device and system
CN112311574A (en) Method, device and equipment for checking network topology connection
CN109918221A (en) A kind of hard disk reports an error analytic method, system, terminal and storage medium
CN109245910B (en) Method and device for identifying fault type
CN109359034A (en) A kind of operation system test method, computer readable storage medium and terminal device
CN106610890B (en) Abnormality eliminating method and device
CN105988785A (en) RPC (remote procedure call) service development method and device
CN111315026B (en) Channel selection method, device, gateway and computer readable storage medium
US7418376B1 (en) Method for generating a simulated network based on an actual managed network

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