CN108271421A - A kind of material detection method, equipment and storage medium - Google Patents
A kind of material detection method, equipment and storage medium Download PDFInfo
- Publication number
- CN108271421A CN108271421A CN201680055788.3A CN201680055788A CN108271421A CN 108271421 A CN108271421 A CN 108271421A CN 201680055788 A CN201680055788 A CN 201680055788A CN 108271421 A CN108271421 A CN 108271421A
- Authority
- CN
- China
- Prior art keywords
- equipment
- data
- information
- material information
- capacitance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
A kind of material detection method, equipment and storage medium.In the material detection method, equipment obtains the first capacitance data, and first capacitance data is the capacitance data (401) of capacitance sensor detection.It determines and matched first material information (402) of first capacitance data.By using the method, can detect and the corresponding material of equipment.During so as to which equipment being made to be in the environment of unlike material, the configuration parameter of adjusting device makes equipment more intelligent.
Description
The present invention relates to technical field of intelligent equipment more particularly to a kind of material detection methods, equipment and storage medium.
How the environment in the perception external world of active changes the state of smart machine by the variation of varying environment to smart machine, is one of break-through point for smart machine.The information collecting devices such as the use of big quantity sensor and phonetic function at present, the function of realizing smart machine state change of part.Positive effect is had for smart machine adjust automatically state in which according to the identification of locating environmental surfaces material in smart machine.By the detection and identification of the material to smart machine placement surface, a variety of applications identified based on usage scenario may be implemented.And in the prior art, there are no the products of the material adjustment smart machine state based on smart machine local environment itself or technology to occur.
Summary of the invention
The embodiment of the invention provides a kind of material detection method, equipment and storage mediums, and the corresponding material of detection device may be implemented.
On the one hand, the specific embodiment of the invention provides a kind of material detection method.The method is applied to the equipment with capacitance sensor.The method includes equipment to obtain first capacitor data, and the first capacitor data are the capacitance data of capacitance sensor detection.Determining the first material information with the first capacitor Data Matching.By the material of identification, make equipment according to the working condition of different material adjustment equipments.
In a kind of possible design, the method also includes the configuration parameter of the equipment is adjusted according to first material information.By determining material, equipment is adjusted, enables a device to work
In more suitable state.
In a kind of possible design, when first material information is metal, the antenna pattern of the antenna of the equipment, and/or the radio-frequency emission power of the adjustment equipment are adjusted.The antenna of adjustment equipment when being placed on metal by determining, to the influence of device signal when avoiding being placed on metal.
In a kind of possible design, the method also includes exporting first material information with text or voice mode.Exported by way of text or sound judgement as a result, obtain user easily when the material that be currently placed.
In a kind of possible design, the method also includes obtaining the first capacitor data when determining that the equipment remains static.Capacitance data is obtained when equipment is static and determines the material that equipment is placed, to enable a device to more power saving.
In a kind of possible design, the determination and the first material information of the first capacitor Data Matching include, according to the corresponding relationship of preset capacitance data and material, determining the first material information with the first capacitor Data Matching.By presetting the corresponding relationship of material and capacitor in a device, enable a device to judge material according to the capacitor of acquisition.
In a kind of possible design, the method also includes, when there is no when the first material information with the first capacitor Data Matching in the corresponding relationship of the preset capacitance data and material, export the first prompt information, the material information that first prompt information is used to that user to be prompted to input the body surface that the equipment is currently placed.Receive the first prompt information of user's input.The material information for the body surface that the equipment is currently placed is obtained according to first prompt information.Establish and store the corresponding relationship of the material information for the body surface that the first capacitor data and the equipment are currently placed.By increasing the corresponding relationship of new capacitor and material into equipment, the actual needs according to user is caused the device to, identifies more materials.
In a possible design, the method also includes obtaining the second information, second information includes that the equipment is currently able to the information obtained.Second information includes but is not limited to obtain at least one of ambient sound, temporal information, geographical location information or a variety of.The state of the equipment is adjusted according to second information and the first material information.For example, when determining that first material information is to knit
Object is determined as at 11 points at night by the temporal information in second information, and geographical location information determines that position is in, the configuration parameter of adjustment equipment, indicating equipment enter low-power consumption mode, it is mute, turn down screen intensity etc.;By combining a variety of different information, determines the current state of the equipment, keep the adjusting of the equipment more intelligent.
In a possible design, when determining that first material information is manpower or human skin, make the equipment bright screen or automatic unlocking or starting voice assistant automatically.
Second aspect, the specific embodiment of the invention provide a kind of material detection equipment, including receiving unit and processing unit.The receiving unit, for obtaining first capacitor data, the first capacitor data are the capacitance data of capacitance sensor detection.Processing unit, for determining the first material information with the first capacitor Data Matching.By the material of identification, make equipment according to the working condition of different material adjustment equipments.Based on the same inventive concept, the principle and beneficial effect solved the problems, such as due to the equipment may refer to each possible method implementation and brought beneficial effect of above-mentioned first aspect and first aspect, therefore the implementation of the equipment may refer to the embodiment of each possible method of above-mentioned first aspect and first aspect, and overlaps will not be repeated.
The third aspect, the specific embodiment of the invention provide a kind of material detection equipment, including capacitance sensor, memory and processor;Capacitance sensor, for detecting capacitance data;Memory, for storing computer executable program code, said program code includes instruction;When the processor executes described instruction, the capacitance data of the capacitance sensor detection, determining the first material information with the first capacitor Data Matching are obtained.The scheme in method design that the processor calls the instruction of storage in the memory to realize above-mentioned first aspect, the embodiment and beneficial effect solved the problems, such as due to the equipment may refer to the embodiment and beneficial effect of each possible method of above-mentioned first aspect and first aspect, therefore the implementation of the equipment may refer to the implementation of each possible method of above-mentioned first aspect and first aspect, and overlaps will not be repeated.
Fourth aspect, the specific embodiment of the invention provides a kind of storage medium, the storage medium is non-volatile computer readable storage medium storing program for executing, the non-volatile computer readable storage medium storing program for executing is stored at least one program, and each described program includes computer used involved by above-mentioned first aspect method design scheme
Software instruction, described instruction make the electronic equipment execute each possible audio data processing method of above-mentioned first aspect and first aspect when being executed by the electronic equipment with processor, transceiver and output equipment.The embodiment of the invention provides a kind of material detection method, equipment and storage mediums.By using heretofore described method, it is able to detect material corresponding with equipment.When to make equipment be in the environment of unlike material, the state of equipment can be adjusted, keep the use of equipment more intelligent.
Fig. 1 is a kind of material detection equipment and object relative position schematic diagram that the specific embodiment of the invention provides;
Fig. 2 is a kind of material detection device structure schematic diagram that the specific embodiment of the invention provides;
Fig. 3 show a kind of capacitance component structural schematic diagram of specific embodiment of the invention offer;
Fig. 4 is a kind of material detection method schematic diagram that the specific embodiment of the invention provides;
Fig. 5 is a kind of material detection equipment that the specific embodiment of the invention provides;
Fig. 6 is a kind of material detection equipment provided in an embodiment of the present invention.
Below by drawings and examples, the technical solution of the embodiment of the present invention is described in further detail.
A kind of material detection equipment provided in an embodiment of the present invention.As shown in Figure 1, including capacitance sensor and processor.In a specific embodiment of the present invention, processor obtains the capacitance data of electrode plate in capacitance sensor.When equipment has the surface A face contacted with object, the capacitance data for the electrode plate for including in the capacitance sensor changes.The processor adjusts the configuration parameter of equipment according to the capacitance data of acquisition, makes equipment work in more suitable working condition.
Fig. 2 is a kind of structural schematic diagram for material detection equipment that the specific embodiment of the invention provides.As shown in Fig. 2, the capacitance sensor includes processing circuit and electrode plate 204.The processing circuit can be set on the circuit board 203 of equipment, and the electrode plate 204 is fixed at the upper housing of equipment
Between 202 and lower case 201, and support is provided by center 205.The processing circuit and electrode plate 204 connect, and power and obtain the charge and discharge time of electrode plate 204 to the electrode plate 204 by the processing circuit.The processing circuit determines the capacitance data of electrode plate 204 according to the charge and discharge time of electrode plate 204.
When equipment is placed on unlike material surface, the capacitance data of electrode plate detected by the processing circuit of capacitance sensor is different。The processing circuit judges that the different capacitance datas of electrode plate were determined according to the time of the different charge and discharge of the electrode plate of acquisition.The equipment further includes the incidence relation of material corresponding to the different capacitance data of storage.When user can be set equipment and be in unlike material, the variation of equipment state.Then, after equipment is placed on a kind of material surface and obtains corresponding capacitance data, the current state of equipment is adjusted according to the state of equipment when the corresponding relationship and unlike material of capacitance data and material.
In one example, the electrode plate can be the capacitance component of multiple capacitor compositions.Fig. 3 show a kind of capacitance component structural schematic diagram of specific embodiment of the invention offer.As shown in figure 3, the equipment is arranged in the first material surface.The electrode plate for including in equipment is made up of first capacitor C1, the second capacitor C2 and third capacitor C3.Wherein, C2 is the capacitor being made of the electrode plate in capacitance sensor, and C1 and C3 are equivalent capacity.The first capacitor C1 is equivalent capacity of the electrode plate cathode to the earth.When equipment state in which is stablized, the equivalent capacity data of first capacitor C1 are fixed value.The third capacitor C3 is equivalent capacity of the electrode plate anode to the earth.When the equipment is placed on different material surfaces, the capacitance of third capacitor C3 will change.
For example, the capacitance of third capacitor C3 is different when equipment is placed in the material of metal or when equipment is placed in wooden material.
Specifically, since first capacitor C1, the second capacitor C2 and third capacitor C3 are parallel with one another, so the capacitance data C of the electrode plate of capacitance sensor can be determined by following formula one:
C=C1+C2+C3 formula one
Wherein, C is used to indicate the capacitor of electrode plate in capacitance sensor.Since when equipment is placed on different material surfaces, the capacitance of third capacitor C3 is different, therefore, when equipment is placed on unlike material
When surface, the capacitance data C of the electrode plate of capacitance sensor is different.
In a specific embodiment of the present invention, it is only a kind of specific embodiment of the invention in a kind of material that the equipment provided with electrode plate, which is arranged on,.The equipment provided with electrode plate be arranged in a kind of material be also possible to the equipment provided with electrode plate be arranged in the material be in contact with the material or around there are the materials.
Multiple electrodes plate can be set in capacitance sensor in the equipment.It include multiple channels on the processing circuit, each channel is at least connect with an electrode plate respectively.By obtaining the capacitance data in multiple channels, the capacitance data in accessed multiple channels is handled, determines which kind of material is equipment be arranged on according to processing result.By using multiple electrodes plate, the capacitance data for detecting capacitance sensor is more accurate.Keep equipment more accurate to the identification of unlike material.For example, including the first to the 8th electrode plate in the equipment.It further include the first processing circuit and second processing circuit in the equipment, first processing circuit and second processing circuit respectively include four channels.Wherein, first to fourth electrode plate is connect with four channels of the first processing circuit respectively, and the 5th to the 8th electrode plate is connect with four channels of second processing circuit respectively.
In embodiment in capacitance sensor including multiple electrodes plate, processor also needs multiple capacitance datas to acquisition to generate the data model of the material using cluster calculation.In a specific embodiment of the present invention, it is only the specific way that the present invention uses to improve the precision of material detection that multiple electrodes plate is arranged in equipment.Equipment in the present invention can use any number of electrode plate according to actual needs.Corresponding any number of electrode plate, the channel that processing circuit provides in equipment should be no less than the quantity of electrode plate.
In one example, the equipment is mobile phone, includes eight electrode plates in the mobile phone.Eight electrode plates can be separately positioned on the two sides (specifically can as shown in Figure 2 for) of mobile phone center.The processing circuit is arranged on the SOC (System on Chip, system level chip) of the mobile phone, and the electrode plate and processing circuit are connected by flexible circuit board (Flexible Printed Circuit, FPC).
It further include storage Standard model in the equipment, the Standard model includes at least one
The corresponding relationship of group capacitance data and material.As shown in Table 1, capacitance data can be interval censored data.For example, representing the object material that current device is contacted when capacitance data falls in section A as the first material.
Capacitance data | Material |
A | First material |
B | Second material |
C | Third material |
Table one
Processor determines capacitance data corresponding with acquired capacitance data from Standard model.Optionally, determining the capacitance data to match with the capacitance data obtained is that a capacitance data identical with the capacitance data obtained is determined from the capacitance data for including in Standard model.Or determine that the interval range for the capacitance data for including in a Standard model includes the capacitance data obtained.After a capacitance data has been determined, material corresponding to the capacitance data is the material that equipment is currently placed.
In a specific embodiment of the present invention, when not capacitance data corresponding with capacitance data in the Standard model of the equipment, the equipment can also increase new capacitance data and corresponding material to Standard model.
In the example that one increases capacitance data and corresponding material into equipment, the equipment, which remains static and is placed on equipment, to be needed in increased first material.
When not no the first material information with the first capacitor Data Matching in the corresponding relationship of the preset capacitance data and material, or when that can not determine the first material information with the first capacitor Data Matching according to the corresponding relationship of the preset capacitance data and material, export the first prompt information, the material information that first prompt information is used to that user to be prompted to input the body surface that the equipment is currently placed;Receive the first prompt information of user's input;The material information for the body surface that the equipment is currently placed is obtained according to first prompt information;Establish and store the first capacitor data with
The corresponding relationship of the material information for the body surface that the equipment is currently placed.
As an implementation, the first prompt information is exported with text mode in display interface, or audibly exports the first prompt information;The mode for receiving the first prompt information of user's input, which can be, receives the first prompt information that user is inputted in a manner of touch input or key-press input, or the first prompt information inputted in a manner of audio input.
In a specific embodiment of the present invention, repeatedly equipment can be placed in the first material, and the capacitance data obtained every time is stored.According to multiple capacitance datas of storage, the capacitance data of the material is calculated.A kind of material is inputted by capacitance data of the user to calculating, keeps capacitance data and material corresponding.By capacitance data and the storage of corresponding material into Standard model.
In one example, the capacitance sensor of the equipment includes multiple electrodes plate, and each electrode plate is connect with a channel in processing circuit.Processing circuit detects the capacitance data in each channel, uses cluster calculation to the multiple capacitance data, determines the capacitance data of the material, inputs the corresponding material of the capacitance data by user, forms the corresponding relationship of capacitance data and material.The capacitance data and corresponding material are stored.
In one example, described can be to multiple capacitance datas using cluster calculation clusters operation or other cluster operations using K-means.The present invention is to the specific algorithm of the capacitance data of acquisition and is not construed as limiting, but algorithm used by preset data, identical as algorithm used by the data newly detected.
It in a specific embodiment of the present invention, can also include motion sensor in the equipment, the motion sensor is used for the motion state of sensor device to generate sensing signal.The sensing signal that the capacitance data and motion sensor that the processor is obtained according to capacitance sensor obtain, the configuration parameter of adjustment equipment.
The motion sensor can be any sensors such as gravity sensor (Gravity-sensor), gyroscope.It is in a specific embodiment of the present invention, unified to be stated with motion sensor for the convenience of statement.The sensing signals such as acceleration and angular acceleration parameter can be extracted by accelerometer in motion sensor and gyro module, sensing signal can characterize the motion amplitude of equipment.
Processor receives the sensing signal that motion sensor obtains, and judges the current state of equipment according to the sensing signal that the motion sensor obtains.The processor judges the current motion amplitude of equipment according to the sensing signal that motion sensor obtains.
For example, the gravity sensor (Gravity-sensor) and/or gyroscope extract the sensing signals such as acceleration and angular acceleration parameter.Determine that equipment is in static or motion state by sensing signal.When static to equipment by motion sensor senses, instruction capacitance sensor obtains capacitance data.When by motion sensor senses arrive equipment moving when, indicate capacitance sensor enter suspend mode.So that the capacitance sensor is stopped working when unnecessary by the method, reduces the power consumption of equipment.
In one example, capacitance sensor is in normally open, and the capacitance sensor can periodically detect capacitance data.When determining that equipment remains static, processor obtains the capacitance data that capacitance sensor obtains.Or in another example, in a dormant state, when determining that equipment remains static, processor instruction capacitance sensor obtains capacitance data and acquired capacitance data is passed to processor capacitance sensor.
It should be noted that in a specific embodiment of the present invention, the material corresponding with current device that can be determined according to processor determines the state of current device, and then the configuration parameter of adjustment equipment.
In a specific embodiment of the present invention, after being also possible to processor acquisition much information, the state of current device is determined according to much information.According to the current state of equipment, the configuration parameter of adjustment equipment.Wherein, currently corresponding material is only one of much information to the equipment that processor determines.The much information can be, current voice messaging, time, geographical location information, be also possible to other any information.The present invention is not limited in any way much information.
In an intelligent scene application, the state of current device is determined according to much information.For example, when becoming stationary state from motion state by motion sensor acquisition equipment.Restart capacitance sensor, and determines that equipment is currently placed on the fabric.Equipment is recognizing ambient sound by MIC (microphone), imports current time information and GPS information, such as temporal information is 11 points at night, determines that current location is to be according to GPS (Global Position System) information.Equipment is sentenced according to the material of current time, place, the state of current device and the placed body surface of current device
The current possibility of off line master is being slept, and equipment has been placed on bedside.According to the above judging result, the configuration parameter of adjustment equipment, indicating equipment enter low-power consumption mode, it is mute, turn down screen intensity etc..
In an intelligent scene application, after processor determines the corresponding material of the equipment, by text or auditory tone cues mode, the object material for prompting user currently to be contacted with equipment.
In the application of intelligent scene, when the motion sensor gets equipment and changes to motion state by stationary state, capacitance sensor obtains the capacitance data of current motion state.If being judged according to capacitance data, when determining that material currently corresponding with equipment is manpower or human skin, equipment bright screen or automatic unlocking or starting voice assistant automatically are made by the processor.
Equipment is determined in an application after the judgement of material locating for current device in the present invention, when the equipment is mobile phone, can also judge whether the mobile phone is provided with protective case.When motion sensor indicate it is static, movement when Material Identification processing module is respectively started, when the Facing material information obtained is consistent, it can be deduced that machine has been mounted the conclusion of protective case.It can be with temporary close Facing material identifying system or growth detection interval time to reduce power consumption.
In an intelligent scene application, the current state of equipment is determined according to the corresponding material of current device.When determining that equipment is placed on metal surface, the strategy of antenna performance compensation can be made.The strategy of the antenna performance compensation can be, and adjust the antenna pattern of antenna, and radiation spherical surface is allowed to leave metal as far as possible, can also synchronize and be ok by adjusting radio-frequency emission power, increase antenna performance etc. or several schemes.
In a kind of scheme by adjusting the transmission power of antenna, the radiofrequency signal of radio-frequency amplifier circuit amplification transmitting is used.One or more gain stages in one or more integrated circuits can be used to realize radio-frequency amplifier circuit.Signal is amplified by radio-frequency power amplifier wherein it is possible to there is the power amplifier of multiple such as amplifiers, and each power amplifier is associated with a different communication bands or one group of communication band.Amplify radiofrequency signal before emitting by antenna using power amplifier circuit.Such as it can be by adjusting the size of analog control voltage or analog power voltage, to control the gain of power amplifier.It can also be by opening or closing certain gain stages in power amplifier, to adjust the gain of power amplifier.Wherein, digital controlled signal can be handled by power amplifier and be used to control gain and set
It sets.Alternatively, the combination of these methods or other power amplifier gain adjustment technologies appropriate can also be used.
The gain of adjustable power amplifier, to ensure that the intensity of the radiofrequency signal emitted by antenna is enough to realize satisfactory wireless communication.
In a specific embodiment of the invention, when the model data in Standard model for including in the capacitance data and equipment that the equipment obtains matches, modify also according to the capacitance data of the acquisition to the capacitance data for including in the model data.So that the capacitance data for including in the model data is more close to material common in the life of user, thus more accurate to the judgement of user's usage scenario.
For example, the minimum value for the first model data for including in the equipment is 1156, maximum value 1233.The minimum value for the first capacitor data that the equipment obtains is 1203, maximum value 1230.The equipment determines that the first model data is corresponding with the first capacitor data of acquisition, and it is 1203 that the first model data, which is revised as minimum value, maximum value 1230.
Fig. 4 is a kind of material detection method schematic diagram that the specific embodiment of the invention provides.As shown in figure 4, the method specifically includes:
S401: equipment obtains first capacitor data, and the first capacitor data are the capacitance data of capacitance sensor detection.
S402: determining the first material information with the first capacitor Data Matching.
The detailed description of each step of method shown in Fig. 4 may refer to the introduction of above-described embodiment.
A kind of equipment of the embodiment of the present invention.Including capacitance sensor, memory and processor.Capacitance sensor, memory and processor are of coupled connections;Capacitance sensor is for detecting capacitance data;Memory, for storing computer executable program code, said program code includes instruction;Processor executes instruction stored in memory, realizes the scheme of embodiment of the present invention method, such as: obtain the capacitance data of capacitance sensor detection, determining the first material information with the first capacitor Data Matching;The configuration parameter of equipment is adjusted according to the first material information.
The capacitance sensor is self-tolerant capacitance sensor.The capacitance sensor includes processing circuit
And electrode plate.When the electrode plate is opposite from different materials, the capacitance data of electrode plate is different, the different capacitance datas of the processing circuit detecting electrode plate.The different capacitance datas that the processing circuit obtains electrode plate are to obtain the time of electrode plate charge and discharge.The processor determines the capacitance data of capacitance sensor according to the electrode plate charge and discharge time.
Fig. 5 is a kind of material detection equipment that the specific embodiment of the invention provides, and the material detection equipment can be realized the function in above method embodiment.Therefore also it is able to achieve the beneficial effect having in above method embodiment.As shown in figure 5, the material detection equipment specifically includes:
S501 receiving unit, for obtaining first capacitor data, the first capacitor data are the capacitance data of capacitance sensor detection.
S502 processing unit, for determining the first material information with the first capacitor Data Matching.
Determining the first material information with the first capacitor Data Matching of the processing unit 502, is the corresponding relationship according to preset capacitance data and material, determining the first material information with the first capacitor Data Matching.
It is described when there is no when the first material information with the first capacitor Data Matching in the corresponding relationship of the preset capacitance data and material, or when not can determine that the first material information with the first capacitor Data Matching according to the corresponding relationship of the preset capacitance data and material, the first prompt information is exported.The material information that first prompt information is used to that user to be prompted to input the body surface that the equipment is currently placed;Receive the first prompt information of user's input.The material information for the body surface that the equipment is currently placed is obtained according to first prompt information.Establish and store the corresponding relationship of the material information for the body surface that the first capacitor data and the equipment are currently placed.
The implementation of the first prompt information is exported, the first prompt information can be exported in the form of text, the first prompt information can also be exported in the form of sound.
The first prompt information for receiving user's input can be and receive the text information that user is inputted by touch manner or key mode, be also possible to receive the audio-frequency information of user's input by microphone.
In embodiments of the present invention, when the processing unit 501 determines that the equipment remains static, the receiving unit 501 obtains the first capacitor data.The equipment further includes output unit,
The output unit is used to export first material information with text or voice mode.
In a specific embodiment of the present invention, the processing unit 502 adjusts the configuration parameter of the equipment also according to first material information after determining first material information.
In a kind of example of equipment configuration parameter, when the processing unit 502 determines that first material information is metal, the processing unit 502 also adjusts the antenna pattern of the antenna of the equipment, and/or the radio-frequency emission power of the adjustment equipment.
Based on the same inventive concept, the principle and beneficial effect solved the problems, such as due to the equipment may refer to above method embodiment and brought beneficial effect, and the implementation of the equipment may refer to the embodiment of the above method, and overlaps will not be repeated.
Fig. 6 is a kind of material detection equipment provided in an embodiment of the present invention.As shown in fig. 6, the material detection equipment includes: processor 601, memory 602, communication interface 603, bus 604 and capacitance sensor.Wherein, capacitance sensor, processor 601, memory 602 and communication interface 603 are of coupled connections, the communication connection between being realized by bus 604.
Processor 601 can use general central processing unit (Central Processing Unit, CPU), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, for executing relative program, to realize technical solution provided by aforementioned embodiment of the present invention method.
Memory 602 can be read-only memory (Read Only Memory, ROM), static storage device, dynamic memory or random access memory (Random Access Memory, RAM).Memory 602 can store an operating system and other applications.When by software or firmware to realize technical solution provided in an embodiment of the present invention, the program code for realizing any optional technical solution of preceding method embodiment of the present invention offer is saved in the memory 602, and is executed by processor 601.Communication interface 603 with other interchangers or control control equipment to communicate.
Bus 604 may include an access, transmit information between equipment all parts (such as processor 601, memory 602, capacitance sensor and communication interface 603).
Capacitance sensor, for detecting capacitance data.
When the processor 601 executes the instruction that the memory 602 stores, execute the method for step 401 and step 402 in embodiment of the present invention method, specific embodiment and beneficial effect can be with reference to step 401 and the corresponding description of step 402 and beneficial effects in embodiment of the present invention method, and repeating place, details are not described herein.
It in an embodiment of the present invention, can also include motion sensor in the equipment.The motion sensor is used for the motion state of sensor device to generate sensing signal.The sensing signal that the capacitance data and sensor that the processor is obtained according to capacitance sensor obtain, the configuration parameter of adjustment equipment.
The motion sensor can be any sensors such as gravity sensor (Gravity-sensor), gyroscope.The sensing signals such as acceleration and angular acceleration parameter can be extracted by accelerometer in motion sensor and gyro module, sensing signal can characterize the motion amplitude of equipment.It is in a specific embodiment of the present invention, unified to be stated with motion sensor for the convenience of statement.
Processor receives the sensing signal that motion sensor obtains, and judges the current state of equipment according to the sensing signal that the motion sensor obtains.The processor judges the current motion amplitude of equipment according to the data of motion sensor senses.
For example, the gravity sensor (Gravity-sensor) and/or gyroscope extract the sensing signals such as acceleration and angular acceleration parameter.Determine that equipment is in static or motion state by sensing signal.When static to equipment by motion sensor senses, instruction capacitance sensor obtains capacitance data.When by motion sensor senses arrive equipment moving when, indicate capacitance sensor enter suspend mode.So that the capacitance sensor is stopped working when unnecessary by the method, reduces the power consumption of equipment.
In an embodiment of the present invention, it can also include microphone and/or loudspeaker in the equipment, microphone is used to pick up ambient sound or receive the audio input information of user's input, and processor can be according to ambient sound, capacitance data, and/or the current state of sensing signal comprehensive descision equipment;Loudspeaker is used for the object material currently contacted with equipment after processor determines the equipment corresponding material by auditory tone cues mode, prompt user.The embodiment of the present invention also provides a kind of non-volatile computer readable storage medium storing program for executing, the non-volatile computer readable storage medium storing program for executing is stored at least one program, each described program includes instruction, and described instruction holds the equipment when being executed by the equipment with processor
Material detection method in row above method embodiment.
Professional should further appreciate that, unit and algorithm steps described in conjunction with the examples disclosed in the embodiments of the present disclosure, it can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the interchangeability of hardware and software, each exemplary composition and step are generally described according to function in the above description.These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Professional technician can use different methods to achieve the described function each specific application, but such implementation should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be implemented with the combination of hardware, the software module or the two of processor execution.Software module can be placed in any other form of storage medium known in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described specific embodiment; the purpose of the present invention, technical scheme and beneficial effects are had been further described; it should be understood that; the foregoing is merely a specific embodiment of the invention; it is not intended to limit the scope of protection of the present invention; all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done, should all be included in the protection scope of the present invention.
Claims (22)
- A kind of material detection method, applied to the equipment with capacitance sensor, which is characterized in that the described method includes:Equipment obtains first capacitor data, and the first capacitor data are the capacitance data of capacitance sensor detection;Determining the first material information with the first capacitor Data Matching.
- The method according to claim 1, wherein the method also includes:The configuration parameter of the equipment is adjusted according to first material information.
- According to the method described in claim 2, it is characterized in that, adjusting the antenna pattern of the antenna of the equipment, and/or the radio-frequency emission power of the adjustment equipment when first material information is metal.
- The method according to claim 1, wherein the method also includes: first material information is exported with text or voice mode.
- The method according to claim 1, wherein the method also includes:When determining that the equipment remains static, the first capacitor data are obtained.
- According to the method for claim 1, it is characterized in that, first material information of the determination and the first capacitor Data Matching, comprising: according to the corresponding relationship of preset capacitance data and material, determining the first material information with the first capacitor Data Matching.
- According to the method described in claim 6, it is characterized in that, the method also includes:When the first material information with the first capacitor Data Matching is not present in the corresponding relationship of the preset capacitance data and material,Export the first prompt information, the material information that first prompt information is used to that user to be prompted to input the body surface that the equipment is currently placed;Receive the first prompt information of user's input;The material information for the body surface that the equipment is currently placed is obtained according to first prompt information;Establish and store the corresponding relationship of the material information for the body surface that the first capacitor data and the equipment are currently placed.
- A kind of material detection equipment characterized by comprisingReceiving unit, for obtaining first capacitor data, the first capacitor data are the capacitance data of capacitance sensor detection;Processing unit, for determining the first material information with the first capacitor Data Matching.
- Equipment according to claim 8, which is characterized in that processing unit is also used to:The configuration parameter of the equipment is adjusted according to first material information.
- Equipment according to claim 9, which is characterized in that when the processing unit determines that first material information is metal, the processing unit also adjusts the antenna pattern of the antenna of the equipment, and/or the radio-frequency emission power of the adjustment equipment.
- Equipment according to claim 8, which is characterized in that the equipment further includes output unit, and the output unit is used to export first material information with text or voice mode.
- Equipment according to claim 8, which is characterized in that when the processing unit determines that the equipment remains static, the receiving unit obtains the first capacitor data.
- Equipment according to claim 8, which is characterized in that determining the first material information with the first capacitor Data Matching of the processing unit, comprising:According to the corresponding relationship of preset capacitance data and material, determining the first material information with the first capacitor Data Matching.
- Equipment according to claim 13, which is characterized in that it is described when the first material information with the first capacitor Data Matching is not present in the corresponding relationship of the preset capacitance data and material,Export the first prompt information, the material information that first prompt information is used to that user to be prompted to input the body surface that the equipment is currently placed;Receive the first prompt information of user's input;The material letter for the body surface that the equipment is currently placed is obtained according to first prompt information Breath;Establish and store the corresponding relationship of the material information for the body surface that the first capacitor data and the equipment are currently placed.
- A kind of material detection equipment, which is characterized in that including capacitance sensor, memory and processor:Capacitance sensor, for detecting capacitance data;Memory, for storing computer executable program code, said program code includes instruction;When the processor executes described instruction, the capacitance data of the capacitance sensor detection, determining the first material information with the first capacitor Data Matching are obtained.
- Equipment according to claim 15, which is characterized in that the processor is also used to:The configuration parameter of the equipment is adjusted according to first material information.
- Equipment according to claim 16, which is characterized in that when the processor determines that first material information is metal, the processor also adjusts the antenna pattern of the antenna of the equipment, and/or the radio-frequency emission power of the adjustment equipment.
- Equipment according to claim 15, which is characterized in that the processor is also used to export first material information with text or voice mode.
- Equipment according to claim 15, which is characterized in that the equipment further includes motion sensor, and the motion sensor is kept in motion or stationary state for determining the equipment;When determining that the equipment remains static, the processor indicates that the capacitance sensor detects capacitance data.
- Equipment according to claim 15, which is characterized in that determining the first material information with the first capacitor Data Matching of the processor, comprising:According to the corresponding relationship of preset capacitance data and material, determining the first material information with the first capacitor Data Matching.
- Equipment according to claim 20, which is characterized in that the processor is also used to: it not can determine that and the first capacitor number when according to the corresponding relationship of the preset capacitance data and material When according to matched first material information,Export the first prompt information, the material information that first prompt information is used to that user to be prompted to input the body surface that the equipment is currently placed;Receive the first prompt information of user's input;The material information for the body surface that the equipment is currently placed is obtained according to first prompt information;Establish and store the corresponding relationship of the material information for the body surface that the first capacitor data and the equipment are currently placed.
- A kind of storage medium, it is characterized in that, the storage medium is non-volatile computer readable storage medium storing program for executing, the non-volatile computer readable storage medium storing program for executing is stored at least one program, each described program includes instruction, and described instruction makes the equipment execute material detection method according to claim 1-7 when being executed by the equipment with processor.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/104046 WO2018076349A1 (en) | 2016-10-31 | 2016-10-31 | Material detection method and device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108271421A true CN108271421A (en) | 2018-07-10 |
Family
ID=62024217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201680055788.3A Pending CN108271421A (en) | 2016-10-31 | 2016-10-31 | A kind of material detection method, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108271421A (en) |
WO (1) | WO2018076349A1 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685721A (en) * | 2012-08-31 | 2014-03-26 | 美国亚德诺半导体公司 | Environment detection for mobile devices |
CN105403599A (en) * | 2014-09-09 | 2016-03-16 | 德州仪器公司 | Material-discerning sensing by measurement of different points of impedancetoto ltd |
CN105813699A (en) * | 2014-01-30 | 2016-07-27 | 施政 | System and method for recognizing objects placed together using sensors |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9606663B2 (en) * | 2008-09-10 | 2017-03-28 | Apple Inc. | Multiple stimulation phase determination |
CN104793713A (en) * | 2015-04-07 | 2015-07-22 | 深圳市万普拉斯科技有限公司 | Automatic user interface matching method for mobile terminal and mobile terminal |
CN105977640B (en) * | 2016-04-29 | 2018-10-26 | 北京小米移动软件有限公司 | Antenna tuning method, apparatus, antenna and terminal device |
-
2016
- 2016-10-31 CN CN201680055788.3A patent/CN108271421A/en active Pending
- 2016-10-31 WO PCT/CN2016/104046 patent/WO2018076349A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685721A (en) * | 2012-08-31 | 2014-03-26 | 美国亚德诺半导体公司 | Environment detection for mobile devices |
CN105813699A (en) * | 2014-01-30 | 2016-07-27 | 施政 | System and method for recognizing objects placed together using sensors |
CN105403599A (en) * | 2014-09-09 | 2016-03-16 | 德州仪器公司 | Material-discerning sensing by measurement of different points of impedancetoto ltd |
Also Published As
Publication number | Publication date |
---|---|
WO2018076349A1 (en) | 2018-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10939218B2 (en) | Method for detecting wrong positioning of earphone, and electronic device and storage medium therefor | |
KR102659414B1 (en) | Electronic device comprising of electromagnetic sensor module and method for controlling thereof | |
US7522065B2 (en) | Method and apparatus for proximity sensing in a portable electronic device | |
CN107943345B (en) | Calibration method, device, storage medium and electronic device for proximity sensor | |
EP3379404A1 (en) | Electronic device and method for controlling operation of electronic device | |
EP3349110B1 (en) | Electronic device and method for controlling operation of electronic device | |
KR102620503B1 (en) | Electronic device for obtaining biometric signal and method of operating the same | |
EP3432136B1 (en) | Sound effect configuration method and related device | |
KR102548932B1 (en) | Electronic apparatus and method for controlling time measurement | |
CN103959649B (en) | Method for adjusting the sensitivity of sensing system | |
CN110599989B (en) | Audio processing method, device and storage medium | |
CN108415024A (en) | Proximity sensor calibration method and device, mobile terminal and computer readable medium | |
CN107277912A (en) | A kind of Radio frequency interference processing method, device, storage medium and terminal | |
CN114448015B (en) | Temperature compensation method and device, terminal equipment and readable storage medium | |
CN108388340B (en) | Electronic equipment control method and related products | |
CN108199785B (en) | Transmission power test method, device, system and electronic equipment | |
CN111698601A (en) | Bluetooth headset, key sensitivity adjusting method and device thereof and readable storage medium | |
CN110675848A (en) | Audio processing method, device and storage medium | |
KR20200072196A (en) | Electronic device audio enhancement and method thereof | |
CN111277991A (en) | Operator name display method and device, mobile terminal and storage medium | |
CN108271421A (en) | A kind of material detection method, equipment and storage medium | |
CN117706182B (en) | Parameter adjustment method and electronic equipment | |
US9971059B2 (en) | Detection of stowed state for device | |
CN108123762B (en) | Transmission power test method, device, system and electronic equipment | |
CN108199788B (en) | Transmission power test method, device, system and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210429 Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Applicant after: Honor Device Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180710 |
|
RJ01 | Rejection of invention patent application after publication |