CN109656625A - Recognition methods, device, computer equipment and the storage medium of mobile device model - Google Patents

Recognition methods, device, computer equipment and the storage medium of mobile device model Download PDF

Info

Publication number
CN109656625A
CN109656625A CN201811371811.7A CN201811371811A CN109656625A CN 109656625 A CN109656625 A CN 109656625A CN 201811371811 A CN201811371811 A CN 201811371811A CN 109656625 A CN109656625 A CN 109656625A
Authority
CN
China
Prior art keywords
mobile device
model
information
browser
ios
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811371811.7A
Other languages
Chinese (zh)
Inventor
李清鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811371811.7A priority Critical patent/CN109656625A/en
Publication of CN109656625A publication Critical patent/CN109656625A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of recognition methods of mobile device model, device, computer equipment and storage mediums, which comprises if detect the operation of the browser access target H5 page, obtains user agent's field information;According to user agent's field information, whether the operating system for judging to run the mobile device of the browser is ios system;If running the operating system of the mobile device of the browser, the graphics processor information of the mobile device is obtained by the browser;According to graphics processor information and user agent's field information, the model of the mobile device is identified.The model of each mobile device of ios system can be recognized accurately in the above method, so as to effectively improve ios system mobile device model identification accuracy.

Description

Recognition methods, device, computer equipment and the storage medium of mobile device model
Technical field
The present invention relates to computer application technologies, more particularly to the recognition methods of mobile device model, device, meter Calculate machine equipment and storage medium.
Background technique
The H5 page is a product of development of Mobile Internet technology development, with the development of development of Mobile Internet technology, Yong Hu It, can be by accessing the various network informations of H5 page browsing during using mobile device.
In the prior art, in order to be better understood by user, user's portrait is obtained, it is often necessary to do some data statistics works Make, the information such as location, gender, cell-phone number, name, work including obtaining user, when statistics wishes that these are related with user Information it is The more the better, more more complete better, mobile device model used by a user is often also some important information.It is obtaining After these information, if backstage can process these information and share, representative user's portrait can be obtained, it so can be more Good is that business demand provides theoretical channel.In the prior art, mobile device on the market be broadly divided into android equipment and The camp ios equipment Liang great.For example, needing by user when counting the model of mobile device in the prior art in browsing H5 When the page, user agent (UserAgent) field information of browser is obtained, which generally can be comprising moving The character string informations such as manufacturer, operating system version, browser type and the version of dynamic equipment, by these character string informations into The information such as the brand, type and model that row handles to obtain mobile device used by a user.
But above-mentioned technical proposal identify ios system mobile device model when, due to each type of ios system Number mobile device provided by user agent's field information the character string of marking types be not much different, so existing movement The type identifier scheme of equipment can not precisely identify the model of each mobile device of ios system, lead to the mobile device of ios system The identification accuracy of model is poor.
Summary of the invention
Based on this, it is necessary to be asked for the technology of the model of the existing each mobile device that can not precisely identify ios system Topic, provides recognition methods, device, computer equipment and the storage medium of a kind of mobile device model.
A kind of recognition methods of mobile device model, which comprises
If detect the operation by the browser access target H5 page, user agent's field information is obtained;
According to user agent's field information, judge to run the mobile device of the browser operating system whether be Ios system;
If the operating system for running the mobile device of the browser is ios system, by described in browser acquisition The graphics processor information of mobile device;
According to the graphics processor information and user agent's field information, the model of the mobile device is identified.
In one of the embodiments, according to user agent's field information, the movement for running the browser is judged Whether the operating system of equipment is ios system, is specifically included:
The operating system version for running the mobile device of the browser is obtained from user agent's field information This number;
According to the operating system version number for the mobile device for running the browser, judge to run the browser Whether the operating system of the mobile device is ios system.
The graphics processor information of mobile device is obtained by the browser in one of the embodiments, it is specific to wrap It includes:
It by using the painting canvas function of the H5 page, enables the graphics processor and draws in memory, thus described in obtaining The model of graphics processor.
In one of the embodiments, according to the graphics processor information and user agent's field information, identification The model of the mobile device, comprising:
The device pixel ratio for the mobile device that the user uses is obtained from user agent's field information;
It is set according to the model of the model of the graphics processor and pre-set graphics processor with corresponding movement The corresponding relationship in standby publication time, obtains the publication time of the mobile device;
That according to the publication time of the mobile device and the mobile device device pixel ratio and the ios that pre-establishes Device model mapping table obtains the model of the mobile device;It include the hair of mobile device in the ios device model mapping table The mapping relations in cloth time, device pixel ratio and model.
In one of the embodiments, according to the device pixel in the publication time and the mobile device of the mobile device Than and the ios device model mapping table that pre-establishes, before the model for obtaining the mobile device, the method also includes:
Acquire publication time, device pixel ratio and the corresponding model of the mobile device of all ios systems;
According to the publication time of the mobile device of each ios system, device pixel ratio and the corresponding model, That establishes the mobile device issues the mapping relations of time, device pixel ratio and the model, and is stored in the ios and sets Standby model mapping table.
In one of the embodiments, the described method includes:
If the mobile device that the user uses is the mobile device of Android system, from user agent's word Model character string is obtained in segment information;
According to the android device model dictionary library and the model character string pre-established, the mobile device is obtained Model and manufacturer's information;It include model, manufacturer's information and the type of mobile device in the android device model dictionary library The corresponding relationship of sign character string.
In one of the embodiments, according to the model dictionary library that pre-establishes and the model character string, described in acquisition Before the model and manufacturer's information of mobile device, the method also includes:
Acquire the model and manufacturer's information and corresponding model character string of the mobile device of all Android systems;
According to the model of the mobile device of each Android system and manufacturer's information and the corresponding model word Symbol string, establishes the model of the mobile device, the corresponding relationship of manufacturer's information and the model character string, and is stored in described In android device model dictionary library.
A kind of recognition methods device of mobile device model, described device include:
Field acquiring unit, if when for detecting the operation by the browser access target H5 page, obtaining user's generation Manage field information;
Judging unit, for judging the mobile device for running the browser according to user agent's field information Whether operating system is ios system;
Information acquisition unit passes through the browser if the operating system of the mobile device for running the browser Obtain the graphics processor information of the mobile device;
Recognition unit, for identifying the shifting according to the graphics processor information and user agent's field information The model of dynamic equipment.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor, so that the processor executes the knowledge of mobile device model described above The step of other method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that the step of one or more processors execute the recognition methods of mobile device model described above.
Recognition methods, device, computer equipment and the storage medium of above-mentioned mobile device model, if by detecting browsing When the operation of the device access target H5 page, user agent's field information is obtained;According to user agent's field information, judge to transport Whether the operating system of the mobile device of the row browser is ios system;If running the behaviour of the mobile device of the browser Making system is ios system, and the graphics processor information of the mobile device is obtained by browser;According to the graphics processor Information and user agent's field information, identify the model of the mobile device.Ios system can be recognized accurately in the above method System each mobile device model, so as to effectively improve ios system mobile device model identification accuracy, so as to The processing of user's portrait or customer analysis are carried out based on the model of the mobile device of the user accurately identified in subsequent.
Detailed description of the invention
Fig. 1 is the internal structure block diagram of computer equipment in one embodiment;
Fig. 2 is the flow chart of the recognition methods of mobile device model in one embodiment;
Fig. 3 is the flow chart of the identification of mobile device model in another embodiment;
Fig. 4 is the flow chart of the identification of mobile device model in further embodiment;
Fig. 5 is the flow chart of the identification of mobile device model in another embodiment;
Fig. 6 is the flow chart of the identification of mobile device model in still further embodiment;
Fig. 7 is the structural block diagram of the identification device of mobile device model in one embodiment;
Fig. 8 is the structural block diagram of the identification device of mobile device model in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The executing subject of the recognition methods of the mobile device model of the present embodiment is the identification device of mobile device model.This In the use environment of the recognition methods of the mobile device model of embodiment, the identification device of the mobile device model can be inserted in clear The plug-in unit look in device client.Or it can also can be made with user with an independent computer equipment, the computer equipment Mobile device communication.For example, the model for the ease of the mobile device to each user identifies, the computer equipment It can be with grafting or with wireless communication mode and the mobile device communication of user, small-sized computer equipment for one.It should Computer equipment can be after user opens the H5 page by the browser client of mobile device, available user agent's word Segment information;Then judge mobile device that user uses whether be ios system mobile device;If the mobile device that user uses For the mobile device of ios system, graphics processor (the Graphics Processing Unit of mobile device is obtained;GPU) believe Breath;According to the GPU information of mobile device and user agent (UserAgent) field information, the model of mobile device is identified.Most Afterwards, after which gets mobile device model, the model of the mobile device can also be sent to the clothes of the H5 page Business device, the model of the mobile terminal of each user is saved by the server of the H5 page, and save, so that subsequent convenience is based on user Mobile device model carry out user draw a portrait processing and analysis.
Fig. 1 is the schematic diagram of internal structure of computer equipment in one embodiment.As shown in Figure 1, the computer equipment packet Include processor, non-volatile memory medium, memory and the network interface connected by system bus.Wherein, which sets Standby non-volatile memory medium is stored with operating system, database and computer-readable instruction, can be stored with control in database Part information sequence when the computer-readable instruction is executed by processor, may make processor to realize a kind of mobile device model Recognition methods.The processor of the computer equipment supports the operation of entire computer equipment for providing calculating and control ability. Computer-readable instruction can be stored in the memory of the computer equipment, when which is executed by processor, Processor may make to execute a kind of recognition methods of mobile device model.The network interface of the computer equipment with user for making Mobile device connection communication.It will be understood by those skilled in the art that structure shown in Fig. 1, only with the application side The block diagram of the relevant part-structure of case does not constitute the restriction for the computer equipment being applied thereon to application scheme, tool The computer equipment of body may include perhaps combining certain components than more or fewer components as shown in the figure or having not Same component layout.
As shown in Fig. 2, in one embodiment it is proposed that a kind of recognition methods of mobile device model, the mobile device The recognition methods of model can be applied in above-mentioned computer equipment, and the movement that also may be directly applied to be mounted on user is set In the plug-in unit of standby browser client, it can specifically include following steps:
If S200, when detecting the operation by the browser access target H5 page, obtaining user agent's field information;
In operation of the user by the browser access target H5 page of mobile device, browser can detecte access The operation of the target H5 page.The recognition methods of the mobile device model of the present embodiment at this time can pass through Code obtaining user Agent field information.User agent's field information not only may include many characteristic informations for the mobile device that user uses, It can also include many characteristic informations for the browser installed in the mobile device that uses of user.Such as user agent's field information In may include: the version number of operating system of the mobile device that user uses, mobile device used by a user equipment picture Element is than (Device Pixel Ratio;) and the information such as browser type, version DPR.
S201, according to user agent's field information, judge to run whether the operating system of the mobile device of browser is ios System;
In the present embodiment, user institute can be judged according to the characteristic information of the mobile device in user agent's field information Whether the operating system that the mobile device used runs browser is ios system.For example, can first believe from user agent's field The operating system version number of the mobile device of operation browser is obtained in breath;It then can be according to the mobile device of operation browser Operating system version number, judge to run whether the operating system of mobile device of browser is ios system.In the present embodiment with For ios and Android operation system, different operating system has different version numbers.Although ios system and Android system System all has miscellaneous editions number respectively, but is according to the operating system that the version number of operating system can distinguish mobile device Ios system or Android system.
If S202, the operating system for running the mobile device of browser are ios system, mobile device is obtained by browser Graphics processor (Graphics Processing Unit;GPU) information;
For the mobile device of ios system, the model of mobile device can be identified by the GPU information of mobile device. For example, can enable GPU by using the painting canvas function of the H5 page and draw in memory, to obtain the model of GPU.GPU letter Breath is mainly rendering engine information, needs to render in memory because drawing, technically after rendering engine starting, To take this field of the renderer_info of rendering engine, this field just includes the model of GPU, similar ' ApppleA11GPU ', ' AppleA10GPU ' etc..So needing to use picture in memory after user requests to open the H5 page Figure function renders the H5 page can get the model of GPU to start GPU at this time.
S203, according to GPU information and user agent's field information, identify the model of mobile device.
The processor of technological innovation based on Apple Inc., each year mobile device product has promotion, from A7, A8, A9 to A10, A11 (iPhone X), the product issued over the years based on Apple Inc., it was determined that the movement of same year publication Device product, processor is identical, that is, GPU model is identical.After determining GPU model, so that it may determine that the apple equipment is The product of which year publication.Since Apple Inc. is considerably less in the quantity for the mobile device product that same year is issued, this When in conjunction with user agent's field other information, can identify the model of the mobile device.
The recognition methods of the mobile device model of the present embodiment, by detecting through the browser access target H5 page When operation, user agent's field information is obtained;According to user agent's field information, the behaviour for running the mobile device of browser is judged Make whether system is ios system;If running the operating system of the mobile device of browser, mobile device is obtained by browser GPU information;According to graphics processor information and user agent's field information, the model of mobile device is identified.Using the present embodiment Technical solution, the model of each mobile device of ios system can be recognized accurately, so as to effectively improve ios system Mobile device model identification accuracy, carried out in order to subsequent based on the model of the mobile device of the user accurately identified The processing of user's portrait or customer analysis.
Fig. 3 is shown in one embodiment, the recognition methods of the mobile device model of the present embodiment, in step S203 In " according to graphics processor information and user agent's field information, identifying the model of mobile device ", it can specifically include following Step:
S300, the DPR that the mobile device that user uses is obtained from user agent's field information;
It can be with since the mobile device product of Apple Inc.'s same year publication has different size of screen, in the present embodiment The screen size of mobile device is identified using the DPR of mobile device, consequently facilitating subsequent identify according to the DPR of mobile device The model of mobile device.
S301, according to publication time of the model and corresponding mobile device of the model of GPU and pre-set GPU Corresponding relationship obtains the publication time of mobile device;
For example, in the present embodiment, can acquire in advance each mobile device product of Apple Inc.'s publication GPU model and Corresponding publication time, the information based on acquisition establish the corresponding relationship in the publication time of GPU model and mobile device.In this way, After getting the GPU model of mobile device, can according to the corresponding relationship in the publication time of GPU model and mobile device, Get the publication time of mobile device used by a user.
S302, it is reflected according to the publication time of mobile device and the DPR of mobile device and the ios device model pre-established Firing table obtains the model of mobile device;It include publication time, DPR and the model of mobile device in ios device model mapping table Mapping relations.
Since the quantity of the mobile device product of Apple Inc.'s same year publication is considerably less, according to the publication year of mobile device Part, it can first determine which kind is the model of the mobile device of publication time publication have.Then in conjunction with Apple Inc. same The mobile device product that year is issued will not be GPU as screen size.Mobile device product based on same year publication Screen size and different feature in the present embodiment, can also utilize the DPR of the mobile device, issue from same year more The model of mobile device is determined in money mobile device model.
When specific implementation, ios device model mapping table can be pre-established, includes moving in the ios device model mapping table The mapping relations for issuing time, DPR and model of dynamic equipment, in this way, in the publication time and movement that get mobile device It, can be according to the publication time of mobile device and the DPR of mobile device and the ios equipment pre-established after the DPR of equipment Model mapping table obtains the model of mobile device.
It, can also can according to other in the GPU model and user agent's field information of mobile device in practical application The characteristic information of the different model of the mobile terminal of same year publication is identified, to identify the model of mobile device.It is not another herein One citing repeats.
The recognition methods of the mobile device model of the present embodiment can be recognized accurately by using above-mentioned technical proposal The model of each mobile device of ios system, it is accurate so as to effectively improve the identification of mobile device model of ios system Property, the processing of user's portrait or user point are carried out based on the model of the mobile device of the user accurately identified in order to subsequent Analysis.
Fig. 4 is shown in one embodiment, the recognition methods of the mobile device model of the present embodiment, in step S302 It " according to the DPR of the publication time of mobile device and mobile device and the ios device model mapping table pre-established, obtains and moves Before the model of dynamic equipment ", specifically can with the following steps are included:
S400, all ios systems of acquisition mobile device publication time, DPR and corresponding model;
S401, publication time, DPR and corresponding model according to the mobile device of each ios system establish movement and set Standby issues the mapping relations of time, DPR and model, and is stored in ios device model mapping table.
As shown in figure 5, in one embodiment it is proposed that a kind of recognition methods of mobile device model, the mobile device The recognition methods of model on the basis of the above embodiments, further introduces technical solution of the present invention in further detail.This reality The recognition methods for applying the mobile device model of example can specifically include following technical solution:
If S500, when detecting the operation of the browser access target H5 page, obtaining user agent's field information;
The step can be with reference to the implementation of the step S200 of above-mentioned embodiment illustrated in fig. 2, and details are not described herein.
S501, according to user agent's field information, judge the operating system for running the mobile device of browser for ios system Or android system;If ios system, step S502 is executed;If android system, step S506 is executed;
S502, the painting canvas function by using the H5 page enable GPU and draw in memory, to obtain the model of GPU; Execute step S503;
S503, the DPR that the mobile device that user uses is obtained from user agent's field information;Execute step S504;
S504, according to the model of the GPU of mobile device and the model of pre-set GPU and corresponding mobile device The corresponding relationship for issuing the time, obtains the publication time of mobile device;Execute step S505;
S505, according to publication time of mobile device and mobile device device pixel ratio DPR and the ios that pre-establishes Device model mapping table obtains the model of mobile device, terminates.
The implementation of above-mentioned steps S502-S505 can refer to the mobile device type of above-mentioned Fig. 2-embodiment illustrated in fig. 4 in detail Number the related of recognition methods record, details are not described herein.
S506, model character string is obtained from user agent's field information;Execute step S507;
It, can in user agent's field of acquisition if mobile device is the mobile device of android system in the present embodiment To include the model character string that can be identified for that mobile device model.
The android device model dictionary library and model character string that S507, basis pre-establish, obtain the type of mobile device Number and manufacturer's information;It include model, manufacturer's information and the model character of mobile device in the android device model dictionary library The corresponding relationship of string terminates.
In the present embodiment, it can be pre-established with android device model dictionary library, the android device model dictionary The corresponding relationship of model, manufacturer's information and model character string in library including mobile device.Due to the mobile device of ios system All it is a producer, so not needing manufacturer's information, the mobile device can be identified.And the movement of Android system is set It is standby to come from multiple producers, so, for the mobile device of Android system, there can be multiple commercial vendors production, so, it is right It may include the model, manufacturer's information and model word of mobile device in the android device model dictionary library pre-established Accord with the corresponding relationship of string.
So after the model character string for the mobile device for getting Android system, it can be according to android equipment The corresponding relationship of the model of mobile device in model dictionary library, manufacturer's information and model character string, obtains the mobile device Model and manufacturer's information.The recognition methods of the mobile device model of the present embodiment, by using above-mentioned technical proposal, Ke Yizhun Really identify ios system each mobile device model, so as to effectively improve ios system mobile device model knowledge Other accuracy carries out the processing of user's portrait or use based on the model of the mobile device of the user accurately identified in order to subsequent Family analysis.
Fig. 6 is shown in one embodiment, the recognition methods of the mobile device model of the present embodiment, in step S507 " according to the android device model dictionary library and model character string pre-established, obtain the model and manufacturer's letter of mobile device Breath " before, specifically can with the following steps are included:
The model and manufacturer's information of the mobile device of S600, all Android systems of acquisition and corresponding model character String;
S601, according to the model and manufacturer's information of the mobile device of each Android system and corresponding model character String, establishes the model of mobile device, the corresponding relationship of manufacturer's information and model character string, and be stored in android equipment type In number dictionary library.
As shown in fig. 7, in one embodiment, a kind of identification device of mobile device model is provided, the mobile device The identification device of model can integrate in above-mentioned computer equipment, can specifically include field acquiring unit 10, judgement list First 11, information acquisition unit 12, recognition unit 13.
Wherein if field acquiring unit 10 is used to detect the operation by the browser access target H5 page, obtains and use Family agent field information;
Judging unit 11 is used for the user agent's field information obtained according to field acquiring unit 10, judges to run browser The operating system of mobile device whether be ios system;
If information acquisition unit 12 determines that the operating system of the mobile device of operation browser is ios for judging unit 11 System obtains the graphics processor information of mobile device by browser;
Recognition unit 13 is used for the graphics processor information and field acquiring unit 10 obtained according to information acquisition unit 12 User agent's field information of acquisition, identifies the model of mobile device.
The identification device of the mobile device model of the present embodiment realizes the knowledge of mobile device model by using said units Not, identical as the realization principle of above-mentioned related method embodiment, the record of above-mentioned related method embodiment can be referred in detail, This is repeated no more.
Shown in the identification device of the mobile device model of embodiment as above, judging unit 11 is specifically used for:
The operating system version number of the mobile device of operation browser is obtained from user agent's field information;
According to the operating system version number of the mobile device of operation browser, the behaviour for running the mobile device of browser is judged Make whether system is ios system.
Information acquisition unit 12 is specifically used for the painting canvas function by using the H5 page, enables graphics processor in memory It draws, to obtain the model of graphics processor.
Recognition unit 13 is specifically used for:
The equipment for the mobile device that user uses is obtained from user agent's field information that field acquiring unit 10 obtains Pixel ratio;
According to the model of the graphics processor of the acquisition of information acquisition unit 12 and the type of pre-set graphics processor Number with corresponding mobile device publication the time corresponding relationship, obtain the publication time of mobile device;
According to the device pixel ratio of the publication time of mobile device and mobile device and the ios device model pre-established Mapping table obtains the model of mobile device;Publication time, device pixel in ios device model mapping table including mobile device Than and model mapping relations.
As shown in figure 8, in one embodiment, a kind of identification device of mobile device model is provided, the mobile device The identification device of model can also include: acquisition unit 14 and establish unit 15.
Wherein acquisition unit 14 be used to acquire publication times of mobile device of all ios systems, device pixel ratio and Corresponding model;
Establish publication time, the equipment of the mobile device of each ios system of the unit 15 for acquiring according to acquisition unit 14 Pixel ratio and corresponding model establish the mapping relations for issuing time, device pixel ratio and model of mobile device, and It is stored in ios device model mapping table.
Accordingly, recognition unit 13 is specifically used for the device pixel ratio in the publication time and mobile device according to mobile device And the ios device model mapping table of the foundation of unit 15 pre-established is established, obtain the model of mobile device.
In this embodiment, if it is Android system that information acquisition unit 12, which is also used to the mobile device that user uses, When mobile device, model character string is obtained from user agent's field information;
Recognition unit 13 is also used to be obtained according to the android device model dictionary library and information acquisition unit 12 that pre-establish The model character string taken obtains the model and manufacturer's information of mobile device;It include that movement is set in android device model dictionary library The corresponding relationship of standby model, manufacturer's information and model character string.
Accordingly, acquisition unit 14 be also used to acquire the mobile device of all Android systems model and manufacturer's information, And corresponding model character string;
Establish model and the factory of the mobile device for each Android system that unit 15 is also used to acquire according to acquisition unit 14 Quotient's information and corresponding model character string, the model, manufacturer's information and the corresponding of model character string for establishing mobile device are closed System, and be stored in android device model dictionary library.
Accordingly, recognition unit 13 is also used to the android device model dictionary library pre-established according to unit 15 is established The model character string obtained with information acquisition unit 12, obtains the model and manufacturer's information of mobile device;Android device model The corresponding relationship of model, manufacturer's information and model character string in dictionary library including mobile device.
In one embodiment it is proposed that a kind of computer equipment, the computer equipment include memory, processor and It is stored in the computer program that can be run on the memory and on the processor, the processor executes the computer When performing the steps of the browser access H5 page of the user by mobile device when program, user agent's field information is obtained; According to user agent's field information, judge mobile device that the user uses whether be ios system mobile device;If The mobile device that the user uses is the mobile device of ios system, obtains the graphics processor letter of the mobile device Breath;According to the graphics processor information of the mobile device and user agent's field information, the mobile device is identified Model.
In one embodiment, following steps are also executed when processor executes computer-readable instruction: from user's generation The operating system version number for the mobile device that the user uses is obtained in reason field information;It is used according to the user The operating system version number of the mobile device, judge the mobile device that the user uses whether be ios system shifting Dynamic equipment.
In one embodiment, following steps are also executed when processor executes computer-readable instruction: by using H5 pages The painting canvas function in face enables the graphics processor and draws in memory, to obtain the model of the graphics processor.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
The device pixel ratio for the mobile device that the user uses is obtained from user agent's field information;
According to the model of the model of the graphics processor of the mobile device and pre-set graphics processor with it is right The corresponding relationship in the publication time for the mobile device answered, obtains the publication time of the mobile device;
That according to the publication time of the mobile device and the mobile device device pixel ratio and the ios that pre-establishes Device model mapping table obtains the model of the mobile device;It include the hair of mobile device in the ios device model mapping table The mapping relations in cloth time, device pixel ratio and model.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Acquire publication time, device pixel ratio and the corresponding model of the mobile device of all ios systems;
According to the publication time of the mobile device of each ios system, device pixel ratio and the corresponding model, That establishes the mobile device issues the mapping relations of time, device pixel ratio and the model, and is stored in the ios and sets Standby model mapping table.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Model character string is obtained from user agent's field information;
According to the android device model dictionary library and the model character string pre-established, the mobile device is obtained Model and manufacturer's information;It include model, manufacturer's information and the type of mobile device in the android device model dictionary library The corresponding relationship of sign character string.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Acquire the model and manufacturer's information and corresponding model character string of the mobile device of all Android systems;
According to the model of the mobile device of each Android system and manufacturer's information and the corresponding model word Symbol string, establishes the model of the mobile device, the corresponding relationship of manufacturer's information and the model character string, and is stored in described In android device model dictionary library.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, this is computer-readable When instruction is executed by one or more processors, so that one or more processors execute following steps: user is set by movement When standby browser accesses the H5 page, user agent's field information is obtained;According to user agent's field information, described in judgement The mobile device that user uses whether be ios system mobile device;If the mobile device that the user uses is ios system The mobile device of system obtains the graphics processor information of the mobile device;Believed according to the graphics processor of the mobile device Breath and user agent's field information, identify the model of the mobile device.
In one embodiment, following steps are also executed when processor executes computer-readable instruction: from user's generation The operating system version number for the mobile device that the user uses is obtained in reason field information;It is used according to the user The operating system version number of the mobile device, judge the mobile device that the user uses whether be ios system shifting Dynamic equipment.
In one embodiment, following steps are also executed when processor executes computer-readable instruction: by using H5 pages The painting canvas function in face enables the graphics processor and draws in memory, to obtain the model of the graphics processor.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
The device pixel ratio for the mobile device that the user uses is obtained from user agent's field information;
According to the model of the model of the graphics processor of the mobile device and pre-set graphics processor with it is right The corresponding relationship in the publication time for the mobile device answered, obtains the publication time of the mobile device;
That according to the publication time of the mobile device and the mobile device device pixel ratio and the ios that pre-establishes Device model mapping table obtains the model of the mobile device;It include the hair of mobile device in the ios device model mapping table The mapping relations in cloth time, device pixel ratio and model.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Acquire publication time, device pixel ratio and the corresponding model of the mobile device of all ios systems;
According to the publication time of the mobile device of each ios system, device pixel ratio and the corresponding model, That establishes the mobile device issues the mapping relations of time, device pixel ratio and the model, and is stored in the ios and sets Standby model mapping table.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Model character string is obtained from user agent's field information;
According to the android device model dictionary library and the model character string pre-established, the mobile device is obtained Model and manufacturer's information;It include model, manufacturer's information and the type of mobile device in the android device model dictionary library The corresponding relationship of sign character string.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Acquire the model and manufacturer's information and corresponding model character string of the mobile device of all Android systems;
According to the model of the mobile device of each Android system and manufacturer's information and the corresponding model word Symbol string, establishes the model of the mobile device, the corresponding relationship of manufacturer's information and the model character string, and is stored in described In android device model dictionary library.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note Recall body (RandomAccess Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of recognition methods of mobile device model, which is characterized in that the described method includes:
If detect the operation by the browser access target H5 page, user agent's field information is obtained;
According to user agent's field information, whether the operating system for judging to run the mobile device of the browser is ios System;
If the operating system for running the mobile device of the browser is ios system, the movement is obtained by the browser The graphics processor information of equipment;
According to the graphics processor information and user agent's field information, the model of the mobile device is identified.
2. the method according to claim 1, wherein judging to run institute according to user agent's field information Whether the operating system for stating the mobile device of browser is ios system, is specifically included:
The operating system version number for running the mobile device of the browser is obtained from user agent's field information;
According to the operating system version number for the mobile device for running the browser, judge to run the described of the browser Whether the operating system of mobile device is ios system.
3. the method according to claim 1, wherein obtaining the graphics process of mobile device by the browser Device information, specifically includes:
It by using the painting canvas function of the H5 page, enables the graphics processor and draws in memory, to obtain the figure The model of processor.
4. according to the method described in claim 3, it is characterized in that, according to the graphics processor information and the user agent Field information identifies the model of the mobile device, comprising:
The device pixel ratio for the mobile device that the user uses is obtained from user agent's field information;
According to the model of the model of the graphics processor and pre-set graphics processor and corresponding mobile device The corresponding relationship for issuing the time, obtains the publication time of the mobile device;
According to the device pixel ratio of the publication time of the mobile device and the mobile device and the ios equipment pre-established Model mapping table obtains the model of the mobile device;It include the publication year of mobile device in the ios device model mapping table The mapping relations of part, device pixel ratio and model.
5. according to the method described in claim 4, it is characterized in that, according to the publication time of the mobile device and the movement The device pixel ratio of equipment and the ios device model mapping table pre-established, before the model for obtaining the mobile device, institute State method further include:
Acquire publication time, device pixel ratio and the corresponding model of the mobile device of all ios systems;
According to the publication time of the mobile device of each ios system, device pixel ratio and the corresponding model, establish The mobile device issues the mapping relations of time, device pixel ratio and the model, and is stored in the ios equipment type Number mapping table.
6. the method according to claim 1, wherein the described method includes:
If the mobile device that the user uses is the mobile device of Android system, believe from user agent's field Model character string is obtained in breath;
According to the android device model dictionary library and the model character string pre-established, the type of the mobile device is obtained Number and manufacturer's information;It include model, manufacturer's information and the model word of mobile device in the android device model dictionary library Accord with the corresponding relationship of string.
7. according to the method described in claim 6, it is characterized in that, according to the model dictionary library and the model word pre-established Symbol is gone here and there, before the model and manufacturer's information that obtain the mobile device, the method also includes:
Acquire the model and manufacturer's information and corresponding model character string of the mobile device of all Android systems;
According to the model of the mobile device of each Android system and manufacturer's information and the corresponding model character string, The model of the mobile device, the corresponding relationship of manufacturer's information and the model character string are established, and is stored in described In android device model dictionary library.
8. a kind of identification device of mobile device model, which is characterized in that described device includes:
Field acquiring unit, if when for detecting the operation by the browser access target H5 page, obtaining user agent's word Segment information;
Judging unit, for judging the operation for running the mobile device of the browser according to user agent's field information Whether system is ios system;
Information acquisition unit is obtained if the operating system of the mobile device for running the browser by the browser The graphics processor information of the mobile device;
Recognition unit, for identifying that the movement is set according to the graphics processor information and user agent's field information Standby model.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the step of recognition methods of the mobile device model.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the mobile device type as described in any one of claims 1 to 7 claim Number recognition methods the step of.
CN201811371811.7A 2018-11-15 2018-11-15 Recognition methods, device, computer equipment and the storage medium of mobile device model Pending CN109656625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811371811.7A CN109656625A (en) 2018-11-15 2018-11-15 Recognition methods, device, computer equipment and the storage medium of mobile device model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811371811.7A CN109656625A (en) 2018-11-15 2018-11-15 Recognition methods, device, computer equipment and the storage medium of mobile device model

Publications (1)

Publication Number Publication Date
CN109656625A true CN109656625A (en) 2019-04-19

Family

ID=66111341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811371811.7A Pending CN109656625A (en) 2018-11-15 2018-11-15 Recognition methods, device, computer equipment and the storage medium of mobile device model

Country Status (1)

Country Link
CN (1) CN109656625A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953532A (en) * 2020-07-30 2020-11-17 中国工商银行股份有限公司 Equipment model identification method, device and equipment
CN112039729A (en) * 2020-08-28 2020-12-04 中移(杭州)信息技术有限公司 Device identification method, server, electronic device, and storage medium
CN112966731A (en) * 2021-03-01 2021-06-15 上海众言网络科技有限公司 Mobile phone identification method and device for network questionnaire survey

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970436A (en) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 Mobile terminal and method for setting proxy configuration information of browser
US20140007073A1 (en) * 2012-06-27 2014-01-02 James G. Cavalaris Firmware Update Discovery and Distribution
CN104717282A (en) * 2015-02-11 2015-06-17 工业和信息化部计算机与微电子发展研究中心(中国软件评测中心) Method, device and system for controlling intelligent terminals with Android operating system
CN105868240A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for self-adaptive display of page
US20160357573A1 (en) * 2015-06-03 2016-12-08 Ricoh Company, Ltd. Device management apparatus, device management system, and device management method
CN107688655A (en) * 2017-08-31 2018-02-13 努比亚技术有限公司 Application and identification method, equipment and computer-readable recording medium
US20180137072A1 (en) * 2016-11-16 2018-05-17 POWER 7 TECHNOLOGY CORP. (Shenzhen) Intelligent storage device signal transmission method
CN108449392A (en) * 2018-03-01 2018-08-24 深圳市创梦天地科技有限公司 Equipment identification device, method, electronic equipment and storage medium
CN108733423A (en) * 2018-05-16 2018-11-02 福建天晴数码有限公司 A kind of method and terminal of determining mobile device model

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140007073A1 (en) * 2012-06-27 2014-01-02 James G. Cavalaris Firmware Update Discovery and Distribution
CN102970436A (en) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 Mobile terminal and method for setting proxy configuration information of browser
CN104717282A (en) * 2015-02-11 2015-06-17 工业和信息化部计算机与微电子发展研究中心(中国软件评测中心) Method, device and system for controlling intelligent terminals with Android operating system
US20160357573A1 (en) * 2015-06-03 2016-12-08 Ricoh Company, Ltd. Device management apparatus, device management system, and device management method
CN105868240A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for self-adaptive display of page
US20180137072A1 (en) * 2016-11-16 2018-05-17 POWER 7 TECHNOLOGY CORP. (Shenzhen) Intelligent storage device signal transmission method
CN107688655A (en) * 2017-08-31 2018-02-13 努比亚技术有限公司 Application and identification method, equipment and computer-readable recording medium
CN108449392A (en) * 2018-03-01 2018-08-24 深圳市创梦天地科技有限公司 Equipment identification device, method, electronic equipment and storage medium
CN108733423A (en) * 2018-05-16 2018-11-02 福建天晴数码有限公司 A kind of method and terminal of determining mobile device model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
技术小黑屋: "如何从UA分辨出Android设备类型", pages 1, Retrieved from the Internet <URL:https://www.jb51.net/article/91669.htm> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953532A (en) * 2020-07-30 2020-11-17 中国工商银行股份有限公司 Equipment model identification method, device and equipment
CN111953532B (en) * 2020-07-30 2022-10-11 中国工商银行股份有限公司 Equipment model identification method, device and equipment
CN112039729A (en) * 2020-08-28 2020-12-04 中移(杭州)信息技术有限公司 Device identification method, server, electronic device, and storage medium
CN112966731A (en) * 2021-03-01 2021-06-15 上海众言网络科技有限公司 Mobile phone identification method and device for network questionnaire survey

Similar Documents

Publication Publication Date Title
CN105224623B (en) The training method and device of data model
CN107944025A (en) Information-pushing method and device
CN107066631A (en) Display methods, device and the electronic equipment of the page
CN109656625A (en) Recognition methods, device, computer equipment and the storage medium of mobile device model
WO2021159992A1 (en) Picture text processing method and apparatus, electronic device, and storage medium
CN108846091A (en) Information recommended method, device and equipment
CN109446095A (en) A kind of test method, device and the electronic equipment of page presentation speed
CN108536467B (en) Code positioning processing method and device, terminal equipment and storage medium
CN107203372A (en) Control shows method and device
CN107315833A (en) Method and apparatus of the retrieval with downloading based on application program
CN109918530A (en) Method and apparatus for pushing image
CN111506733B (en) Object portrait generation method and device, computer equipment and storage medium
CN110046571A (en) The method and apparatus at age for identification
CN110134656A (en) Page control method, device, computer readable storage medium and computer equipment
CN110069764A (en) List configuration method, device, computer equipment and storage medium
CN106371706A (en) Method and device for site selection of application shortcuts
CN109408748A (en) Method and apparatus for handling information
US10115012B1 (en) Capture object boundary jitter reduction
CN107357794A (en) Optimize the method and apparatus of the data store organisation of key value database
CN108573054A (en) Method and apparatus for pushed information
CN110334650A (en) Object detecting method, device, electronic equipment and storage medium
WO2022099871A1 (en) Handwriting data processing method and apparatus, and electronic device
CN105243138B (en) Information-pushing method and device
CN113190437B (en) Time sequence analysis method and device for wireless module, computer equipment and storage medium
WO2022099868A1 (en) Method and apparatus for analyzing writing behavior feature of smart pen, and electronic device

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