Weighing method and device, terminal equipment and medium
By using vibration devices and acceleration sensors in terminal equipment to output weight information based on a preset calculation model, the problem of adding components in the existing technology is solved, and an efficient and low-cost weighing function is achieved.
Patent Information
- Application Number
- CN202310147865.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
Existing terminal equipment needs to add special components when realizing the weighing function, which increases the difficulty and cost of technical implementation. At the same time, it requires high component layout and affects the user experience.
By using the vibration device and acceleration sensor in the terminal equipment, the vibration device is controlled to generate vibration and acceleration information is obtained, and the weight information of the object to be weighed is output based on the preset calculation model, and the weighing function is realized only by relying on the original conventional components.
It realizes the weighing function without adding new components, improves user experience and reduces equipment costs.
Smart Images

Figure CN118533281A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terminal equipment, and in particular to a weighing method, device, terminal equipment and medium. Background Art
[0002] With the rapid development of electronic technology, terminal devices such as smart phones and tablet computers are widely used in daily life. Users can use terminal devices for calls, entertainment, learning and other activities, so users are becoming more and more dependent on terminal devices. At the same time, the functions of terminal devices are also increasing. In order to meet the needs of users to weigh items when shopping, terminal devices have added weighing functions to reduce the travel burden of users. There is no need to carry weighing equipment with them. The weight information of items can be obtained by using terminal devices. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a weighing method, an apparatus, a terminal device and a medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a weighing method is provided, which is applied to a terminal device. The weighing method includes:
[0005] When the weighing object is fixed in a preset area of the terminal device, controlling the vibration device to vibrate and obtaining vibration information;
[0006] Acquire acceleration information of the terminal device during vibration;
[0007] The weight information of the object to be weighed is output, wherein the weight information of the object to be weighed is determined based on a preset calculation model and the acceleration information, and a configuration parameter of the preset calculation model corresponds to the vibration information.
[0008] In some exemplary embodiments of the present disclosure, the weighing method includes:
[0009] Based on the received weighing instruction, obtaining an installation signal of a preset fixture;
[0010] When the installation signal is obtained, it indicates that the object to be weighed is fixed in the preset area of the terminal device.
[0011] In some exemplary embodiments of the present disclosure, the installation signal includes at least one of a pressure signal, a Bluetooth signal, and a near field communication signal.
[0012] In some exemplary embodiments of the present disclosure, the weighing method further includes:
[0013] receiving a selection instruction for a weight interval;
[0014] Based on the weight interval selected by the selection instruction, obtaining vibration information corresponding to the weight interval, wherein the weight interval is set corresponding to the vibration information, and the vibration information at least includes amplitude;
[0015] Based on the vibration information, the configuration parameter corresponding to the vibration information is obtained.
[0016] In some exemplary embodiments of the present disclosure, the weight interval is positively correlated with the amplitude.
[0017] In some exemplary embodiments of the present disclosure, the weighing method further includes:
[0018] When the acceleration information exceeds a preset threshold range, a prompt message is output to prompt that the object to be weighed exceeds a measurement interval.
[0019] According to a second aspect of an embodiment of the present disclosure, a weighing device is provided, which is applied to a terminal device, and the weighing device includes:
[0020] A control module, used to control the vibration device to generate vibration and obtain vibration information when the object to be weighed is fixed in a preset area of the terminal device;
[0021] An acquisition module, used to acquire acceleration information of the terminal device during vibration;
[0022] An output module is used to output the weight information of the object to be weighed, wherein the weight information of the object to be weighed is determined based on a preset calculation model and the acceleration information, and the configuration parameters of the preset calculation model correspond to the vibration information.
[0023] In some exemplary embodiments of the present disclosure, the weighing device further includes:
[0024] A receiving module, used for obtaining an installation signal of a preset fixture based on a received weighing instruction;
[0025] When the installation signal is obtained, it indicates that the object to be weighed is fixed in the preset area of the terminal device.
[0026] In some exemplary embodiments of the present disclosure, the installation signal includes at least one of a pressure signal, a Bluetooth signal, and a near field communication signal.
[0027] In some exemplary embodiments of the present disclosure, the receiving module is further configured to:
[0028] receiving a selection instruction for a weight interval;
[0029] Based on the weight interval selected by the selection instruction, obtaining vibration information corresponding to the weight interval, wherein the weight interval is set corresponding to the vibration information, and the vibration information at least includes amplitude;
[0030] Based on the vibration information, the configuration parameter corresponding to the vibration information is obtained.
[0031] According to a third aspect of an embodiment of the present disclosure, a terminal device is provided, the terminal device comprising:
[0032] Display screen;
[0033] Vibration device;
[0034] Accelerometer;
[0035] processor;
[0036] a memory for storing processor-executable instructions;
[0037] Wherein, the processor is configured to execute the executable instructions in the memory to implement the weighing method provided in the first aspect of the present disclosure.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the weighing method provided by the first aspect of the present disclosure is implemented.
[0039] The above method of the present invention has the following beneficial effects: the present invention fixes the object to be weighed on the terminal device, and the weighing function can be realized by relying only on the various existing conventional components in the terminal device, without adding new components. While realizing the weighing function and improving the user experience, it is also beneficial to reduce equipment costs.
[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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 invention.
[0042] Figure 1 is a flow chart of a weighing method according to an exemplary embodiment.
[0043] Figure 2 is a schematic diagram of a weighing method according to an exemplary embodiment.
[0044] Figure 3 is a flow chart of a weighing method according to an exemplary embodiment.
[0045] Figure 4 is a flow chart of a weighing method according to an exemplary embodiment.
[0046] Figure 5 is a block diagram of a weighing device according to an exemplary embodiment.
[0047] Figure 6 It is a block diagram of a terminal device according to an exemplary embodiment. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0049] With the rapid development of electronic technology, terminal devices such as smart phones and tablet computers are widely used in daily life. Users can use terminal devices for calls, entertainment, learning and other activities, so users are becoming more and more dependent on terminal devices. At the same time, the functions of terminal devices are also increasing. In order to meet the needs of users to weigh items when shopping, terminal devices have added weighing functions to reduce the travel burden of users. There is no need to carry weighing equipment with them. The weight information of items can be obtained by using terminal devices.
[0050] At present, the technical principle of the terminal device to realize the weighing function is to place the object on the capacitive touch screen of the terminal device. The capacitive touch screen will receive the corresponding force, and one electrode will be close to another electrode, so that the capacitance between the electrodes will change. The pressure can be detected by the change in capacitance between the electrodes, and the weight of the object to be measured is reflected by a dedicated pressure sensor. It can be seen that in order to realize the weighing function of the terminal device, the existing technology needs to add dedicated components, which not only increases the difficulty of technical implementation and the cost of the terminal device, but also increases the layout requirements for the components of the terminal device.
[0051] In order to solve the above problems, the present disclosure provides a weighing method, which is applied to a terminal device. The object to be weighed is fixed on the terminal device. After the vibration device is controlled to generate vibration, the acceleration information is obtained by using an acceleration sensor to output the weight information of the object to be weighed. The weighing function can be realized by relying only on the original various conventional components in the terminal device without adding new components. While realizing the weighing function and improving the user experience, it is also beneficial to reduce equipment costs.
[0052] The exemplary embodiment of the present disclosure provides a weighing method, which is applied to a terminal device having a vibration device and an acceleration sensor, and the terminal device can be a smart electronic device such as a mobile phone or a tablet computer. Figure 1 As shown, the weighing method shown in the present disclosure includes:
[0053] S101, when the object to be weighed is fixed in a preset area of the terminal device, controlling the vibration device to vibrate and obtaining vibration information;
[0054] S102, obtaining acceleration information of the terminal device during vibration;
[0055] S103, outputting weight information of the object to be weighed, wherein the weight information of the object to be weighed is determined based on a preset calculation model and acceleration information, and a configuration parameter of the preset calculation model corresponds to the vibration information.
[0056] In step S101, the terminal device will set a preset area for weighing before leaving the factory. The preset area can be set at the top, middle or bottom of one side of the terminal device display screen. The preset area will be set as close to the vibration device as possible to ensure that the vibration device can drive the object to be weighed to vibrate together. The object to be weighed is placed in the preset area of the terminal device. The object to be weighed can be fixed to the preset area of the terminal device using a clamp, a strap or the like to ensure that the object to be weighed is always in the preset area during the weighing process, so as to avoid the situation where the vibration information obtained is inaccurate due to the object to be weighed moving out of the preset area due to vibration.
[0057] The vibration device includes a vibration motor, and a suitable type of vibration motor can be selected according to the type and structure of the terminal device. The control device controls the vibration motor in the vibration device to start with a certain amplitude, so that the terminal device generates a relatively large swing, and drives the object to be weighed fixed in the preset area to vibrate, and then determines the weight of the object to be weighed according to the acceleration information collected by the acceleration sensor during the vibration process, so as to achieve the weighing effect.
[0058] like Figure 2 As shown, the vibration motor 23 is placed at the lower end of the terminal device 21, the preset area is located in the middle of the terminal device 21, the terminal device 21 is placed horizontally, and the object to be weighed 24 is placed in the preset area. When the vibration motor 23 is started, it can drive the terminal device 21 and the object to be weighed 24 to vibrate together.
[0059] In step S102, the acceleration sensor in the terminal device is a sensor that can measure acceleration. Its principle is Newton's second law, that is, A (acceleration) = F (inertial force) / M (mass). Acceleration sensors are usually composed of mass blocks, dampers, elastic elements, sensitive elements and conditioning circuits, including piezoelectric, piezoresistive, capacitive, servo and other types. Taking piezoelectric acceleration sensors as an example, when the terminal device vibrates, the force applied by the mass block on the piezoelectric element will change accordingly, and then the acceleration detected by the acceleration sensor will also change. Therefore, when the vibration motor starts and drives the terminal device and the object to be weighed to vibrate, the acceleration sensor can be used to obtain the acceleration information of the terminal device during the vibration process, and the vibration state of the object to be weighed can be reflected by the obtained acceleration information. Figure 2 As shown, the acceleration sensor 22 is placed at the upper end of the terminal device 21 . When the vibration motor 23 is started, it can drive the terminal device 21 and the object to be weighed 24 to vibrate together. The acceleration sensor 22 can obtain the acceleration information of the terminal device 21 .
[0060] In step S103, the control device of the terminal device always maintains a communication connection with the acceleration sensor to obtain the acceleration information of the acceleration sensor. The acceleration information is input into the preset calculation model to calculate the weight information of the object to be weighed. Before the terminal device leaves the factory, the weighing function of the terminal device will be calibrated and tested. According to the relationship between the acceleration information and the weight information, the configuration parameters are obtained to determine the preset calculation model. For example, two objects of known different weights can be used for calibration. The two objects are placed twice in the preset area of the terminal device, and the vibration motor is started. The acceleration sensor obtains the acceleration information. The weight is Y. 1 The acceleration information obtained by item A is X 1 , weight is Y 2 The acceleration information obtained by item B is X 2 , using Y 1 =aX 1 +b and Y 2 =aX 2+b two equations to calculate a set of configuration parameters a and b, then a calibrated preset calculation model Y = aX + b can be obtained, and the acceleration information X of the object to be weighed is input into the preset calculation model to obtain the weight information Y. At the same time, the configuration parameters a and b of the preset calculation model correspond to the vibration information of the vibration device, that is, the control device will select a set of configuration parameters a and b that match the starting amplitude of the vibration motor in the vibration device, so that the determined preset calculation model conforms to the actual situation of the object to be weighed and outputs accurate weight information. The control device of the terminal device will maintain a communication connection with the display screen, and display the weight information of the object to be weighed output by the preset calculation model on the display screen to inform the user of the true weight of the object to be weighed. Due to differences in the types and structures of terminal devices, there are restrictions on the weight of the object to be weighed. In order to ensure that the weighing function can be realized and accurate weight information can be output, a weighing range is set. For example, the weighing range set for a certain terminal device is 100g-2kg. When the weight of the object to be weighed is less than 100g, the terminal device cannot output accurate weight information; when the weight of the object to be weighed is greater than 2kg, the vibration motor will not be able to drive the object to be weighed to vibrate, and the weighing function cannot be realized.
[0061] In the present disclosure, the object to be weighed is fixed on the terminal device, and after the vibration device is controlled to generate vibration, the acceleration sensor is used to obtain acceleration information to output the weight information of the object to be weighed. The weighing function can be realized by relying only on the original various conventional components in the terminal device, without adding new components. While realizing the weighing function and improving the user experience, it is also beneficial to reduce equipment costs.
[0062] According to an exemplary embodiment, Figure 3 As shown, the weighing method in this embodiment includes:
[0063] S301, receiving a selection instruction for a weight interval;
[0064] S302, based on the weight interval selected by the selection instruction, obtaining vibration information corresponding to the weight interval, wherein the weight interval is set corresponding to the vibration information, and the vibration information includes at least amplitude;
[0065] S303, based on the vibration information, obtaining configuration parameters corresponding to the vibration information;
[0066] S304, obtaining an installation signal of a preset fixture based on the received weighing instruction;
[0067] S305, when the object to be weighed is fixed in a preset area of the terminal device, controlling the vibration device to vibrate and obtaining vibration information;
[0068] S306, obtaining acceleration information of the terminal device during vibration;
[0069] S307: outputting weight information of the object to be weighed, wherein the weight information of the object to be weighed is determined based on a preset calculation model and acceleration information, and a configuration parameter of the preset calculation model corresponds to the vibration information.
[0070] Among them, steps S305, S306 and S307 are the same as those in the above embodiment and will not be described again.
[0071] In step S301, when the user opens the page or application of the weighing function, a weight interval can be selected for the object to be weighed on the interface. The control device receives the selection instruction of the weight interval through the communication connection with the display screen, and obtains the weight interval selected by the user for the object to be weighed. Among them, the weight interval can be estimated and selected by the user based on personal experience, or it can be selected based on the calibration data on the object to be weighed. For example, the user bought two apples in the supermarket. In order to verify whether they are full of weight, the corresponding weight interval can be selected according to the weight of the apples provided by the merchant. The weight interval is divided according to the weighing range of the terminal device. For example, if the weighing range is 0g-2000g, it can be divided into four weight intervals of [0g, 500g], [501g, 1000g], [1001g, 1500g], and [1501, 2000g]. If the estimated weight of the object to be weighed is known to be 200g, the weight interval of [0g, 500g] can be selected.
[0072] In step S302, the control device determines the vibration information corresponding to the weight interval according to the weight interval selected by the selection instruction. Due to the different masses of the objects to be weighed, the precision requirements for the weighing function are also different, and in order to ensure that the vibration motor in the vibration device can drive the terminal device and the object to be weighed to vibrate, the weight interval and the vibration information need to be set accordingly, that is, the vibration information needs to be determined according to the selected weight interval. The vibration information at least includes the amplitude, so the weight interval is positively correlated with the amplitude. For example, the amplitudes corresponding to the four weight intervals of [0g, 500g], [501g, 1000g], [1001g, 1500g], and [1501, 2000g] are 2mm, 4mm, 6mm, and 8mm respectively. When the weight interval selected by the user for the object to be weighed is [501g, 1000g], the control device will determine the vibration information with an amplitude of 4mm, and the vibration motor in the vibration device will be started with this vibration information.
[0073] In step S303, the control device determines the configuration parameters a and b corresponding to the vibration information according to the vibration information, that is, determines a preset calculation model adapted to the vibration information so that the output weight information can better reflect the actual situation. For example, when the vibration information is that the amplitude of the vibration motor is 4mm, the configuration parameter selected by the control device is a 1 and b1 , then use Y = a 1 X+b 1 The preset calculation model outputs the weight information of the object to be weighed; when the vibration information is that the amplitude of the vibration motor is 8mm, the configuration parameter selected by the control device is a 2 and b 2 , then use Y = a 2 X+b 2 The preset calculation model outputs the weight information of the object to be weighed.
[0074] In step S304, after the user determines the weight range for the object to be weighed, the user can select a weighing instruction on the display screen. After receiving the weighing instruction, the control device will detect whether the installation signal of the preset clamp has been obtained. Only when the control device obtains the installation signal can it be determined that the object to be weighed has been fixed by the preset clamp in the preset area of the terminal device, thereby controlling the vibration motor to start vibrating.
[0075] Among them, the installation signal includes at least one of a pressure signal, a Bluetooth signal and a near-field communication signal. For example, a Bluetooth chip can be arranged on the preset clamp. When the preset clamp is used to fix the object to be weighed in the preset area, the preset clamp will use the Bluetooth chip to transmit the Bluetooth signal to the control device, and the control device will start the vibration device after obtaining the Bluetooth signal; similarly, a near-field communication chip can also be arranged on the preset clamp. The preset clamp uses the near-field communication chip to send a near-field communication signal, and the control device starts the vibration device after obtaining the near-field communication signal.
[0076] In addition, it is understandable that the object to be weighed can also be fixed without using a preset clamp. When the control device obtains the pressure signal of the object to be weighed, the vibration motor in the vibration device can be started to vibrate. However, if the preset calculation model of the terminal device is calibrated using a preset clamp to fix an object of known weight at the factory, then not using the preset clamp will cause the output weight information to be larger. If the preset calculation model of the terminal device is not calibrated using a preset clamp at the factory, then not using the preset clamp will have no effect on the final output weight information.
[0077] In the present disclosure, the control device selects adaptive vibration information according to the weight range determined by the user, so that the output weight information can truly reflect the weight of the object to be weighed, increase the accuracy of the results, meet the user's demand for the weighing function, and improve the user's experience.
[0078] According to an exemplary embodiment, Figure 4 As shown, the weighing method in this embodiment includes:
[0079] S401, receiving a selection instruction for a weight interval;
[0080] S402, based on the weight interval selected by the selection instruction, obtaining vibration information corresponding to the weight interval, wherein the weight interval is set corresponding to the vibration information, and the vibration information at least includes amplitude;
[0081] S403, based on the vibration information, obtaining configuration parameters corresponding to the vibration information;
[0082] S404, obtaining an installation signal of a preset fixture based on the received weighing instruction;
[0083] S405, when the object to be weighed is fixed in a preset area of the terminal device, controlling the vibration device to vibrate and obtaining vibration information;
[0084] S406, obtaining acceleration information of the terminal device during vibration;
[0085] S407: When the acceleration information exceeds the preset threshold range, output a prompt message to prompt that the object to be weighed exceeds the measurement interval.
[0086] Among them, steps S401-S406 are the same as those in the above embodiment and will not be described again.
[0087] In step S407, due to the limited structure and size of the terminal device, an object to be weighed that is too heavy will damage the terminal device, so the weight of the object to be weighed is limited. When the acceleration information obtained by the control device exceeds the preset threshold range, the vibration motor will stop vibrating, a pop-up window or interface switch will appear on the display screen, and a prompt message will be output to prompt the user that the object to be weighed exceeds the measurement range and cannot be accurately weighed. The user can choose to reduce the number of objects to be weighed at one time and divide the objects to be weighed into several small parts for weighing in batches. In this way, while realizing the weighing function, it can also protect the terminal device from damage and increase the service life of the terminal device.
[0088] The exemplary embodiment of the present disclosure provides a weighing device. Figure 5 As shown, a block diagram of a weighing device shown in the present disclosure.
[0089] The block diagram includes: a control module 51, an acquisition module 52, and an output module 53. The control module 51 is used to control the vibration device to generate vibration and obtain vibration information when the object to be weighed is fixed in a preset area of the terminal device; the acquisition module 52 is used to obtain the acceleration information of the terminal device during the vibration process; the output module 53 is used to output the weight information of the object to be weighed, wherein the weight information of the object to be weighed is determined based on a preset calculation model and acceleration information, and the configuration parameters of the preset calculation model correspond to the vibration information.
[0090] In an exemplary embodiment of the present disclosure, the weighing device further includes: a receiving module 50, for acquiring an installation signal of a preset fixture based on a received weighing instruction; when the installation signal is acquired, it indicates that the object to be weighed is fixed to a preset area of the terminal device.
[0091] In an exemplary embodiment of the present disclosure, the installation signal includes at least one of a pressure signal, a Bluetooth signal, and a near field communication signal.
[0092] In an exemplary embodiment of the present disclosure, the receiving module 50 is also used to: receive a selection instruction for a weight interval; obtain vibration information corresponding to the weight interval based on the weight interval selected by the selection instruction, wherein the weight interval is set corresponding to the vibration information, and the vibration information includes at least amplitude; based on the vibration information, obtain configuration parameters corresponding to the vibration information.
[0093] In an exemplary embodiment of the present disclosure, the weight interval is positively correlated with the amplitude.
[0094] In an exemplary embodiment of the present disclosure, the output module 53 is further configured to output a prompt message when the acceleration information exceeds a preset threshold range, so as to prompt that the object to be weighed exceeds the measurement interval.
[0095] Regarding the weighing device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0096] Figure 6 6 is a block diagram of a terminal device 600 according to an exemplary embodiment. For example, the terminal device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0097] Reference Figure 6 The terminal device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0098] The processing component 602 generally controls the overall operation of the terminal device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0099] The memory 604 is configured to store various types of data to support operations on the terminal device 600. Examples of such data include instructions for any application or method operating on the terminal device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0100] The power supply component 606 provides power to various components of the terminal device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 600.
[0101] The multimedia component 608 includes a screen that provides an output interface between the terminal device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the terminal device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0102] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the terminal device 600 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0103] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0104] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the terminal device 600. For example, the sensor assembly 614 can detect the open / closed state of the terminal device 600, the relative positioning of the components, such as the display and keypad of the terminal device 600, and the sensor assembly 614 can also detect the position change of the terminal device 600 or a component of the terminal device 600, the presence or absence of contact between the user and the terminal device 600, the orientation or acceleration / deceleration of the terminal device 600, and the temperature change of the terminal device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0105] The communication component 616 is configured to facilitate the communication between the terminal device 600 and other devices in a wired or wireless manner. The terminal device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0106] In an exemplary embodiment, the terminal device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned weighing method.
[0107] In an exemplary embodiment, the terminal device 600 includes a vibration device.
[0108] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of a terminal device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0109] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal device, enables a processing device of the terminal device to execute a weighing method provided by an exemplary embodiment of the present disclosure.
[0110] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0111] It should be understood that the present invention is not limited to the exact construction that has been 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 the present invention is limited only by the appended claims.
Claims
1. A weighing method, It is characterized in that Applied to terminal equipment, the weighing method includes: When the weighing object is fixed in a preset area of the terminal device, controlling the vibration device to vibrate and obtaining vibration information; Acquire acceleration information of the terminal device during vibration; The weight information of the object to be weighed is output, wherein the weight information of the object to be weighed is determined based on a preset calculation model and the acceleration information, and a configuration parameter of the preset calculation model corresponds to the vibration information.
2. The weighing method according to claim 1, It is characterized in that The weighing method comprises: Based on the received weighing instruction, obtaining an installation signal of a preset fixture; When the installation signal is obtained, it indicates that the object to be weighed is fixed in the preset area of the terminal device.
3. The weighing method according to claim 2, It is characterized in that The installation signal includes at least one of a pressure signal, a Bluetooth signal, and a near field communication signal.
4. The weighing method according to claim 1, It is characterized in that The weighing method further comprises: receiving a selection instruction for a weight interval; Based on the weight interval selected by the selection instruction, obtaining vibration information corresponding to the weight interval, wherein the weight interval is set corresponding to the vibration information, and the vibration information at least includes amplitude; Based on the vibration information, the configuration parameter corresponding to the vibration information is obtained.
5. The weighing method according to claim 4, It is characterized in that The weight interval is positively correlated with the amplitude.
6. The weighing method according to claim 1, It is characterized in that The weighing method further comprises: When the acceleration information exceeds a preset threshold range, a prompt message is output to prompt that the object to be weighed exceeds a measurement interval.
7. A weighing device, It is characterized in that Applied to terminal equipment, the weighing device comprises: A control module, used to control the vibration device to generate vibration and obtain vibration information when the object to be weighed is fixed in a preset area of the terminal device; An acquisition module, used to acquire acceleration information of the terminal device during vibration; An output module is used to output the weight information of the object to be weighed, wherein the weight information of the object to be weighed is determined based on a preset calculation model and the acceleration information, and the configuration parameters of the preset calculation model correspond to the vibration information.
8. The weighing device according to claim 7, It is characterized in that The weighing device also includes: A receiving module, used for obtaining an installation signal of a preset fixture based on a received weighing instruction; When the installation signal is obtained, it indicates that the object to be weighed is fixed in the preset area of the terminal device.
9. The weighing device according to claim 8, It is characterized in that The installation signal includes at least one of a pressure signal, a Bluetooth signal, and a near field communication signal.
10. The weighing device according to claim 7, It is characterized in that The receiving module is also used for: receiving a selection instruction for a weight interval; Based on the weight interval selected by the selection instruction, obtaining vibration information corresponding to the weight interval, wherein the weight interval is set corresponding to the vibration information, and the vibration information at least includes amplitude; Based on the vibration information, the configuration parameter corresponding to the vibration information is obtained.
11. A terminal device, It is characterized in that The terminal device comprises: Display screen; Vibration device; Accelerometer; processor; a memory for storing processor-executable instructions; The processor is configured to execute the executable instructions in the memory to implement the weighing method according to any one of claims 1 to 6.
12. A non-transitory computer-readable storage medium having executable instructions stored thereon, It is characterized in that When the executable instructions are executed by a processor, the weighing method according to any one of claims 1 to 6 is implemented.
