CN109655141B - Weighing method and device for electronic equipment - Google Patents

Weighing method and device for electronic equipment Download PDF

Info

Publication number
CN109655141B
CN109655141B CN201811632579.8A CN201811632579A CN109655141B CN 109655141 B CN109655141 B CN 109655141B CN 201811632579 A CN201811632579 A CN 201811632579A CN 109655141 B CN109655141 B CN 109655141B
Authority
CN
China
Prior art keywords
electronic equipment
weighing
touch screen
surface area
electronic device
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
CN201811632579.8A
Other languages
Chinese (zh)
Other versions
CN109655141A (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.)
Mobvoi Innovation Technology Co Ltd
Original Assignee
Mobvoi Innovation 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 Mobvoi Innovation Technology Co Ltd filed Critical Mobvoi Innovation Technology Co Ltd
Priority to CN201811632579.8A priority Critical patent/CN109655141B/en
Publication of CN109655141A publication Critical patent/CN109655141A/en
Application granted granted Critical
Publication of CN109655141B publication Critical patent/CN109655141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/52Weighing apparatus combined with other objects, e.g. furniture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/21Combinations with auxiliary equipment, e.g. with clocks or memoranda pads

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a weighing method and a weighing device for electronic equipment, which relate to the technical field of data processing, and the method comprises the following steps: when a weighing instruction is received, acquiring a current capacitance value of the electronic equipment; acquiring a surface area value and a material coefficient of the electronic equipment touch screen, wherein the material coefficient is determined according to a material of the electronic equipment touch screen; and calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient. The object can be weighed through the touch screen of the electronic equipment, and the functions of the electronic equipment are enriched.

Description

Weighing method and device for electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a weighing method and a weighing device for electronic equipment.
Background
With the rapid development of science and technology, internet life has become popular, and therefore, intelligent devices are also continuously upgraded and optimized to provide more functions for users. For example, the user can perform video on demand, living payment, traffic route searching, online and offline payment shopping, online course learning and the like through the electronic equipment, almost all aspects of life such as clothes, food, live, walk and learning are covered, and the daily life becomes more convenient.
However, even in this case, the electronic device still lacks some functions that are important for the daily life of the user but are not supported by the electronic device, and cannot meet the demands of many users for diversification of the functions of the electronic device, which affects the user experience.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention provide a method and an apparatus for weighing an electronic device, and mainly aim to weigh an object by using a touch screen of the electronic device.
In order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides a method for weighing an electronic device, where the method includes:
when a weighing instruction is received, acquiring a current capacitance value of the electronic equipment;
acquiring a surface area value and a material coefficient of the electronic equipment touch screen, wherein the material coefficient is determined according to a material of the electronic equipment touch screen;
and calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient.
Optionally, the calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient includes:
determining a deformation coefficient of the electronic equipment touch screen caused by the object to be weighed according to the capacitance value, the first material coefficient and the surface area value;
and calculating the mass of the object to be weighed according to the deformation coefficient and the elastic modulus value.
Optionally, the obtaining a surface area value and a material coefficient of the touch screen of the electronic device includes:
obtaining model information of the electronic equipment;
and extracting a surface area value and the material coefficient corresponding to the touch screen of the electronic equipment from a preset database according to the model information, wherein the preset database stores the model information of each piece of electronic equipment and the mapping relation between the surface area information and the material coefficient.
Optionally, before the obtaining the current capacitance value of the electronic device when the weighing instruction is received, the method further includes:
outputting request information for confirming whether to start screen weighing;
when the weighing instruction is received, acquiring the current capacitance value of the electronic device includes:
and when response information for confirming the weighing of the opening screen is received and a weighing instruction is received, acquiring the current capacitance value of the electronic equipment.
Optionally, the method further includes:
acquiring identification information of the object to be weighed;
and storing the identification information and the quality.
In a second aspect, an embodiment of the present invention further provides a weighing apparatus for an electronic device, where the apparatus includes:
the electronic equipment comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the current capacitance value of the electronic equipment when a weighing instruction is received;
the acquisition unit is further used for acquiring a surface area value and a material coefficient of the electronic equipment touch screen, wherein the material coefficient is determined according to the material of the electronic equipment touch screen;
and the calculating unit is used for calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient.
Optionally, the material at least includes a first material coefficient and an elastic modulus value, and the calculating unit includes:
the determining module is used for determining a deformation coefficient of the electronic equipment touch screen caused by the object to be weighed according to the capacitance value, the first material coefficient and the surface area value;
and the calculating module is used for calculating the mass of the object to be weighed according to the deformation coefficient and the elastic modulus value.
Optionally, the obtaining unit includes:
the acquisition module is used for acquiring the model information of the electronic equipment;
and the extraction module is used for extracting the surface area value and the material coefficient corresponding to the electronic equipment touch screen from a preset database according to the model information, and the preset database stores the model information of each piece of electronic equipment and the mapping relation between the surface area information and the material coefficient.
Optionally, the apparatus further comprises: an output unit for outputting the output signal of the display unit,
the output unit is used for outputting request information for confirming whether to start screen weighing;
the obtaining unit is specifically configured to obtain a current capacitance value of the electronic device when receiving response information for confirming that the screen is opened for weighing and receiving a weighing instruction.
Optionally, the apparatus further comprises: a storage unit for storing the data of the storage unit,
the acquisition unit is further used for acquiring identification information of the object to be weighed;
and the storage unit is used for storing the identification information and the quality.
In order to achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, wherein when the program is executed, an apparatus on which the storage medium is located is controlled to execute the above-mentioned weighing method for an electronic apparatus.
In order to achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided a processor for executing a program, wherein the program executes the weighing method of the electronic device described above.
By means of the technical scheme, the weighing method and the weighing device of the electronic equipment provided by the embodiment of the invention have the advantages that the function of the electronic equipment in the prior art is limited, and the requirement that a user can weigh an object by using the electronic equipment cannot be met.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the embodiments of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a weighing method of an electronic device according to an embodiment of the present invention;
FIG. 2 is a flow chart of a weighing method of an electronic device according to another embodiment of the invention;
FIG. 3 is a block diagram of a weighing apparatus of an electronic device according to an embodiment of the present invention;
FIG. 4 is a block diagram of a weighing apparatus of another electronic device according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a weighing electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to enrich the performance of the electronic device to improve the user experience, an embodiment of the present invention provides a weighing method for an electronic device, as shown in fig. 1, the method includes:
101. and when a weighing instruction is received, acquiring the current capacitance value of the electronic equipment.
The current capacitance value is the capacitance value of the electronic equipment after an object to be weighed is placed on a touch screen of the electronic equipment stably. It should be noted that, for the frame structure of the electronic device, the system motherboard or the middle frame may be used as the ground terminal, when an object to be weighed is placed on the touch screen of the device, the object presses the touch screen to deform the touch screen, so that the distance between the touch screen and the ground terminal changes, and the capacitance value of the electronic device changes, therefore, when the electronic device is used for weighing, the current capacitance value of the electronic device is firstly obtained, so as to further determine the mass of the object to be weighed according to the current capacitance value. Specifically, the current capacitance value of this step may be obtained by a touch IC (Integrated Circuit), but is not limited thereto.
It should be noted that a specific implementation manner of the embodiment of the present invention may be a device configured in an electronic device for weighing, and a user may start a weighing function in the electronic device or in an application program of the electronic device, so that when the user starts the weighing function or places an object on a touch screen of the electronic device, a weighing instruction is generated, and then the weighing device triggers to acquire a current capacitance value of the electronic device after receiving the weighing instruction, so as to weigh the object to be weighed.
102. And acquiring a surface area value and a material coefficient of the touch screen of the electronic equipment.
Wherein the material coefficient is determined according to a material of the electronic device touch screen. The material coefficient may include a first material coefficient of the touch screen and an elastic modulus of the touch screen, and the specific first material coefficient may be obtained by fitting a large amount of experimental data to obtain first material coefficients corresponding to different touch screen materials, or may be obtained by calculating a preset function, which is not specifically limited in the embodiment of the present invention.
Further, the manner of obtaining the surface area value of the touch screen in this step may be to call a preset interface to obtain a screen size in the hardware information of the electronic device, or may be to configure a data table storing size information corresponding to the touch screen of each different type of electronic device in advance in a database, and may also store material coefficients corresponding to various different touch screen materials in the data table, so that the material coefficients may be directly extracted in this step, but is not limited thereto.
103. And calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient.
Specifically, the step may be, but is not limited to, determining a distance between the touch screen of the electronic device and the ground after the object to be weighed is placed on the touch screen according to the current capacitance value and the surface area value of the electronic device and the material coefficient, and then determining the weight of the object to be weighed according to the distance and combining with hooke's law, so as to obtain the mass of the object to be weighed.
The weighing method of the electronic equipment provided by the embodiment of the invention has the advantages that the function of the electronic equipment is limited in the prior art, and the requirement of a user for weighing an object by using the electronic equipment cannot be met.
Further, as a refinement and an extension of the embodiment shown in fig. 1, another weighing method for an electronic device is provided in the embodiment of the present invention, as shown in fig. 2.
201. And when a weighing instruction is received, acquiring the current capacitance value of the electronic equipment.
The conceptual explanation of the current capacitance value and the specific implementation of this step can refer to the corresponding description in step 101, and are not repeated herein.
It should be noted that, for the frame structure of the electronic device, the system motherboard or the middle frame may be used as the ground terminal, when an object to be weighed is placed on the touch screen of the device, the object presses the touch screen to deform the touch screen, so that the distance between the touch screen and the ground terminal changes, and the capacitance value of the electronic device changes, therefore, when the electronic device is used for weighing, the current capacitance value of the electronic device is firstly obtained, so as to further determine the mass of the object to be weighed according to the current capacitance value.
In addition, a specific implementation manner of the embodiment of the present invention may be a device configured in an electronic device for weighing, and a user may start a weighing function in the electronic device or in an application program of the electronic device, so that when the user starts the weighing function or places an object on a touch screen of the electronic device, a weighing instruction is generated, and then the weighing device triggers to acquire a current capacitance value of the electronic device after receiving the weighing instruction, thereby weighing the object to be weighed.
In order to further improve the performance of the electronic device, before step 201 in this embodiment of the present invention, the method may further include: and outputting request information for confirming whether to start screen weighing. In this case, the step 201 includes: and when response information for confirming the weighing of the opening screen is received and a weighing instruction is received, acquiring the current capacitance value of the electronic equipment. The request information may be text information, picture information, audio information, and the like. Specifically, when a user opens the electronic device or an application program in the electronic device, request information can be displayed in a display interface of the electronic device, so that the user can select whether to open the electronic device for weighing, and the current capacitance value of the electronic device is obtained only by triggering after receiving response information for confirming opening and receiving a weighing instruction, so that the problem of resource waste caused by obtaining the capacitance value and weighing only when an object exists on a touch screen of the device is solved, and the resource utilization rate is improved.
202. And acquiring the model information of the electronic equipment.
The model information may be, for example, Mate20, iPhone7plus, or the like, or may be a preset number set in advance for each type of mobile phone. Specifically, in this step, the model information of the electronic device may be obtained by calling a preset interface, or the model information may be model information manually input by a user in an application program, which is not specifically limited in this embodiment of the present invention.
203. And extracting a surface area value and the material coefficient corresponding to the touch screen of the electronic equipment from a preset database according to the model information.
The preset database stores mapping relations among model information, surface area information and material coefficients of each electronic device, the material at least comprises a first material coefficient and an elastic modulus value, the first material coefficient can be obtained by fitting a large amount of experimental data to obtain first material coefficients corresponding to different touch screen materials respectively, and can also be obtained by calculating a preset function.
For example, the data table stored in the preset database is shown in table 1 below:
TABLE 1
Model information Surface area information (inches) First material coefficient Value of elastic modulus (GPa)
1 5 ε1 71.7
2 6 ε2 69.9
…… …… …… ……
N S ε k
Therefore, after the model information of the electronic equipment is acquired in the steps, the surface area value, the first material coefficient and the elastic modulus value of the touch screen corresponding to the model information can be directly extracted from the data table, so that the data acquisition accuracy is ensured, the data acquisition efficiency is improved, and the weighing efficiency of the electronic equipment is improved.
204. And determining the deformation coefficient of the electronic equipment touch screen caused by the object to be weighed according to the capacitance value, the first material coefficient and the surface area value.
The deformation coefficient is the distance between the touch screen of the electronic equipment and the grounding end. Specifically, in this step, a conversion may be performed according to the capacitance value calculation formula C ═ S/d, so as to obtain the distance between the touch screen and the ground end after the object to be weighed is stably placed on the touch screen, that is, the deformation coefficient d in this step is ═ S/C.
205. And calculating the mass of the object to be weighed according to the deformation coefficient and the elastic modulus value.
Specifically, in this step, F may be the gravity of the object to be weighed, k is the elastic modulus coefficient corresponding to the touch screen material according to hooke 'S law, and d is the deformation coefficient calculated in the step 204, so that the gravity of the object to be weighed, F ═ k ∈ S/C, and then the mass of the object to be weighed, m ═ F/g, is obtained through hooke' S law conversion.
Further, the method may further include: and acquiring identification information of the object to be weighed and storing the identification information and the mass. The identification information of the object to be weighed can be input by a user, such as the user inputs 'water cup', the weighing device weighs 750 grams of the water cup, the weighing device can correspondingly store the identification information and the mass after the object is weighed, so that the user can directly check the object when needing to learn the mass of the object again, the weighing operation is not needed, and the use experience of the user is improved.
However, it should be noted that the specific implementation described in the foregoing application scenarios is only an example, and is not the only specific implementation of the embodiment of the present invention, and is only one of the optimized implementations of the method according to the embodiment of the present invention.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a weighing apparatus for an electronic device, which is used for implementing the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 3, the apparatus includes: an acquisition unit 31, a calculation unit 32, wherein
The obtaining unit 31 is configured to obtain a current capacitance value of the electronic device when the weighing instruction is received.
The obtaining unit 31 is further configured to obtain a surface area value and a material coefficient of the electronic device touch screen, where the material coefficient is determined according to a material of the electronic device touch screen.
A calculating unit 32, configured to calculate a mass of the object to be weighed according to the current capacitance value, the surface area value, and the material coefficient acquired by the acquiring unit 31.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention further provides another weighing apparatus for an electronic device, which is used for implementing the method shown in fig. 2. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 4, the apparatus includes: an acquisition unit 41, a calculation unit 42, wherein
The obtaining unit 41 is configured to obtain a current capacitance value of the electronic device when the weighing instruction is received.
The obtaining unit 41 is further configured to obtain a surface area value and a material coefficient of the electronic device touch screen, where the material coefficient is determined according to a material of the electronic device touch screen.
A calculating unit 42, configured to calculate a mass of the object to be weighed according to the current capacitance value, the surface area value, and the material coefficient acquired by the acquiring unit 41.
Further, the apparatus further comprises: and an output unit 43.
The output unit 43 is configured to output request information for confirming whether to start screen weighing.
The obtaining unit 41 is specifically configured to obtain a current capacitance value of the electronic device when receiving response information for confirming that the screen is turned on and receiving a weighing instruction.
Further, the apparatus further comprises: an extraction unit 44.
The obtaining unit 41 is further configured to obtain model information of the electronic device.
The extracting unit 44 is configured to extract the surface area value and the material coefficient corresponding to the electronic device touch screen from a preset database according to the model information.
Further, the apparatus further comprises: a determination unit 45.
The determining unit 45 is configured to determine a deformation coefficient of the electronic device touch screen caused by the object to be weighed according to the capacitance value, the first material coefficient, and the surface area value.
The calculating unit 42 is specifically configured to calculate the mass of the object to be weighed according to the deformation coefficient and the elastic modulus value.
Further, the apparatus further comprises: a holding unit 46.
The obtaining unit 41 is further configured to obtain identification information of the object to be weighed.
The storing unit 46 is configured to store the identification information and the quality.
The embodiment of the invention provides another weighing device of electronic equipment. The device comprises: an acquisition unit and a calculation unit. Compared with the prior art, the electronic equipment has the advantages that the electronic equipment has limited functions and cannot meet the requirement of a user for weighing an object by using the electronic equipment, the capacitance value of the electronic equipment can be obtained when a weighing instruction is received, then the surface area value and the material coefficient of the touch screen of the electronic equipment are obtained, and further the mass of the object to be weighed is calculated according to the capacitance value, the surface area value and the material coefficient of the touch screen, so that compared with the prior art, the electronic equipment can be used for weighing the object at any time, the functions of the electronic equipment are enriched, the requirement of the user for weighing the object by using the electronic equipment is met, and the user experience is improved.
Since the volume adjusting device described in this embodiment is a device capable of executing the weighing method of the electronic device in the embodiment of the present invention, based on the weighing method of the electronic device described in this embodiment of the present invention, a person skilled in the art can understand the specific implementation of the weighing device of the electronic device in this embodiment and various variations thereof, and therefore, how the weighing device of the electronic device implements the weighing method of the electronic device in the embodiment of the present invention is not described in detail herein. As long as the skilled person in the art implements the device used in the method for identifying the user identity in the embodiment of the present invention, the device belongs to the scope of the present application.
An embodiment of the present invention provides an electronic device, as shown in fig. 5, including: at least one processor (processor) 51; and at least one memory (memory)52, a bus 53 connected to the processor 51; wherein the content of the first and second substances,
the processor 51 and the memory 52 complete mutual communication through the bus 53;
the processor 51 is used for calling program instructions in the memory 52 to execute the steps in the above method embodiments.
The processor 51 includes a kernel, and the kernel calls a corresponding program unit from a memory. The kernel can be set to be one or more than one, and the functions of the electronic equipment are enriched by adjusting the kernel parameters.
The memory 52 may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
An embodiment of the present invention further provides a computer program product, which, when executed on a data processing apparatus, is adapted to execute a program that initializes the following method steps: when a weighing instruction is received, acquiring a current capacitance value of the electronic equipment; acquiring a surface area value and a material coefficient of the electronic equipment touch screen, wherein the material coefficient is determined according to a material of the electronic equipment touch screen; and calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient.
Further, the calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient includes:
determining a deformation coefficient of the electronic equipment touch screen caused by the object to be weighed according to the capacitance value, the first material coefficient and the surface area value;
and calculating the mass of the object to be weighed according to the deformation coefficient and the elastic modulus value.
Further, the acquiring the surface area value and the material coefficient of the touch screen of the electronic device includes:
obtaining model information of the electronic equipment;
and extracting a surface area value and the material coefficient corresponding to the touch screen of the electronic equipment from a preset database according to the model information, wherein the preset database stores the model information of each piece of electronic equipment and the mapping relation between the surface area information and the material coefficient.
Further, before the current capacitance value of the electronic device is obtained when the weighing instruction is received, the method further includes:
outputting request information for confirming whether to start screen weighing;
when the weighing instruction is received, acquiring the current capacitance value of the electronic device includes:
and when response information for confirming the weighing of the opening screen is received and a weighing instruction is received, acquiring the current capacitance value of the electronic equipment.
Further, the method further comprises:
and acquiring identification information of the object to be weighed and storing the identification information and the mass.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (9)

1. A method of weighing an electronic device, the method comprising:
when a weighing instruction is received, acquiring a current capacitance value of the electronic equipment;
acquiring a surface area value and a material coefficient of the electronic equipment touch screen, wherein the material coefficient is determined according to a material of the electronic equipment touch screen; the material coefficients at least comprise first material coefficients, the first material coefficients are respectively corresponding to different touch screen materials obtained through fitting experimental data, and the surface area value of the touch screen is obtained by calling a preset interface to obtain the screen size in the hardware information of the electronic equipment;
calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient;
before the obtaining of the current capacitance value of the electronic device when the weighing instruction is received, the method further includes:
outputting request information for confirming whether to start screen weighing;
when the weighing instruction is received, acquiring the current capacitance value of the electronic device includes:
and when response information for confirming the weighing of the opening screen is received and a weighing instruction is received, acquiring the current capacitance value of the electronic equipment.
2. The method of claim 1, wherein the material comprises at least an elastic modulus value, and wherein calculating the mass of the object to be weighed based on the current capacitance value, the surface area value, and the material coefficient comprises:
determining a deformation coefficient of the electronic equipment touch screen caused by the object to be weighed according to the capacitance value, the first material coefficient and the surface area value;
and calculating the mass of the object to be weighed according to the deformation coefficient and the elastic modulus value.
3. The method of claim 1, wherein obtaining the surface area value and the material coefficient of the electronic device touch screen comprises:
obtaining model information of the electronic equipment;
and extracting a surface area value and the material coefficient corresponding to the touch screen of the electronic equipment from a preset database according to the model information, wherein the preset database stores the model information of each piece of electronic equipment and the mapping relation between the surface area information and the material coefficient.
4. The method according to any one of claims 1 to 3, further comprising:
and acquiring identification information of the object to be weighed and storing the identification information and the mass.
5. A weighing apparatus for an electronic device, the apparatus comprising:
the electronic equipment comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the current capacitance value of the electronic equipment when a weighing instruction is received;
the acquisition unit is further used for acquiring a surface area value and a material coefficient of the electronic equipment touch screen, wherein the material coefficient is determined according to the material of the electronic equipment touch screen; the material coefficients at least comprise first material coefficients, the first material coefficients are respectively corresponding to different touch screen materials obtained through fitting experimental data, and the surface area value of the touch screen is obtained by calling a preset interface to obtain the screen size in the hardware information of the electronic equipment;
the calculating unit is used for calculating the mass of the object to be weighed according to the current capacitance value, the surface area value and the material coefficient;
the device further comprises: an output unit for outputting the output signal of the display unit,
the output unit is used for outputting request information for confirming whether to start screen weighing;
the obtaining unit is specifically configured to obtain a current capacitance value of the electronic device when receiving response information for confirming that the screen is opened for weighing and receiving a weighing instruction.
6. The apparatus of claim 5, wherein the material comprises at least an elastic modulus value, and the computing unit comprises:
the determining module is used for determining a deformation coefficient of the electronic equipment touch screen caused by the object to be weighed according to the capacitance value, the first material coefficient and the surface area value;
and the calculating module is used for calculating the mass of the object to be weighed according to the deformation coefficient and the elastic modulus value.
7. The apparatus of claim 5, wherein the obtaining unit comprises:
the acquisition module is used for acquiring the model information of the electronic equipment;
and the extraction module is used for extracting the surface area value and the material coefficient corresponding to the electronic equipment touch screen from a preset database according to the model information, and the preset database stores the model information of each piece of electronic equipment and the mapping relation between the surface area information and the material coefficient.
8. An electronic device, comprising:
at least one processor;
and at least one memory, bus connected with the processor; wherein the content of the first and second substances,
the processor and the memory complete mutual communication through the bus;
the processor is configured to call program instructions in the memory to perform a weighing method of the electronic device of any one of claims 1 to 4.
9. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of weighing the electronic device of any one of claims 1-4.
CN201811632579.8A 2018-12-29 2018-12-29 Weighing method and device for electronic equipment Active CN109655141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811632579.8A CN109655141B (en) 2018-12-29 2018-12-29 Weighing method and device for electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811632579.8A CN109655141B (en) 2018-12-29 2018-12-29 Weighing method and device for electronic equipment

Publications (2)

Publication Number Publication Date
CN109655141A CN109655141A (en) 2019-04-19
CN109655141B true CN109655141B (en) 2021-06-04

Family

ID=66117980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811632579.8A Active CN109655141B (en) 2018-12-29 2018-12-29 Weighing method and device for electronic equipment

Country Status (1)

Country Link
CN (1) CN109655141B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692680A (en) * 2009-06-22 2010-04-07 李秀 Portable electronic device capable of weighing
CN103500405A (en) * 2013-09-26 2014-01-08 北京奇虎科技有限公司 Method and device for identifying nominal model of target terminal
CN107091675A (en) * 2016-02-17 2017-08-25 纬创资通股份有限公司 Platform scale assembly
CN107743168A (en) * 2017-08-24 2018-02-27 珠海格力电器股份有限公司 Facility control program management method, device, storage medium and terminal

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2106360U (en) * 1991-03-26 1992-06-03 韦文斌 Variable electrode spacing type capacitance weighing transducer for electronic scales
CN101556182A (en) * 2008-04-11 2009-10-14 葛府治 Energy-saving electronic scale and realization method
CN102520627B (en) * 2011-12-21 2014-05-07 深圳和而泰智能控制股份有限公司 Handheld electronic equipment and control method thereof
CN102564560B (en) * 2011-12-30 2014-09-17 深圳市美新特机电设备有限公司 Weighing identification method and system
CN103424171A (en) * 2012-05-24 2013-12-04 昆达电脑科技(昆山)有限公司 Weighing electronic apparatus
WO2017004756A1 (en) * 2015-07-03 2017-01-12 华为技术有限公司 Touch terminal weighing method and touch terminal
CN106610313A (en) * 2015-10-23 2017-05-03 中兴通讯股份有限公司 Touch screen terminal and weight measurement method
CN105928600A (en) * 2016-04-25 2016-09-07 乐视控股(北京)有限公司 Weight measurement method and device
CN105928594A (en) * 2016-06-07 2016-09-07 Tcl移动通信科技(宁波)有限公司 Weight measuring device of mobile terminal and weight measuring method of weight measuring device
CN206132191U (en) * 2016-11-09 2017-04-26 哈尔滨师范大学 Tablet weighing device based on capacitance detector
CN206787696U (en) * 2017-05-26 2017-12-22 桂林电子科技大学 A kind of low-power consumption height and weight measurement apparatus
CN108829739A (en) * 2018-05-23 2018-11-16 出门问问信息科技有限公司 A kind of information-pushing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692680A (en) * 2009-06-22 2010-04-07 李秀 Portable electronic device capable of weighing
CN103500405A (en) * 2013-09-26 2014-01-08 北京奇虎科技有限公司 Method and device for identifying nominal model of target terminal
CN107091675A (en) * 2016-02-17 2017-08-25 纬创资通股份有限公司 Platform scale assembly
CN107743168A (en) * 2017-08-24 2018-02-27 珠海格力电器股份有限公司 Facility control program management method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN109655141A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
EP3702912A1 (en) Background application cleaning method and apparatus, and storage medium and electronic device
WO2019080662A1 (en) Information recommendation method, device and apparatus
CN109300059B (en) Dish recommending method and device
CN107643948B (en) Application program control method, device, medium and electronic equipment
CN107291840B (en) User attribute prediction model construction method and device
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN104572847B (en) A kind of method and device of photo name
CN113688310B (en) Content recommendation method, device, equipment and storage medium
CN114022257A (en) Order processing system, method and device, storage medium and electronic equipment
CN109655141B (en) Weighing method and device for electronic equipment
KR20170001792A (en) Personal customized contents service system and method
CN109429104B (en) Family member analysis method and related device
CN112417068B (en) Ordering address recommendation method and system and electronic equipment
CN114860238A (en) Page generation method and device and electronic equipment
CN113487376A (en) AI intelligent agricultural batch cloud platform processing system and method
CN110515946B (en) Data extraction method, device, equipment and computer readable storage medium
CN112447178A (en) Voiceprint retrieval method and device and electronic equipment
US11106737B2 (en) Method and apparatus for providing search recommendation information
CN113869544A (en) Reflow user prediction model establishing method and device, electronic equipment and storage medium
CN108536343B (en) Control display method and device, terminal and storage medium
CN111221446A (en) Menu display method, device and equipment
CN110069486B (en) Method and device for storing user-defined parameters
CN116994007B (en) Commodity texture detection processing method and device
CN110543623B (en) PDF document display method and device
CN110909149B (en) Data filtering 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
TA01 Transfer of patent application right

Effective date of registration: 20210429

Address after: 210038 8th floor, building D11, Hongfeng science and Technology Park, Nanjing Economic and Technological Development Zone, Jiangsu Province

Applicant after: New Technology Co.,Ltd.

Address before: 100094 Beijing Haidian District Zhongguancun Street 19 office A building 10 10 1001

Applicant before: Mobvoi Information Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant