CN107091940B - Equipment identification method and device - Google Patents

Equipment identification method and device Download PDF

Info

Publication number
CN107091940B
CN107091940B CN201610985347.5A CN201610985347A CN107091940B CN 107091940 B CN107091940 B CN 107091940B CN 201610985347 A CN201610985347 A CN 201610985347A CN 107091940 B CN107091940 B CN 107091940B
Authority
CN
China
Prior art keywords
terminal
acceleration
determining
preset
numerical
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.)
Active
Application number
CN201610985347.5A
Other languages
Chinese (zh)
Other versions
CN107091940A (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.)
Beijing Xingxuan Technology Co Ltd
Original Assignee
Beijing Xingxuan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xingxuan Technology Co Ltd filed Critical Beijing Xingxuan Technology Co Ltd
Priority to CN201610985347.5A priority Critical patent/CN107091940B/en
Publication of CN107091940A publication Critical patent/CN107091940A/en
Application granted granted Critical
Publication of CN107091940B publication Critical patent/CN107091940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P15/00Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Abstract

The embodiment of the invention provides a device identification method and device. The system only comprising mobile terminals in the market is an android system or an ios system, and each mobile terminal in the market is internally provided with an acceleration sensor when leaving a factory, wherein the acceleration sensor is used for detecting the acceleration of the mobile terminal; the systems of the fixed terminals on the market are all Windows systems or MAC systems, but the fixed terminals cannot be provided with clients on the systems, and the fixed terminals are not provided with acceleration sensors in the factory. The user can enjoy the order preference only when ordering the order through the client installed in the mobile terminal. In order to avoid economic loss to a merchant, when a user orders a meal through a client on a terminal, whether the terminal is provided with an acceleration sensor needs to be judged; when the acceleration sensor is not installed on the terminal, the terminal is a fixed terminal and is not a mobile terminal. Therefore, the user can not enjoy the ordering preference, and the economic loss brought to the merchant is avoided.

Description

Equipment identification method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a device identification method and device.
Background
With the rapid development of technology, people often order meals online, wherein users can order meals online in two ways; for example, a user logs in an ordering webpage through a browser to order food, and the ordering webpage displays food to be sold by a plurality of merchants. Alternatively, an order APP (Application) is installed on the mobile terminal, and an order is placed on the order APP. However, the user can not enjoy the advantages of free reduction and the like by logging in the ordering webpage through the browser and can enjoy the advantages of free reduction and the like by ordering on the ordering APP installed on the mobile terminal.
However, the meal ordering APP can only be installed on the terminal of the android system or the terminal of the ios system, and currently, only the system of the mobile terminal is the android system or the ios system, so that the meal ordering APP can only be installed on the mobile terminal currently, that is, the user can only order the meal through the meal ordering APP on the mobile terminal.
When the user does not have the mobile terminal, the user cannot order through the ordering APP, and therefore the user cannot enjoy the preferential benefit, if the user has the fixed terminal, the system of the fixed terminal on the current market is a Windows system or an MAC system, and the ordering APP cannot be installed on the system of the fixed terminal. However, a user can create a virtual android running environment or a virtual ios running environment on the fixed terminal by using the virtual machine, install the meal ordering APP in the virtual running environment, and then order a meal by using the meal ordering APP, so that the user can enjoy benefits. Thereby causing a loss to the merchant.
Therefore, in order to avoid economic loss to the merchant, when the user orders a meal through the APP on the terminal, it is necessary to determine whether the terminal is a mobile terminal.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present invention provide an apparatus identification method and apparatus.
According to a first aspect of the embodiments of the present invention, there is provided an apparatus identification method, applied to a client, the method including:
detecting whether an acceleration sensor is installed on a terminal where the client is located;
responding to the fact that an acceleration sensor is not installed on the terminal, and determining that the terminal is not a mobile terminal;
further, the method further comprises:
and responding to the fact that an acceleration sensor is installed on the terminal, and determining that the terminal is a mobile terminal.
Further, the method further comprises:
responding to the fact that an acceleration sensor is installed on the terminal, and acquiring the acceleration value of the terminal, which is acquired by the acceleration sensor twice continuously;
judging whether the two collected acceleration values meet the preset value standard of the acceleration sensor or not;
responding to the fact that the two collected acceleration values do not accord with the preset value standard, and executing the step of determining that the terminal is not the mobile terminal;
and responding to the two collected acceleration values meeting the preset value standard, and executing the step of determining that the terminal is the mobile terminal.
Wherein, whether two acceleration numerical values of judging the collection accord with acceleration sensor's preset numerical standard includes:
calculating the absolute value of the difference between the two acquired acceleration values;
judging whether the absolute value is greater than or equal to the preset value;
responding to the fact that the absolute value is smaller than the preset value, and determining that the two acquired acceleration values do not accord with a preset value standard;
and responding to the condition that the absolute value is larger than or equal to the preset value, and determining that the two acquired acceleration values meet a preset value standard.
Further, the method further comprises:
responding to the fact that the absolute value is larger than or equal to the preset numerical value, and judging whether the numerical precision of the two acquired acceleration numerical values is larger than or equal to the preset numerical precision;
responding to the fact that the numerical precision of the two collected acceleration numerical values is smaller than the preset numerical precision, and executing the step of determining that the two collected acceleration numerical values do not accord with the preset numerical standard;
and in response to the fact that the numerical precision of the two collected acceleration numerical values is greater than or equal to the preset numerical precision, executing the step of determining that the two collected acceleration numerical values meet the preset numerical standard.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for identifying a device, which is applied to a client, the apparatus including:
the detection module is used for detecting whether an acceleration sensor is installed on a terminal where the client is located;
the first determining module is used for responding to the fact that the acceleration sensor is not installed on the terminal, and determining that the terminal is not a mobile terminal;
further, the apparatus further comprises:
and the second determining module is used for responding to the fact that the terminal is provided with the acceleration sensor and determining that the terminal is the mobile terminal.
Further, the apparatus further comprises:
the acquisition module is used for responding to the fact that an acceleration sensor is installed on the terminal and acquiring the acceleration value of the terminal acquired by the acceleration sensor twice continuously;
the first judgment module is used for judging whether the two acquired acceleration values meet the preset value standard of the acceleration sensor or not;
the first determining module is further used for responding to the fact that the two collected acceleration values do not accord with the preset value standard, and determining that the terminal is not a mobile terminal;
the second determining module is further configured to determine that the terminal is a mobile terminal in response to that the two acquired acceleration values meet the preset value standard.
Wherein, the first judging module comprises:
the calculating unit is used for calculating the absolute value of the difference value between the two acquired acceleration values;
a first judgment unit, configured to judge whether the absolute value is greater than or equal to the preset value;
the first determining unit is used for responding to the situation that the absolute value is smaller than the preset value, and determining that the two acquired acceleration values do not accord with a preset value standard;
and the second determining unit is used for responding to the condition that the absolute value is greater than or equal to the preset value, and determining that the two acquired acceleration values meet the preset value standard.
Further, the first determining module further includes:
the second judgment unit is used for responding to the fact that the absolute value is larger than or equal to the preset value, and judging whether the numerical precision of the two acquired acceleration numerical values is larger than or equal to the preset numerical precision;
the first determining unit is further used for responding to the fact that the numerical precision of the two collected acceleration numerical values is smaller than the preset numerical precision, and executing the step of determining that the two collected acceleration numerical values do not accord with the preset numerical standard;
the second determining unit is further used for responding to the fact that the numerical precision of the two collected acceleration numerical values is larger than or equal to the preset numerical precision, and executing the step of determining that the two collected acceleration numerical values meet the preset numerical standard.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the system only with mobile terminals in the market is an android system or an ios system, that is, only the mobile terminals can be provided with clients, each mobile terminal in the market is provided with an acceleration sensor in the factory, and the acceleration sensor is used for detecting the acceleration of the mobile terminal; the systems of the fixed terminals on the market are all Windows systems or MAC systems, but the fixed terminals cannot be provided with clients on the systems, and the fixed terminals are not provided with acceleration sensors in the factory. The user can enjoy the order preference only when ordering the order through the client installed in the mobile terminal.
Therefore, in order to avoid economic loss to the merchant, when the user orders the meal through the client on the terminal, whether the acceleration sensor is installed on the terminal needs to be judged; when the acceleration sensor is not installed on the terminal, the terminal is a fixed terminal and is not a mobile terminal. Therefore, the user can not enjoy the ordering preference, and the economic loss brought to the merchant is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the embodiments of the invention.
FIG. 1 is a flow chart illustrating a method of device identification according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of device identification according to an exemplary embodiment;
fig. 3 is a block diagram illustrating a device identification apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of embodiments of the invention, as detailed in the following claims.
Fig. 1 is a flow chart illustrating a device identification method, as shown in fig. 1, for use in a client according to an exemplary embodiment, the method including the following steps.
In step S101, it is detected whether an acceleration sensor is installed in the terminal where the client is located;
before the terminal leaves the factory, a technician may install a plurality of different hardware devices, such as a microphone, a sound, an acceleration sensor, a camera, and the like, in the terminal. In order to enable the client to know which hardware devices are installed on the terminal where the client is located, a technician sets a field corresponding to each hardware device in the terminal in advance, for a field of any one hardware device, parameters stored in the field are used for identifying whether the hardware device is installed in the terminal, and the same is true for fields of each other hardware device.
For example, for a field of an acceleration sensor, if the parameter stored in the field is a first parameter, it indicates that the acceleration sensor is installed in the terminal, and if the parameter stored in the field is a second parameter, it indicates that the acceleration sensor is not installed in the terminal. The first parameter may be "1", and the second parameter may be "0", etc., which is not limited in the present invention, and the first parameter and the second parameter may be different.
Therefore, in this step, the client may obtain the parameter stored in the field of the acceleration sensor from the terminal where the client is located, and determine whether the acceleration sensor is installed in the terminal where the client is located according to the parameter.
In response to the acceleration sensor not being installed on the terminal, in step S102, it is determined that the terminal is not a mobile terminal;
in the embodiment of the invention, each mobile terminal on the market is provided with an acceleration sensor when being delivered from a factory, and each fixed terminal on the market is not provided with an acceleration sensor when being delivered from a factory. Therefore, if the acceleration sensor is installed in the terminal, it is determined that the terminal is a mobile terminal, and if the acceleration sensor is not installed in the terminal, it is determined that the terminal is not a mobile terminal but a fixed terminal.
In response to the acceleration sensor being mounted on the terminal, in step S103, the terminal is determined to be a mobile terminal.
In the embodiment of the invention, the system only with mobile terminals in the market is an android system or an ios system, that is, only the mobile terminals can be provided with clients, each mobile terminal in the market is provided with an acceleration sensor in the factory, and the acceleration sensor is used for detecting the acceleration of the mobile terminal; the systems of the fixed terminals on the market are all Windows systems or MAC systems, but the fixed terminals cannot be provided with clients on the systems, and the fixed terminals are not provided with acceleration sensors in the factory. The user can enjoy the order preference only when ordering the order through the client installed in the mobile terminal.
Therefore, in order to avoid economic loss to the merchant, when the user submits an order on the terminal through the client, whether the terminal is provided with the acceleration sensor needs to be judged; when the acceleration sensor is not installed on the terminal, the terminal is a fixed terminal and is not a mobile terminal. Therefore, the user can not enjoy the order preference, and the economic loss brought to the merchant is avoided.
However, the applicant finds that when a lawbreaker has only a fixed terminal but no mobile terminal, sometimes the lawbreaker may install an acceleration sensor on the fixed terminal, create a virtual android operating environment or a virtual ios operating environment on the fixed terminal by using a virtual machine, install a client in the virtual operating environment, and input a submission operation for submitting an order in the client, and at this time, the client detects the acceleration sensor in the fixed terminal, so that the fixed terminal is determined as the mobile terminal by mistake, and thus, the order benefit can be enjoyed.
But actually, the lawless persons should not enjoy the order preference, and the economic loss is brought to the merchants.
Therefore, in order to avoid economic loss to the merchant caused by installing an acceleration sensor on the fixed terminal by a lawless person, it is required to avoid that the terminal is determined as the mobile terminal by mistake in the case that the terminal is originally a fixed terminal, referring to fig. 2, the method further includes:
in response to the acceleration sensor being installed on the terminal, in step S201, controlling the acceleration sensor to continuously acquire the acceleration value of the terminal twice;
in the embodiment of the present invention, for a mobile terminal, when a user holds the mobile terminal by hand and inputs a submitting operation for submitting an order in a client of the mobile terminal, in a normal case, because the user's hand generally cannot remain still due to the influence of physiological factors of a human body, the mobile terminal held by the user will generally be in a non-stationary state, and the non-stationary state of the mobile terminal may be: the position of the mobile terminal is unchanged, but the posture of the mobile terminal changes, for example, the direction opposite to the screen of the mobile terminal changes; or, the position of the mobile terminal is changed.
When a user holds the mobile terminal by hand and the posture of the mobile terminal is changed or the position of the mobile terminal is controlled to change, the mobile terminal is generally not enabled to move at a constant speed all the time, so that the acceleration of the mobile terminal is not 0 in the period of time; meanwhile, the acceleration of the mobile terminal is different at different times under the influence of physiological factors of a human body.
That is, for the mobile terminal, when the user holds the mobile terminal by hand and inputs a submitting operation for submitting an order in a client of the mobile terminal, the mobile terminal is in a non-stationary state, and in this period of time, each acceleration of the mobile terminal acquired by the acceleration sensor is not 0, and the accelerations at different times are different.
For the fixed terminal, in general, the position of the fixed terminal cannot be changed and the posture of the fixed terminal cannot be changed, so that even if a lawbreaker installs an acceleration sensor on the fixed terminal, the accelerations of the fixed terminal, which are collected by the acceleration sensor, are all 0, and the accelerations at different times are all the same.
Therefore, in the embodiment of the present invention, in response to the acceleration sensor being installed on the terminal, in order to determine whether the terminal is a mobile terminal or a fixed terminal, in this step, the acceleration sensor may be controlled to continuously acquire the acceleration value of the terminal twice.
In step S202, it is determined whether the two acquired acceleration values meet a preset value standard of the acceleration sensor;
therefore, the step can be implemented by the following process, including:
11) calculating the absolute value of the difference value between the two acquired acceleration values;
12) judging whether the absolute value is greater than or equal to a preset value;
in the embodiment of the present invention, the preset value is a value previously set in the terminal by a technician.
Before the mobile terminal leaves a factory, a technician can hold the mobile terminal by hand and change the posture of the mobile terminal or the position of the mobile terminal, then control an acceleration sensor in the mobile terminal to continuously acquire the acceleration of the mobile terminal twice, calculate the absolute value of the difference between the accelerations of the mobile terminal acquired twice, continuously control the acceleration sensor in the mobile terminal to continuously acquire the acceleration of the mobile terminal twice again, calculate the absolute value of the difference between the accelerations of the mobile terminal acquired twice again continuously, repeat the steps for many times continuously, obtain enough absolute values of the difference between the accelerations of the mobile terminal acquired twice continuously, and store the minimum absolute value of the absolute values in the mobile terminal as a preset value. Typically, the predetermined value is greater than 0.
13) Responding to the absolute value being smaller than a preset value, and determining that the two acquired acceleration values do not accord with a preset value standard;
in the embodiment of the invention, the preset value is the minimum absolute value in the absolute values of the differences of the accelerations of the mobile terminal which are collected for two times continuously enough. That is, in the embodiment of the present invention, in a general case, for the mobile terminal, when the mobile terminal is in a non-stationary state, an absolute value of a difference between accelerations of the terminal, which are acquired by the acceleration sensor twice consecutively, is generally greater than or equal to a preset value. For the fixed terminal, since the position of the fixed terminal cannot be changed and the posture of the fixed terminal cannot be changed, the accelerations of the fixed terminal acquired by the acceleration sensor are all 0, so that the absolute value of the difference between the accelerations of the fixed terminal acquired by the acceleration sensor twice in succession is equal to 0, that is, the absolute value of the difference between the accelerations of the fixed terminal acquired by the acceleration sensor twice in succession is smaller than the preset value.
Therefore, in response to the absolute value being less than the preset value, it may be determined that the two acquired acceleration values do not meet the preset value criteria; in response to the absolute value being greater than or equal to the preset value, it may be determined that the two acquired acceleration values meet the preset value criteria.
14) And responding to the absolute value being larger than or equal to a preset value, and determining that the two acquired acceleration values meet a preset value standard.
Further, in the embodiment of the present invention, if the lawless person knows the preset value set in the mobile terminal by the technician in advance. In order to enjoy the order preference in the case where there is only the fixed terminal without the mobile terminal and the acceleration sensor is installed in the fixed terminal, a lawbreaker may set an acceleration value generator in the acceleration sensor in the fixed terminal, the acceleration value generator being configured to send a random value as the acceleration of the fixed terminal, for example, when the acceleration value in the fixed terminal is controlled to collect the acceleration of the fixed terminal, the acceleration value generator will send the random value as the acceleration of the fixed terminal.
If the preset value of the difference value between the two random values continuously sent by the acceleration value generator is smaller than the preset value, the two collected acceleration values of the fixed terminal are determined to meet the preset value standard, and therefore the fixed terminal is determined as the mobile terminal by mistake, and the order preference can be enjoyed.
But actually, the lawless persons should not enjoy the order preference, and the economic loss is brought to the merchants.
Therefore, in order to avoid economic loss to a merchant due to a lawless person installing an acceleration value generator in an acceleration sensor installed in a fixed terminal, it is necessary to avoid erroneously determining the terminal as a mobile terminal in a case where the terminal is originally a fixed terminal.
In the embodiment of the invention, for the fixed terminal, the obtained acceleration value of the fixed terminal, which is acquired by the acceleration sensor twice continuously, is a random value sent by the acceleration value generator.
However, for the mobile terminal, when the mobile terminal is in a non-stationary state, the accuracy of the acceleration value of the mobile terminal, which is acquired by the real acceleration sensor, is generally greater than or equal to a preset value accuracy, for example, the preset value accuracy is a decimals or a ten-thousand decimals. For example, when the preset value precision is a decile, the acceleration value acquired by the acceleration sensor may be 2.123 or 0.9265.
When the lawless person does not know the preset accuracy threshold of the real acceleration sensor, the accuracy of the random value generator set by the lawless person to send out the random value may be smaller than the preset value accuracy, for example, the accuracy of the random value generator to send out the random value is smaller than a decile digit, such as 0.3 or 1.21, and the like.
Therefore, in response to the absolute value being greater than or equal to the preset value, it can be determined whether the numerical accuracies of the two acquired acceleration values are both greater than or equal to the preset numerical accuracy; responding to the fact that the numerical precision of the two collected acceleration numerical values is smaller than the preset numerical precision, and determining that the two collected acceleration numerical values do not accord with the preset numerical standard; and determining that the two acquired acceleration values meet a preset value standard in response to the fact that the numerical precision of the two acquired acceleration values is greater than or equal to the preset numerical precision.
In response to that the two collected acceleration values do not meet the preset value standard, executing step S102: determining that the terminal is not a mobile terminal;
in response to the two collected acceleration values meeting the preset value criteria, executing step S103: and determining the terminal to be the mobile terminal.
Fig. 3 is a block diagram illustrating a device identification apparatus according to an example embodiment. Referring to fig. 3, the apparatus includes:
the detection module 11 is used for detecting whether an acceleration sensor is installed on a terminal where the client is located;
a first determining module 12, configured to determine that the terminal is not a mobile terminal in response to that an acceleration sensor is not installed on the terminal;
further, the apparatus further comprises:
and the second determining module is used for responding to the fact that the terminal is provided with the acceleration sensor and determining that the terminal is the mobile terminal.
Further, the apparatus further comprises:
the acquisition module is used for responding to the fact that an acceleration sensor is installed on the terminal and acquiring the acceleration value of the terminal acquired by the acceleration sensor twice continuously;
the first judgment module is used for judging whether the two acquired acceleration values meet the preset value standard of the acceleration sensor or not;
the first determining module is further used for responding to the fact that the two collected acceleration values do not accord with the preset value standard, and determining that the terminal is not a mobile terminal;
the second determining module is further configured to determine that the terminal is a mobile terminal in response to that the two acquired acceleration values meet the preset value standard.
Wherein, the first judging module comprises:
the calculating unit is used for calculating the absolute value of the difference value between the two acquired acceleration values;
a first judgment unit, configured to judge whether the absolute value is greater than or equal to the preset value;
the first determining unit is used for responding to the situation that the absolute value is smaller than the preset value, and determining that the two acquired acceleration values do not accord with a preset value standard;
and the second determining unit is used for responding to the condition that the absolute value is greater than or equal to the preset value, and determining that the two acquired acceleration values meet the preset value standard.
Further, the first determining module further includes:
the second judgment unit is used for responding to the fact that the absolute value is larger than or equal to the preset value, and judging whether the numerical precision of the two acquired acceleration numerical values is larger than or equal to the preset numerical precision;
the first determining unit is further used for responding to the fact that the numerical precision of the two collected acceleration numerical values is smaller than the preset numerical precision, and executing the step of determining that the two collected acceleration numerical values do not accord with the preset numerical standard;
the second determining unit is further used for responding to the fact that the numerical precision of the two collected acceleration numerical values is larger than or equal to the preset numerical precision, and executing the step of determining that the two collected acceleration numerical values meet the preset numerical standard.
In the embodiment of the invention, the system only with mobile terminals in the market is an android system or an ios system, that is, only the mobile terminals can be provided with clients, each mobile terminal in the market is provided with an acceleration sensor in the factory, and the acceleration sensor is used for detecting the acceleration of the mobile terminal; the systems of the fixed terminals on the market are all Windows systems or MAC systems, but the fixed terminals cannot be provided with clients on the systems, and the fixed terminals are not provided with acceleration sensors in the factory. The user can enjoy the order preference only when ordering the order through the client installed in the mobile terminal.
Therefore, in order to avoid economic loss to the merchant, when the user orders the meal through the client on the terminal, whether the acceleration sensor is installed on the terminal needs to be judged; when the acceleration sensor is not installed on the terminal, the terminal is a fixed terminal and is not a mobile terminal. Therefore, the user can not enjoy the ordering preference, and the economic loss brought to the merchant is avoided.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of the invention following, in general, the principles of the embodiments of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the embodiments of the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the embodiments of the invention being indicated by the following claims.
It is to be understood that the embodiments of the present invention are not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of embodiments of the invention is limited only by the appended claims.

Claims (10)

1. A device identification method is applied to a client, and is characterized in that the method comprises the following steps:
detecting whether an acceleration sensor is installed on a terminal where the client is located;
responding to the fact that an acceleration sensor is installed on the terminal, and acquiring the acceleration value of the terminal, which is acquired by the acceleration sensor twice continuously;
calculating the absolute value of the difference between the two acquired acceleration values;
judging whether the absolute value is greater than or equal to a preset value;
responding to the fact that the absolute value is larger than or equal to the preset numerical value, and judging whether the numerical precision of the two acquired acceleration numerical values is larger than or equal to the preset numerical precision;
responding to the fact that the numerical precision of the two collected acceleration numerical values is smaller than the preset numerical precision, and determining that the two collected acceleration numerical values do not accord with the preset numerical standard;
and determining that the terminal is not a mobile terminal in response to the fact that the two collected acceleration values do not meet the preset value standard.
2. The method of claim 1, further comprising:
and responding to the fact that an acceleration sensor is installed on the terminal, and determining that the terminal is a mobile terminal.
3. The method of claim 1, further comprising:
and responding to the two collected acceleration values meeting the preset value standard, and executing the step of determining that the terminal is the mobile terminal.
4. The method of claim 1, further comprising:
and responding to the condition that the absolute value is larger than or equal to the preset value, and determining that the two acquired acceleration values meet a preset value standard.
5. The method of claim 1, further comprising:
and in response to the fact that the numerical precision of the two collected acceleration numerical values is greater than or equal to the preset numerical precision, executing the step of determining that the two collected acceleration numerical values meet the preset numerical standard.
6. An apparatus for identifying a device, applied to a client, the apparatus comprising:
the detection module is used for detecting whether an acceleration sensor is installed on a terminal where the client is located;
the acquisition module is used for responding to the fact that an acceleration sensor is installed on the terminal and acquiring the acceleration value of the terminal acquired by the acceleration sensor twice continuously;
the first judgment module is used for judging whether the two acquired acceleration values meet the preset value standard of the acceleration sensor or not;
the first determining module is used for responding to the fact that the two collected acceleration values do not accord with the preset value standard, and determining that the terminal is not a mobile terminal;
wherein, the first judging module comprises:
the calculating unit is used for calculating the absolute value of the difference value between the two acquired acceleration values;
a first judgment unit, configured to judge whether the absolute value is greater than or equal to the preset value;
the first determining unit is used for responding to the situation that the absolute value is smaller than the preset value, and determining that the two acquired acceleration values do not accord with a preset value standard;
the first determining unit is further used for responding to the fact that the numerical precision of the two collected acceleration numerical values is smaller than the preset numerical precision, and determining that the two collected acceleration numerical values do not accord with the preset numerical standard.
7. The apparatus of claim 6, further comprising:
and the second determining module is used for responding to the fact that the terminal is provided with the acceleration sensor and determining that the terminal is the mobile terminal.
8. The apparatus of claim 6, further comprising:
and the second determining module is used for responding to the fact that the two collected acceleration values accord with the preset value standard, and determining that the terminal is the mobile terminal.
9. The apparatus of claim 6, wherein the first determining module further comprises:
and the second determining unit is used for responding to the condition that the absolute value is greater than or equal to the preset value, and determining that the two acquired acceleration values meet the preset value standard.
10. The apparatus of claim 6, wherein the first determining module further comprises:
and the second determining unit is used for responding to the condition that the numerical precision of the two collected acceleration numerical values is greater than or equal to the preset numerical precision, and executing the step of determining that the two collected acceleration numerical values accord with the preset numerical standard.
CN201610985347.5A 2016-11-09 2016-11-09 Equipment identification method and device Active CN107091940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610985347.5A CN107091940B (en) 2016-11-09 2016-11-09 Equipment identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610985347.5A CN107091940B (en) 2016-11-09 2016-11-09 Equipment identification method and device

Publications (2)

Publication Number Publication Date
CN107091940A CN107091940A (en) 2017-08-25
CN107091940B true CN107091940B (en) 2020-03-06

Family

ID=59646030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610985347.5A Active CN107091940B (en) 2016-11-09 2016-11-09 Equipment identification method and device

Country Status (1)

Country Link
CN (1) CN107091940B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569183A (en) * 2018-06-06 2019-12-13 北京搜狗科技发展有限公司 Detection method, detection device, electronic equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006139537A (en) * 2004-11-12 2006-06-01 Sony Ericsson Mobilecommunications Japan Inc Portable terminal, and operation method for portable terminal
CN101210960A (en) * 2006-12-27 2008-07-02 朱晓江 Method for processing information of vehicle mounted GPS tracking positioning apparatus
CN102104723A (en) * 2009-12-22 2011-06-22 深圳富泰宏精密工业有限公司 Focusing function enabling system and method
WO2012026629A1 (en) * 2010-08-23 2012-03-01 Lg Electronics Inc. Device and method for measuring a moving distance
CN102565824A (en) * 2010-12-24 2012-07-11 深圳市赛格导航科技股份有限公司 GPS (Global Positioning System) equipment and power supply management method thereof
CN102938925A (en) * 2011-08-15 2013-02-20 张晨 Energy consumption control method and device and mobile terminal device
CN103034416B (en) * 2012-12-25 2015-09-09 珠海金山办公软件有限公司 A kind of by shaking the method making device screen display forward gravity direction to
CN103034423B (en) * 2012-12-25 2015-09-09 珠海金山办公软件有限公司 A kind of method being realized rotating in its screen display direction by shake equipment
CN103701991A (en) * 2013-12-20 2014-04-02 百度在线网络技术(北京)有限公司 Mobile terminal state recognition method and mobile terminal
CN103686695A (en) * 2013-12-30 2014-03-26 大唐移动通信设备有限公司 Terminal type judgement method and system
US20160066724A1 (en) * 2014-09-10 2016-03-10 Intel Corporation Device and method for monitoring consumer dining experience

Also Published As

Publication number Publication date
CN107091940A (en) 2017-08-25

Similar Documents

Publication Publication Date Title
US10425410B2 (en) Identity authentication method and apparatus, and user equipment
CN107609540B (en) Method and device for acquiring calibration parameters of fingerprint sensor and mobile terminal
US10922400B2 (en) User identification based on the motion of a device
CN109363620A (en) A kind of vision testing method, device, electronic equipment and computer storage media
US20160086045A1 (en) Commissioning hvac device with optical communication
WO2005066868A3 (en) Sleep and environment control method and system
KR20180042557A (en) Electronic device for monitoring a status of a machine and control method thereof
KR102356450B1 (en) Electronic device with connection and operation method thereof
US20200355925A1 (en) Rendering visual information regarding an apparatus
CN104808771A (en) Device and method for detecting continuous attaching of head-wearing intelligent device on human body
CN109002230A (en) Touch screen calibration method, apparatus and electronic equipment
CN107091940B (en) Equipment identification method and device
CN109764487A (en) A kind of control method and device of environment adjustment system
CN105335303B (en) A kind of information processing method and the first electronic equipment
WO2017134681A3 (en) Sleep monitoring and tracking system and method thereof
US20140173719A1 (en) Industrial manipulating system with multiple computers and industrial manipulating method
CN105518470B (en) Vibration sensor and sensitivity adjustment method thereof
CA2995829A1 (en) A system for and a method of measuring using a handheld electronic device
CN110220642A (en) A kind of jig degree of balance test method, device and storage medium
RU2719310C2 (en) System and method for measurement of path length using pocket electronic device
CN110763317A (en) Body weight measuring method and body weight scale
EP3399278A1 (en) An apparatus and method of operating the apparatus to provide contextual information for a device
Lee Detection of movement and shake information using android sensor
CN107101267B (en) Differentiating method, the device of air conditioner and air conditioner upper fan and lower blower
CN107094297B (en) Equipment identification method and 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
CB02 Change of applicant information

Address after: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant after: Beijing Xingxuan Technology Co., Ltd.

Address before: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant before: BEIJING XIAODU INFORMATION TECHNOLOGY CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant