CN105737951B - The method and terminal that a kind of terminal is weighed - Google Patents
The method and terminal that a kind of terminal is weighed Download PDFInfo
- Publication number
- CN105737951B CN105737951B CN201610069830.9A CN201610069830A CN105737951B CN 105737951 B CN105737951 B CN 105737951B CN 201610069830 A CN201610069830 A CN 201610069830A CN 105737951 B CN105737951 B CN 105737951B
- Authority
- CN
- China
- Prior art keywords
- coin
- weight
- weighed
- terminal
- currency value
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000005303 weighing Methods 0.000 claims abstract description 29
- 230000006870 function Effects 0.000 claims description 27
- 238000012795 verification Methods 0.000 claims description 21
- 238000005259 measurement Methods 0.000 claims description 14
- 238000012937 correction Methods 0.000 claims description 13
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G15/00—Arrangements for check-weighing of materials dispensed into removable containers
- G01G15/02—Arrangements for check-weighing of materials dispensed into removable containers with provision for adding or removing a make-up quantity of material to obtain the desired net weight
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G15/00—Arrangements for check-weighing of materials dispensed into removable containers
- G01G15/02—Arrangements for check-weighing of materials dispensed into removable containers with provision for adding or removing a make-up quantity of material to obtain the desired net weight
- G01G2015/022—Arrangements for check-weighing of materials dispensed into removable containers with provision for adding or removing a make-up quantity of material to obtain the desired net weight using electrical, electromechanical or electronic means
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The embodiment of the invention discloses a kind of method that terminal is weighed, including:Start the function of weighing of terminal, and obtain the target coin currency value that user selectes;According to the corresponding relation of preset coin currency value and coin information, coin weight and coin dimensions corresponding to the target coin currency value are determined;Coin placement region is exported to the user interface of the terminal according to the coin dimensions;When detecting that the object to be weighed is placed on the coin placed in the coin placement region, the gross weight of the object to be weighed and the coin of the target coin currency value is obtained;The gross weight is subtracted into coin weight corresponding to the target coin currency value to obtain the weight of the object to be weighed, and the weight of the object to be weighed is exported to the user interface of the terminal.The embodiment of the invention also discloses a kind of terminal.Using the present invention, the applicability that terminal is weighed can be strengthened by having, the advantages of improving the flexibility that terminal is weighed.
Description
Technical field
The present invention relates to electronic technology field, more particularly to the method and terminal that a kind of terminal is weighed.
Background technology
Currently becoming increasingly popular with terminals such as mobile phones, cell-phone function is increasingly perfect, the daily life of mobile phone and user
It is increasingly close.User can also be used by surfing Internet with cell phone, reading, object for appreciation game or chat etc. using mobile phone as electronic scale.Touch
Touch screen with touch operation it is simple, convenient and natural the advantages that, and the good man-machine interaction experience that touch-screen provides obtains it
Extensive use is arrived.Mobile phone can realize the function of electronic scale by touch-screen.
In the prior art, the mobile phone with 3D touch controllable functions realizes the work(of electronic scale by the touch controllable function of its touch-screen
Can, but the function of weighing of existing mobile phone is only used for weighing for the object of particular category, and the weight of object be also
In one defined weight range, the scope of application is small, very flexible.
The content of the invention
The embodiment of the present invention provides the method and terminal that a kind of terminal is weighed, and can strengthen the applicability that terminal is weighed, and improves
The flexibility that terminal is weighed.
The embodiments of the invention provide a kind of method that terminal is weighed, and it may include:
Start the function of weighing of terminal, and obtain the target coin currency value that user selectes;
According to the corresponding relation of preset coin currency value and coin information, coin corresponding to the target coin currency value is determined
Weight and coin dimensions;
Coin placement region is exported to the user interface of the terminal according to the coin dimensions, will with instruction user
The coin of the target coin currency value is placed in the coin placement region, and the coin is used to carry object to be weighed;
When detecting that the object to be weighed is placed on the coin placed in the coin placement region, described in acquisition
The gross weight of object to be weighed and the coin of the target coin currency value;
The gross weight is subtracted into coin weight corresponding to the target coin currency value to obtain the object to be weighed
Weight, and the weight of the object to be weighed is exported to the user interface of the terminal.
Wherein, before the function of weighing for starting terminal, methods described also includes:
The coin information of a variety of coin currency values is obtained, wherein, the coin information includes:Coin weight and coin dimensions;
Each coin currency value and coin weight, the corresponding relation of coin dimensions are established, and the corresponding relation is stored
To the designated memory space of the terminal.
Wherein, the coin currency value includes:At least one of 1 yuan, 5 jiaos and 1 jiao;
The target coin currency value is any of described 1 yuan, 5 jiaos and 1 jiao.
Wherein, it is described according to the coin dimensions export coin placement region to the terminal user interface it
Afterwards, methods described also includes:
When detect be placed with coin in the coin placement region when, obtain the weight of the coin, and will be described hard
The weight of coin is compared with coin weight corresponding to the target coin currency value;
When the weight of the coin is identical with coin weight corresponding to the target coin currency value, output weigh verification into
The configured information of work(to the terminal user's display interface.
Wherein, the output is weighed after the successful configured information of verification to user's display interface of the terminal, described
Method also includes:
The initial weight registration of object to be weighed is exported to user's display interface of the terminal;
Wherein, the initial weight registration of the object to be weighed is the weight registration that the object to be weighed is space-time.
The embodiment of the present invention additionally provides a kind of terminal, and it may include:
Starting module, for starting the function of weighing of terminal, and obtain the target coin currency value that user selectes;
Determining module, for the corresponding relation according to preset coin currency value and coin information, determine the starting module
Coin weight and coin dimensions corresponding to the target coin currency value obtained;
Region indicating module, the user for exporting coin placement region to the terminal according to the coin dimensions operate
Interface, the coin of the target coin currency value is placed in the coin placement region with instruction user, the coin is used for
Carry object to be weighed;
Weight measurement module, for detecting that the object to be weighed is placed on what is placed in the coin placement region
When on coin, the gross weight of the object to be weighed and the coin of the target coin currency value is obtained;
Weight output module, the gross weight for the weight measurement module to be obtained subtract the target coin coin
Coin weight corresponding to value is exported the weight of the object to be weighed to described with obtaining the weight of the object to be weighed
The user interface of terminal.
Wherein, the terminal also includes:
Setup module, for obtaining the coin information of a variety of coin currency values, establish each coin currency value and coin weight,
The corresponding relation of coin dimensions, and the corresponding relation is stored to the designated memory space of the terminal;
Wherein, the coin information includes:Coin weight and coin dimensions.
Wherein, the coin currency value includes:At least one of 1 yuan, 5 jiaos and 1 jiao;
The target coin currency value is any of described 1 yuan, 5 jiaos and 1 jiao.
Wherein, the terminal also includes:
Correction verification module, for when detect be placed with coin in the coin placement region when, obtain the weight of the coin
Amount, and the weight of the coin is compared with coin weight corresponding to the target coin currency value, when the weight of the coin
When amount is identical with coin weight corresponding to the target coin currency value, output, which is weighed, verifies successful configured information to the terminal
User's display interface.
Wherein, the correction verification module is additionally operable to:
After user display interface of the successful configured information of verification to the terminal is weighed in output, thing to be weighed is exported
The initial weight registration of body to the terminal user's display interface;
Wherein, the initial weight registration of the object to be weighed is the weight registration that the object to be weighed is space-time.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention can be after the function of weighing of terminal be started, and the target coin currency value selected according to user determines
Coin weight and coin dimensions corresponding to target coin currency value, and then coin can be exported according to the coin dimensions of target coin currency value
On placement region to the user interface of terminal, to instruction user by the target coin currency value for carrying object to be weighed
Coin be placed in above-mentioned coin placement region.When object to be weighed is placed on above-mentioned coin, object and hard can be obtained
The gross weight of coin, and then the weight of object to be weighed is obtained according to the weight of above-mentioned gross mass removing coin and exported to terminal
User interface, so that user consults, the applicability that terminal is weighed is enhanced, improves the flexibility that terminal is weighed.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the schematic flow sheet for the method that terminal provided in an embodiment of the present invention is weighed;
Fig. 2 is the schematic diagram of the coin placement region on the user interface of terminal provided in an embodiment of the present invention;
Fig. 3 is a structural representation of terminal provided in an embodiment of the present invention;
Fig. 4 is another structural representation of terminal provided in an embodiment of the present invention;
Fig. 5 is another structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
In the specific implementation, the terminal described in the embodiment of the present invention is concretely:Mobile phone, tablet personal computer, notebook electricity
Brain, wearable device or walkman etc., are not limited herein.Below will be by taking mobile phone as an example, to provided in an embodiment of the present invention
The method and terminal that terminal is weighed are described.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet for the method that terminal provided in an embodiment of the present invention is weighed.The present invention is implemented
The method that the terminal that example provides is weighed, including step:
S101, starts the function of weighing of terminal, and obtains the target coin currency value that user selectes.
In some feasible embodiments, more money coins can be used to carry object to be weighed in mobile phone, different styles
The value of money of coin is different, and size also differs.Various sizes of coin can be used for the object of carrying different volumes size, Jin Erke
So that the scope of application of the function of weighing of terminal is wider, washability is higher.In the specific implementation, mobile phone can pre-set more money coins
Coin currency value and coin information corresponding relation, and then corresponding coin can be determined according to the target coin currency value that user selectes
Information.
In the specific implementation, mobile phone can obtain the coin information of a variety of coin currency values, i.e. the coin letter of different coin currency values
Breath.Wherein, above-mentioned coin information may include:Coin weight and coin dimensions, i.e. the coin of each coin currency value is corresponding one
Coin weight and coin dimensions.After mobile phone obtains the coin information of each coin currency value, then each coin can be established
Value of money and coin weight, the corresponding relation of coin dimensions, and above-mentioned corresponding relation is stored to the designated memory space of mobile phone.Its
In, the internal memory of above-mentioned designated memory space concretely mobile phone, the either outer extension memory such as SD card or cloud storage space etc.,
It is not limited herein.Above-mentioned coin currency value includes:1 yuan, 5 jiaos and 1 jiao etc., above-mentioned target coin currency value concretely above-mentioned 1
Any of member, 5 jiaos and 1 jiao, are not limited herein.Such as table 1, table 1 is the preset coin currency value of mobile phone and coin information
Mapping table:
Table 1
Coin currency value | 1 yuan | 5 jiaos | 1 jiao |
Coin weight | 6.10 gram | 3.80 gram | 3.20 gram |
Coin dimensions | 25 millimeters | 20.5 millimeters | 19 millimeters |
Wherein, the numerical value of coin information corresponding to the various coin currency values shown in above-mentioned table 1 is only citing, specifically can root
Set according to measurement result in practical application, be not limited herein.
In some feasible embodiments, mobile phone is prefixed pair of the coin currency value and coin information shown in above-mentioned table 1
After should being related to, it is necessary to using mobile phone function of weighing when, then can start the function of weighing of mobile phone.Start the work(of weighing of mobile phone
After energy, then the user interface of the option information of exportable above-mentioned a variety of coin currency values to mobile phone, so that cellphone subscriber selects
Select target coin currency value.Mobile phone can obtain the target coin currency value that user selectes, such as 1 yuan, and then can determine that corresponding coin
Information, including the information such as the weight of 1 yuan of coin and size, to enter the working condition of mobile phone function of weighing.
S102, according to the corresponding relation of preset coin currency value and coin information, determine that the target coin currency value is corresponding
Coin weight and coin dimensions.
In some feasible embodiments, mobile phone is prefixed after coin currency value and the corresponding relation of coin information, when
When mobile phone acquires the target coin currency value that user selectes, it can be inquired about according to above-mentioned target coin currency value in above-mentioned corresponding relation
Comprising various coin currency values, and then coin weight corresponding to above-mentioned target coin currency value can be determined by the matching of coin currency value
And coin dimensions.For example, being 1 yuan when mobile phone acquires the target coin currency value that user selectes, then can be enumerated from above-mentioned table 1
Corresponding relation in search 25 millimeters of 6.10 grams of coin weight and coin dimensions that coin currency value is 1 yuan.Wherein, above-mentioned coin chi
The diameter of very little concretely coin, is not limited herein.
S103, coin placement region is exported to the user interface of the terminal according to the coin dimensions, with instruction
The coin of the target coin currency value is placed in the coin placement region by user.
In some feasible embodiments, mobile phone determines coin weight corresponding to target coin currency value that user selectes
After coin dimensions, then coin placement region can be exported according to above-mentioned coin dimensions to the user interface of mobile phone.Such as figure
2, Fig. 2 be the schematic diagram of the coin placement region on the user interface of mobile phone provided in an embodiment of the present invention, and different is hard
Coin size corresponds to different size of coin placement region.Wherein, mobile phone exports the coin placement region to user interface
It may include:1 yuan coin placement region (i.e. coin currency value be 1 yuan of coin placement region), 5 jiaos of coin placement region and
1 jiao coin placement region etc..Specifically, the user interface of mobile phone described in the embodiment of the present invention concretely hand
Touch-screen or touch screen of machine etc., are not limited herein.Mobile phone exports coin placement region to mobile phone according to coin dimensions
User interface, it can be used to instruction user and the coin of target coin currency value be placed in above-mentioned coin placement region.Wherein,
Above-mentioned coin is used to carry object to be weighed.That is, object to be weighed, which can be placed on above-mentioned coin, is weighed.
In some feasible embodiments, the coin of target coin currency value is placed on above-mentioned coin placement region by user
Afterwards, mobile phone can then verify to the coin of placement, it is determined that place coin whether with indicated on user interface it is hard
Coin-kind corresponding to coin placement region is identical.When mobile phone, which detects, is placed with coin on its user interface, mobile phone can
Obtain the weight of the coin, and by the weight of coin coin weight corresponding with the target coin currency value that above-mentioned inquiry obtains
Amount is compared.When mobile phone verifies to obtain the weight coin weight corresponding with the target coin currency value that above-mentioned inquiry obtains of coin
When identical, then it can determine that and verify successfully, now exportable weigh of mobile phone verifies successful configured information to its user's display interface.
Further, after mobile phone determines that coin verifies successfully, the initial weight registration of also exportable object to be weighed to user is shown
Interface, wherein, the initial weight registration of above-mentioned object to be weighed is the weight registration that object to be weighed is space-time.That is, user goes back
When object to be weighed is not placed on coin, mobile phone can export an initial weight registration, such as 0g etc. first.When user will
When object to be weighed is placed on above-mentioned coin, mobile phone then can update above-mentioned initial weight according to the weight of object to be weighed and show
Number, above-mentioned initial weight registration is changed to the weight of object to be weighed.
S104, when detecting that the object to be weighed is placed on the coin placed in the coin placement region, obtain
Take the gross weight of the object to be weighed and the coin of the target coin currency value.
In some feasible embodiments, after mobile phone verifies successfully to coin, then the weight of coin can be supervised
Whether control, object to be weighed is placed with to detect on coin.When mobile phone detects that change by a relatively large margin occurs for the weight of coin
When, then it can determine that needing weighting objects is placed on the coin placed in above-mentioned coin placement region, and then can carry out to be weighed
Object is weighed.In the specific implementation, it is placed on the coin placed in coin placement region when mobile phone detects to obtain object to be weighed
When upper, mobile phone can obtain the gross weight of the coin of object to be weighed and target coin currency value, and then can combine above-mentioned inquire
Coin weight determines the weight of object to be weighed corresponding to target coin currency value.
S105, the gross weight is subtracted into coin weight corresponding to the target coin currency value to obtain the thing to be weighed
The weight of body, and the weight of the object to be weighed is exported to the user interface of the terminal.
In some feasible embodiments, mobile phone acquires the total of object to be weighed and the coin of target coin currency value
After quality, it is to be weighed to obtain that above-mentioned gross mass can be subtracted to coin weight corresponding to the above-mentioned target coin currency value inquired
The weight of object.After handset processes obtain the weight of object to be weighed, then the weight of above-mentioned object to be weighed can be exported to
On the user interface of mobile phone.Specifically, mobile phone can be updated on above-mentioned user interface according to the weight of object to be weighed
Initial weight registration, above-mentioned initial weight registration is changed to the weight of object to be weighed.For example, treated when mobile phone acquires
When the gross weight of weighting objects and coin is 10.00 grams, the weight of the target coin currency value (1 yuan of coin) arrived due to mobile phones enquiring
For 6.10 grams, now mobile phone can determine that the weight of object to be weighed is 10.00-6.10=3.90 grams, and then can wait to claim by above-mentioned
(3.90 grams) of the weight of weight body is exported to user's display interface of mobile phone.
In embodiments of the present invention, mobile phone can preset coin currency value and the corresponding relation of coin information, and will be above-mentioned
Corresponding relation is stored to designated memory space.After function of weighing starts, mobile phone then can be according to the target coin that user selectes
Value of money determines coin weight and coin dimensions corresponding to target coin currency value, and then can be according to the coin dimensions of target coin currency value
Export on coin placement region to the user interface of mobile phone, to instruction user by the target for carrying object to be weighed
The coin of coin currency value is placed in above-mentioned coin placement region.When object to be weighed is placed on above-mentioned coin, mobile phone can
The gross weight of object and coin is obtained, and then the weight of object to be weighed is obtained simultaneously according to the weight of above-mentioned gross mass removing coin
Export to the user interface of terminal, so that user consults, enhance the applicability of the function of weighing of mobile phone, improve mobile phone
The flexibility weighed.
Referring to Fig. 3, Fig. 3 is the structural representation of terminal provided in an embodiment of the present invention.Described in the embodiment of the present invention
Terminal, including:
Starting module 10, for starting the function of weighing of terminal, and obtain the target coin currency value that user selectes.
Determining module 20, for the corresponding relation according to preset coin currency value and coin information, determine the startup mould
Coin weight and coin dimensions corresponding to the target coin currency value that block obtains.
Region indicating module 30, the user for exporting coin placement region to the terminal according to the coin dimensions grasp
Make interface, the coin of the target coin currency value is placed in the coin placement region with instruction user, the coin is used
In carrying object to be weighed.
Weight measurement module 40, for placing detecting the object to be weighed to be placed in the coin placement region
Coin on when, obtain the gross weight of the object to be weighed and the coin of the target coin currency value.
Weight output module 50, the gross weight for the weight measurement module to be obtained subtract the target coin
Coin weight corresponding to value of money is exported the weight of the object to be weighed to institute with obtaining the weight of the object to be weighed
State the user interface of terminal.
In some feasible embodiments, referring to Fig. 4, Fig. 4 is another structure of terminal provided in an embodiment of the present invention
Schematic diagram.Terminal described in the embodiment of the present invention, in addition to:
Setup module 60, for obtaining the coin information of a variety of coin currency values, establish each coin currency value and coin weight
Amount, the corresponding relation of coin dimensions, and the corresponding relation is stored to the designated memory space of the terminal;
Wherein, the coin information includes:Coin weight and coin dimensions.
Correction verification module 70, for when detect be placed with coin in the coin placement region when, obtain the coin
Weight, and the weight of the coin is compared with coin weight corresponding to the target coin currency value, when the coin
When weight is identical with coin weight corresponding to the target coin currency value, output, which is weighed, verifies successful configured information to the end
User's display interface at end.
In some feasible embodiments, above-mentioned correction verification module 70 is additionally operable to:
After user display interface of the successful configured information of verification to the terminal is weighed in output, thing to be weighed is exported
The initial weight registration of body to the terminal user's display interface;
Wherein, the initial weight registration of the object to be weighed is the weight registration that the object to be weighed is space-time.
In some feasible embodiments, more money coins can be used to carry object to be weighed in mobile phone, different styles
The value of money of coin is different, and size also differs.Various sizes of coin can be used for the object of carrying different volumes size, Jin Erke
So that the scope of application of the function of weighing of terminal is wider, washability is higher.In the specific implementation, mobile phone can be pre- by setup module 60
The coin currency value of more money coins and the corresponding relation of coin information are first set, and then can be selected by determining module 20 according to user
Target coin currency value determine corresponding coin information.
In the specific implementation, setup module 60 can obtain the coin information of a variety of coin currency values, i.e. different coin currency values
Coin information.Wherein, above-mentioned coin information may include:Coin weight and coin dimensions, i.e. the coin pair of each coin currency value
Answer a coin weight and coin dimensions.After setup module 60 obtains the coin information of each coin currency value, then it can build
Each coin currency value and coin weight, the corresponding relation of coin dimensions are found, and above-mentioned corresponding relation is stored to the finger of mobile phone
Determine memory space.Wherein, the internal memory of above-mentioned designated memory space concretely mobile phone, either the outer extension memory such as SD card or
Cloud storage space etc., is not limited herein.Above-mentioned coin currency value includes:1 yuan, 5 jiaos and 1 jiao etc., above-mentioned target coin currency value
Any of concretely above-mentioned 1 yuan, 5 jiaos and 1 jiao, it is not limited herein.Such as table 1, table 1 is the preset coin coin of mobile phone
The mapping table of value and coin information.The numerical value of coin information is only corresponding to various coin currency values shown in above-mentioned table 1
Citing, can specifically set according to measurement result in practical application, not be limited herein.
In some feasible embodiments, the coin currency value that setup module 60 is prefixed shown in above-mentioned table 1 is believed with coin
After the corresponding relation of breath, it is necessary to using mobile phone function of weighing when, then can pass through the work(of weighing that starting module 10 starts mobile phone
Energy.After starting module 10 starts the function of weighing of mobile phone, then the option information of exportable above-mentioned a variety of coin currency values to hand
The user interface of machine, for cellphone subscriber's selection target coin currency value.Starting module 10 can obtain the target that user selectes
Coin currency value, such as 1 yuan, and then corresponding coin information can be determined by determining module 20, include the weight and chi of 1 yuan of coin
The information such as very little, to enter the working condition of mobile phone function of weighing.
In some feasible embodiments, setup module 60 be prefixed coin currency value and coin information corresponding relation it
Afterwards, when starting module 10 acquires the target coin currency value that user selectes, determining module 20 can be according to above-mentioned target coin
Value of money inquires about in above-mentioned corresponding relation the various coin currency values included, and then can determine above-mentioned target by the matching of coin currency value
Coin weight and coin dimensions corresponding to coin currency value.For example, when starting module 10 acquires the target coin that user selectes
Value of money is 1 yuan, and the coin weight that coin currency value is 1 yuan is searched in the corresponding relation that determining module 20 can then be enumerated from above-mentioned table 1
25 millimeters of 6.10 grams of amount and coin dimensions.Wherein, the diameter of above-mentioned coin dimensions concretely coin, is not limited herein.
In some feasible embodiments, determining module 20 determines hard corresponding to target coin currency value that user selectes
After coin weight and coin dimensions, region indicating module 30 can then export coin placement region to mobile phone according to above-mentioned coin dimensions
User interface.Such as Fig. 2, Fig. 2 is the coin rest area on the user interface of mobile phone provided in an embodiment of the present invention
The schematic diagram in domain, different coin dimensions correspond to different size of coin placement region.Wherein, mobile phone exports to user and operates boundary
Coin placement region on face may include:1 yuan coin placement region (i.e. coin currency value be 1 yuan coin placement region), 5
The coin placement region at angle and 1 jiao of coin placement region etc..Specifically, the user of the mobile phone described in the embodiment of the present invention
The operation interface concretely touch-screen of mobile phone or touch screen etc., are not limited herein.Region indicating module 30 is according to coin
Size exports coin placement region to the user interface of mobile phone, can be used to instruction user and puts the coin of target coin currency value
Put in above-mentioned coin placement region.Wherein, above-mentioned coin is used to carry object to be weighed.That is, object to be weighed can be placed in
Weighed on above-mentioned coin.
In some feasible embodiments, the coin of target coin currency value is placed on above-mentioned coin placement region by user
Afterwards, correction verification module 70 can then verify to the coin of placement, it is determined that whether the coin placed on user interface with referring to
Coin-kind corresponding to the coin placement region shown is identical.It is placed with when correction verification module 70 detects on its user interface firmly
During coin, the weight of the coin can be obtained, and the weight of the coin is corresponding with the target coin currency value that above-mentioned inquiry obtains
Coin weight be compared.When correction verification module 70 verifies the target coin currency value for obtaining the weight of coin and being obtained with above-mentioned inquiry
When corresponding coin weight is identical, then it can determine that and verify successfully, now the exportable verification successfully instruction of weighing of correction verification module 70
Information is to its user's display interface.Further, after correction verification module 70 determines that coin verifies successfully, also exportable thing to be weighed
The initial weight registration of body to user's display interface, wherein, the initial weight registration of above-mentioned object to be weighed is object to be weighed
For the weight registration of space-time.That is, when object to be weighed is not placed on coin also by user, correction verification module 70 can export one first
Individual initial weight registration, such as 0g etc..When object to be weighed is placed on above-mentioned coin by user, weight output module 50 is then
Above-mentioned initial weight registration can be updated according to the weight of object to be weighed, above-mentioned initial weight registration is changed to object to be weighed
Weight.
In some feasible embodiments, after correction verification module 70 verifies successfully to coin, weight measurement module 40 is then
The weight of coin can be monitored, object to be weighed whether is placed with coin to detect.When weight measurement module 40 detects
When change by a relatively large margin occurs to the weight of coin, then it can determine that needing weighting objects is placed in above-mentioned coin placement region
On the coin of placement, and then weighing for object to be weighed can be carried out.In the specific implementation, when the detection of weight measurement module 40 is treated
When weighting objects are placed on the coin placed in coin placement region, the hard of object to be weighed and target coin currency value can be obtained
The gross weight of coin, so can the coin weight with reference to corresponding to the above-mentioned target coin currency value inquired determine the weight of object to be weighed
Amount.
In some feasible embodiments, weight measurement module 40 acquires object to be weighed and target coin currency value
Coin gross mass after, weight output module 50 can subtract the gross mass that above-mentioned weight measurement module 40 acquires
Coin weight corresponding to the target coin currency value that determining module 20 inquires is stated to obtain the weight of object to be weighed.Weight exports
After the processing of module 50 obtains the weight of object to be weighed, then the weight of above-mentioned object to be weighed can be exported to the user of mobile phone
In operation interface.Specifically, weight output module 50 can be updated on above-mentioned user interface according to the weight of object to be weighed
Initial weight registration, above-mentioned initial weight registration is changed to the weight of object to be weighed.For example, work as weight measurement module 40
When the gross weight for acquiring object and coin to be weighed is 10.00 grams, (1 yuan of target coin currency value being arrived due to mobile phones enquiring
Coin) weight be 6.10 grams, now weight output module 50 can determine that the weight of object to be weighed is 10.00-6.10=
3.90 grams, and then can be by user's display interface of (3.90 grams) outputs of weight of above-mentioned object to be weighed to mobile phone.
In embodiments of the present invention, mobile phone can preset coin currency value and the corresponding relation of coin information, and will be above-mentioned
Corresponding relation is stored to designated memory space.After function of weighing starts, mobile phone then can be according to the target coin that user selectes
Value of money determines coin weight and coin dimensions corresponding to target coin currency value, and then can be according to the coin dimensions of target coin currency value
Export on coin placement region to the user interface of mobile phone, to instruction user by the target for carrying object to be weighed
The coin of coin currency value is placed in above-mentioned coin placement region.When object to be weighed is placed on above-mentioned coin, mobile phone can
The gross weight of object and coin is obtained, and then the weight of object to be weighed is obtained simultaneously according to the weight of above-mentioned gross mass removing coin
Export to the user interface of terminal, so that user consults, enhance the applicability of the function of weighing of mobile phone, improve mobile phone
The flexibility weighed.
Referring to Fig. 5, Fig. 5 is another example structure schematic diagram of terminal provided in an embodiment of the present invention.The present invention is implemented
Terminal described in example, including:At least one input equipment 1001;At least one output equipment 1002;At least one processing
Device 1003, such as CPU;With memory 1004, above-mentioned input equipment 1001, output equipment 1002, processor 1003 and memory
1004 are connected by bus 1005.
Above-mentioned memory 1004 can be high-speed RAM memory, or non-labile memory (non-volatile
), such as magnetic disk storage memory.Above-mentioned input equipment 1001 and output equipment 1002 concretely the touch-screen of terminal or
Some functional module corresponding to touch-screen, is not limited herein.
Wherein, above-mentioned memory 1004 is used to store batch processing code, above-mentioned input equipment 1001, output equipment 1002
It is used to call the program code stored in memory 1004 with processor 1003, performs following operation:
Above-mentioned processor 1003, for starting the function of weighing of terminal.
Above-mentioned input equipment 1001, the target coin currency value selected for obtaining user.
Above-mentioned processor 1003, the corresponding relation according to preset coin currency value and coin information is additionally operable to, it is determined that input
Coin weight and coin dimensions corresponding to the target coin currency value that equipment 1001 obtains.
Above-mentioned output equipment 1002, for exporting coin placement region to the user of the terminal according to the coin dimensions
Operation interface, the coin of the target coin currency value is placed in the coin placement region with instruction user.
Above-mentioned processor 1003, it is additionally operable to put detecting the object to be weighed to be placed in the coin placement region
When on the coin put, the gross weight of the object to be weighed and the coin of the target coin currency value is obtained, by the gross weight
Coin weight corresponding to the target coin currency value is subtracted to obtain the weight of the object to be weighed.
Above-mentioned output equipment 1002, it is additionally operable to export the weight of the object to be weighed to user's operation of the terminal
Interface.
In some feasible embodiments, above-mentioned input equipment 1001, it is additionally operable to obtain the coins of a variety of coin currency values
Information, wherein, the coin information includes:Coin weight and coin dimensions.
Above-mentioned processor 1003, it is additionally operable to establish each coin currency value and coin weight, the corresponding relation of coin dimensions,
And the corresponding relation is stored to the designated memory space of the terminal.
In some feasible embodiments, the coin currency value includes:At least one of 1 yuan, 5 jiaos and 1 jiao;
The target coin currency value is any of described 1 yuan, 5 jiaos and 1 jiao.
In some feasible embodiments, above-mentioned processor 1003 is additionally operable to:
When detect be placed with coin in the coin placement region when, obtain the weight of the coin, and will be described hard
The weight of coin is compared with coin weight corresponding to the target coin currency value;
When the weight of the coin is identical with coin weight corresponding to the target coin currency value, pass through output equipment
1002 outputs, which are weighed, verifies successful configured information to user's display interface of the terminal.
In some feasible embodiments, above-mentioned output equipment 1002 is additionally operable to:
The initial weight registration of object to be weighed is exported to user's display interface of the terminal;
Wherein, the initial weight registration of the object to be weighed is the weight registration that the object to be weighed is space-time.
In the specific implementation, the terminal described in the embodiment of the present invention can pass through the modules (input equipment built in it
1001st, output equipment 1002 and processor 1003 etc.) perform the embodiment of the method that terminal provided in an embodiment of the present invention is weighed
Described in implementation, also can perform terminal provided in an embodiment of the present invention embodiment described by implementation, tool
Body implementation process can be found in above-mentioned each embodiment, will not be repeated here.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (10)
1. a kind of method that terminal is weighed, it is characterised in that including:
Start the function of weighing of terminal, and obtain the target coin currency value that user selectes;
According to the corresponding relation of preset coin currency value and coin information, coin weight corresponding to the target coin currency value is determined
And coin dimensions;
Coin placement region is exported to the user interface of the terminal according to the coin dimensions, with instruction user by described in
The coin of target coin currency value is placed in the coin placement region, and the coin is used to carry object to be weighed;
When detecting that the object to be weighed is placed on the coin placed in the coin placement region, wait to claim described in acquisition
The gross weight of weight body and the coin of the target coin currency value;
The gross weight is subtracted into coin weight corresponding to the target coin currency value to obtain the weight of the object to be weighed,
And the weight of the object to be weighed is exported to the user interface of the terminal.
2. the method as described in claim 1, it is characterised in that before the function of weighing for starting terminal, methods described is also
Including:
The coin information of a variety of coin currency values is obtained, wherein, the coin information includes:Coin weight and coin dimensions;
Each coin currency value and coin weight, the corresponding relation of coin dimensions are established, and the corresponding relation is stored to institute
State the designated memory space of terminal.
3. method as claimed in claim 2, it is characterised in that the coin currency value includes:1 yuan, 5 jiaos and 1 jiao;
The target coin currency value is any of described 1 yuan, 5 jiaos and 1 jiao.
4. the method as described in claim any one of 1-3, it is characterised in that described to be put according to coin dimensions output coin
After putting region to the user interface of the terminal, methods described also includes:
When detect be placed with coin in the coin placement region when, obtain the weight of the coin, and by the coin
Weight is compared with coin weight corresponding to the target coin currency value;
When the weight of the coin is identical with coin weight corresponding to the target coin currency value, output weighs verification successfully
Configured information to the terminal user's display interface.
5. method as claimed in claim 4, it is characterised in that the output, which is weighed, verifies successful configured information to the end
After user's display interface at end, methods described also includes:
The initial weight registration of object to be weighed is exported to user's display interface of the terminal;
Wherein, the initial weight registration of the object to be weighed is the weight registration that the object to be weighed is space-time.
A kind of 6. terminal, it is characterised in that including:
Starting module, for starting the function of weighing of terminal, and obtain the target coin currency value that user selectes;
Determining module, for the corresponding relation according to preset coin currency value and coin information, determine that the starting module obtains
The target coin currency value corresponding to coin weight and coin dimensions;
Region indicating module, the user for exporting coin placement region to the terminal according to the coin dimensions operate boundary
Face, the coin of the target coin currency value is placed in the coin placement region with instruction user, the coin is used to hold
Carry object to be weighed;
Weight measurement module, for detecting that the object to be weighed is placed on the coin placed in the coin placement region
When upper, the gross weight of the object to be weighed and the coin of the target coin currency value was obtained;
Weight output module, the gross weight for the weight measurement module to be obtained subtract the target coin currency value pair
The coin weight answered is exported the weight of the object to be weighed to the terminal with obtaining the weight of the object to be weighed
User interface.
7. terminal as claimed in claim 6, it is characterised in that the terminal also includes:
Setup module, for obtaining the coin information of a variety of coin currency values, establish each coin currency value and coin weight, coin
The corresponding relation of size, and the corresponding relation is stored to the designated memory space of the terminal;
Wherein, the coin information includes:Coin weight and coin dimensions.
8. terminal as claimed in claim 7, it is characterised in that the coin currency value includes:1 yuan, 5 jiaos and 1 jiao;
The target coin currency value is any of described 1 yuan, 5 jiaos and 1 jiao.
9. the terminal as described in claim any one of 6-8, it is characterised in that the terminal also includes:
Correction verification module, for when detect be placed with coin in the coin placement region when, obtain the weight of the coin, and
The weight of the coin is compared with coin weight corresponding to the target coin currency value, weight and institute when the coin
When stating that coin weight is identical corresponding to target coin currency value, output weighs the successful configured information of verification to the user of the terminal
Display interface.
10. terminal as claimed in claim 9, it is characterised in that the correction verification module is additionally operable to:
After user display interface of the successful configured information of verification to the terminal is weighed in output, object to be weighed is exported
Initial weight registration to the terminal user's display interface;
Wherein, the initial weight registration of the object to be weighed is the weight registration that the object to be weighed is space-time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610069830.9A CN105737951B (en) | 2016-01-29 | 2016-01-29 | The method and terminal that a kind of terminal is weighed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610069830.9A CN105737951B (en) | 2016-01-29 | 2016-01-29 | The method and terminal that a kind of terminal is weighed |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105737951A CN105737951A (en) | 2016-07-06 |
CN105737951B true CN105737951B (en) | 2018-03-27 |
Family
ID=56242032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610069830.9A Expired - Fee Related CN105737951B (en) | 2016-01-29 | 2016-01-29 | The method and terminal that a kind of terminal is weighed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105737951B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111780846B (en) * | 2020-07-06 | 2021-11-26 | Oppo(重庆)智能科技有限公司 | Object weighing method, mobile terminal and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0836162A2 (en) * | 1995-03-31 | 1998-04-15 | Spinteknology Inc. | Coin hopper weighing system |
CN101852639A (en) * | 2010-02-24 | 2010-10-06 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for weighing weight of object at mobile terminal and mobile terminal |
CN101977261A (en) * | 2010-09-29 | 2011-02-16 | 惠州Tcl移动通信有限公司 | Mobile phone touch screen-based electronic scale, implementation method thereof and mobile phone |
TW201235921A (en) * | 2011-02-22 | 2012-09-01 | Hon Hai Prec Ind Co Ltd | Weighable mobile terminal and method |
CN103297574A (en) * | 2013-06-13 | 2013-09-11 | 李耀强 | Mobile phone with electronic scale |
CN204103990U (en) * | 2014-10-06 | 2015-01-14 | 谢哲怡 | A kind of mobile phone group body having function of weighing |
CN204305144U (en) * | 2014-12-24 | 2015-04-29 | 西南大学 | A kind of mobile phone with electronic scale |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4886002B2 (en) * | 2009-04-20 | 2012-02-29 | 勝三 川西 | Heavy-weight filling device |
-
2016
- 2016-01-29 CN CN201610069830.9A patent/CN105737951B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0836162A2 (en) * | 1995-03-31 | 1998-04-15 | Spinteknology Inc. | Coin hopper weighing system |
CN101852639A (en) * | 2010-02-24 | 2010-10-06 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for weighing weight of object at mobile terminal and mobile terminal |
CN101977261A (en) * | 2010-09-29 | 2011-02-16 | 惠州Tcl移动通信有限公司 | Mobile phone touch screen-based electronic scale, implementation method thereof and mobile phone |
TW201235921A (en) * | 2011-02-22 | 2012-09-01 | Hon Hai Prec Ind Co Ltd | Weighable mobile terminal and method |
CN103297574A (en) * | 2013-06-13 | 2013-09-11 | 李耀强 | Mobile phone with electronic scale |
CN204103990U (en) * | 2014-10-06 | 2015-01-14 | 谢哲怡 | A kind of mobile phone group body having function of weighing |
CN204305144U (en) * | 2014-12-24 | 2015-04-29 | 西南大学 | A kind of mobile phone with electronic scale |
Also Published As
Publication number | Publication date |
---|---|
CN105737951A (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106127481B (en) | A kind of fingerprint method of payment and terminal | |
CN107179871A (en) | Fingerprint recognition region display methods and Related product | |
CN107729836A (en) | Face identification method and Related product | |
CN105681657B (en) | A kind of method and terminal device for shooting focusing | |
CN104714731A (en) | Display method and device for terminal interface | |
CN107622483A (en) | A kind of image combining method and terminal | |
CN105760851A (en) | Fingerprint identification method and terminal | |
CN108115688A (en) | Crawl control method, system and the mechanical arm of a kind of mechanical arm | |
CN109283996A (en) | Display control method and Related product | |
CN107197489A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN107341122A (en) | Equipment access processing method, equipment access processing unit and mobile terminal | |
CN105737951B (en) | The method and terminal that a kind of terminal is weighed | |
CN107479785A (en) | A kind of control method of control, device, computer installation and readable storage medium storing program for executing | |
CN107506697A (en) | Anti-fake processing method and related product | |
CN107256334A (en) | recipe matching method and related product | |
CN107451536A (en) | Bio-identification pattern open method and Related product | |
CN104169854B (en) | A kind of icon arrangement method and terminal | |
CN107295592A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN107862188A (en) | A kind of data transfering method and its device | |
CN107766708A (en) | Nullify method, terminal and the computer-readable recording medium of account Entered state | |
CN110298274A (en) | Optical finger print parameter upgrade method and Related product | |
CN110213456A (en) | Scan document bearing calibration, electronic device and computer readable storage medium | |
CN108268291A (en) | A kind of application program delet method and terminal device | |
CN107864295A (en) | Call control method, mobile terminal and computer-readable recording medium | |
CN105242823A (en) | Weather information prompting method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180327 |