CN106550120B - Active accessory detection processing method based on mobile terminal and mobile terminal - Google Patents
Active accessory detection processing method based on mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN106550120B CN106550120B CN201610914020.9A CN201610914020A CN106550120B CN 106550120 B CN106550120 B CN 106550120B CN 201610914020 A CN201610914020 A CN 201610914020A CN 106550120 B CN106550120 B CN 106550120B
- Authority
- CN
- China
- Prior art keywords
- signal
- mobile terminal
- active
- signal frequency
- active accessory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses an active accessory detection processing method based on a mobile terminal and the mobile terminal, wherein the method comprises the following steps: step A: presetting a plurality of signal frequencies for identifying the types of active accessories and the types of the active accessories corresponding to the signal frequencies; and B: a signal generator arranged on the active accessory, which is inserted into the mobile terminal, for generating a signal with fixed frequency; and C: the mobile terminal detects active accessory insertion; step D: the mobile terminal detects the signal frequency of the signal generated by the signal generator; step E: and judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency. The method provided by the invention realizes the real interaction between the mobile terminal and the active accessory, improves the response speed of the active accessory request of the mobile terminal, reduces the resource waste of the active accessory request processing, and further improves the intellectualization of the mobile terminal.
Description
Technical Field
The invention relates to the field of mobile terminals, in particular to an active accessory detection processing method based on a mobile terminal and the mobile terminal.
Background
With the development and progress of mobile terminal technology, the application range of the mobile terminal is more and more extensive, and the mobile terminal is not only used for communication, but also used by many users with less than half of the functions of the mobile terminal, but not meant that many functions of the mobile terminal are useless, and on the contrary, the diversification and diversification of the functions allow users to have more choices, and the mobile terminal can replace many traditional entertainment tools or other equipment, such as a television and the like, due to the portability of the mobile terminal.
The external output and input of the mobile terminal is just one of the functions, and the external output and input of the mobile terminal can be connected with active accessories to output or input audio, video and the like, for example, the external output and input audio, video and the like can output video to a television, so that a 'home theater' can be quickly and effectively established, and the entertainment of the mobile terminal is greatly improved. Active accessories refer to accessories with their own power supply, such as a charger, an external impression, a television or a virtual reality helmet, etc.
The connection between some active accessories and the mobile terminal shares one interface, and it is difficult to distinguish what kind of active accessories the mobile terminal is connected to, so that the mobile terminal can only passively process the request of the inserted active accessory when connecting the active accessory, it needs to call a lot of redundant resources to process the request of the active accessory, and the response speed has a certain delay, and it cannot realize the real interaction between the two.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention provides an active accessory detection processing method based on a mobile terminal and the mobile terminal, aiming at the defects of the prior art, and the active accessory detection processing method based on the mobile terminal enables the mobile terminal to judge the type of the inserted active accessory timely and accurately after the active accessory is inserted, actively process the request of the active accessory and send the request in the subsequent interaction process, thereby realizing the real interaction between the mobile terminal and the active accessory, improving the response speed of the active accessory request of the mobile terminal, reducing the resource waste of the active accessory request processing, and further improving the intellectualization of the mobile terminal.
The technical scheme adopted by the invention for solving the technical problem is as follows:
an active attachment detection processing method based on a mobile terminal, wherein the active attachment detection processing method based on the mobile terminal comprises the following steps:
step A: presetting a plurality of signal frequencies for identifying the types of active accessories and the types of the active accessories corresponding to the signal frequencies;
and B: a signal generator arranged on the active accessory, which is inserted into the mobile terminal, for generating a signal with fixed frequency;
and C: the mobile terminal detects active accessory insertion;
step D: the mobile terminal detects the signal frequency of the signal generated by the signal generator;
step E: and judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency.
Preferably, the active accessory detection processing method based on the mobile terminal, wherein the mobile terminal CPU is provided with a signal frequency detection module for detecting a signal frequency around the mobile terminal.
Preferably, the active accessory detection processing method based on the mobile terminal, wherein the mobile terminal is provided with a signal frequency detection device for detecting the signal frequency around the mobile terminal;
the signal frequency detection device comprises a microphone for acquiring signal values of signals generated by a signal generator at regular intervals.
Preferably, the active accessory detection processing method based on the mobile terminal, wherein the signal frequency detection apparatus further includes:
the signal recording module is connected with the microphones and is used for sequentially recording signal values acquired by all the microphones and corresponding time of the signal values;
and the time difference calculation module is connected with the signal recording module and used for selecting a maximum value and a second maximum value from the signal values recorded by the signal recording module, calculating the time difference of the time corresponding to the maximum value and the second maximum value, and taking the reciprocal of the time difference as the signal frequency.
Preferably, in the method for processing active accessory detection based on a mobile terminal, the signal generated by the signal generator is an ultrasonic signal, and the frequency of the ultrasonic signal is greater than 20000 Hz.
A mobile terminal for detecting the type of an inserted active accessory by the active accessory detection processing method based on the mobile terminal, comprising an active accessory interface and a CPU, wherein the mobile terminal further comprises:
the device comprises a presetting module, a judging module and a judging module, wherein the presetting module is used for presetting a plurality of signal frequencies for identifying the types of active accessories and the types of the active accessories corresponding to the signal frequencies;
the connection detection module is connected with the active accessory interface and is used for detecting the active accessory insertion after the active accessory is inserted into the mobile terminal;
the signal frequency detection module or the signal frequency detection device is used for detecting the signal frequency of the signal generated by the signal generator;
and the type judgment module is connected with the preset module, the signal frequency detection module or the signal frequency detection device and is used for judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency.
Preferably, the mobile terminal CPU is provided with a signal frequency detection module for detecting a signal frequency around the mobile terminal.
Preferably, the mobile terminal is provided with a signal frequency detection device for detecting the signal frequency around the mobile terminal;
the signal frequency detection device comprises a microphone for acquiring signal values of signals generated by a signal generator at regular intervals.
Preferably, the mobile terminal, wherein the signal frequency detection device further includes:
the signal recording module is connected with the microphones and is used for sequentially recording signal values acquired by all the microphones and corresponding time of the signal values;
and the time difference calculation module is connected with the signal recording module and used for selecting a maximum value and a second maximum value from the signal values recorded by the signal recording module, calculating the time difference of the time corresponding to the maximum value and the second maximum value, and taking the reciprocal of the time difference as the signal frequency.
Preferably, the mobile terminal, wherein the signal generated by the signal generator is an ultrasonic signal, and the frequency of the ultrasonic signal is greater than 20000 Hz.
The active accessory detection processing method based on the mobile terminal, provided by the invention, has the advantages that a plurality of signal frequencies for identifying the types of active accessories and the types of the active accessories corresponding to the signal frequencies are preset at first; then after the active accessory is inserted into the mobile terminal, the mobile terminal detects the active accessory insertion, and simultaneously, a signal generator in the active accessory generates a signal with fixed frequency; then the mobile terminal detects the signal frequency of the signal generated by the signal generator; finally, judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency; the mobile terminal for identifying the type of the inserted active accessory by using the method can judge the type of the inserted active accessory timely and accurately after the active accessory is inserted, actively process the request of the active accessory and can send the request in the subsequent interaction process, realize the real interaction between the mobile terminal and the active accessory, improve the response speed of the active accessory request of the mobile terminal, reduce the resource waste of the active accessory request processing, and further improve the intellectualization of the mobile terminal.
Drawings
Fig. 1 is a flowchart illustrating an active attachment detection processing method according to a preferred embodiment of the present invention.
Fig. 2 is a functional block diagram of a preferred embodiment of a mobile terminal in accordance with the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the present invention provides an active accessory detection processing method based on a mobile terminal, which includes:
s100, presetting a plurality of signal frequencies for identifying the types of the active accessories and the types of the active accessories corresponding to the signal frequencies.
In the preferred embodiment of the present invention, the mobile terminal stores a signal frequency database in advance, which includes signal frequency ranges of various active accessories, that is, a signal frequency range corresponding to an accessory, and a transition range exists between the signal frequency ranges of different accessories.
By presetting the signal frequency and the corresponding active accessory type, the mobile terminal can effectively identify the type of the inserted active accessory in time by comparing the detected signal frequency with a preset value.
S200, a signal generator arranged on an active accessory generates a signal with fixed frequency, and the active accessory is inserted into the mobile terminal.
As mentioned in the background art, the active accessory in the embodiment of the present invention is an accessory with a power supply, and specifically includes a power supply interface or a power supply, an accessory body, and a signal generator, wherein when the power supply interface of the active accessory is connected to the power supply, the signal generator can automatically generate an ultrasonic signal with a fixed frequency; in particular, the signal generator generates an ultrasonic signal having a frequency greater than 20000 Hz. The accessory body and the power supply form an active accessory in the prior art; that is, the active accessory of the present invention is added with a signal generator, which is preferably connected to a power source, and which continuously emits a signal when it is powered on, i.e., after power is supplied to the signal generator.
According to the above scheme, the "signal generator disposed in the active accessory and generating the signal with the fixed frequency" and the "insertion of the active accessory into the mobile terminal" in step S200 are not necessarily related, and the sequence of the two is not specified, and the invention shall belong to the protection scope regardless of the sequence of the two.
S300, the mobile terminal detects the active accessory insertion.
S400, the mobile terminal detects the signal frequency of the signal generated by the signal generator.
S500, judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency.
The active accessory detection processing method based on the mobile terminal, provided by the invention, has the advantages that a plurality of signal frequencies for identifying the types of active accessories and the types of the active accessories corresponding to the signal frequencies are preset at first; then after the active accessory is inserted into the mobile terminal, the mobile terminal detects the active accessory insertion, and simultaneously, a signal generator in the active accessory generates a signal with fixed frequency; then the mobile terminal detects the signal frequency of the signal generated by the signal generator; finally, judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency; the mobile terminal for identifying the type of the inserted active accessory by using the method can judge the type of the inserted active accessory timely and accurately after the active accessory is inserted, actively process the request of the active accessory and can send the request in the subsequent interaction process, realize the real interaction between the mobile terminal and the active accessory, improve the response speed of the active accessory request of the mobile terminal, reduce the resource waste of the active accessory request processing, and further improve the intellectualization of the mobile terminal.
Further, the mobile terminal CPU is provided with a signal frequency detection module for detecting the signal frequency around the mobile terminal.
The signal frequency detection module runs in a mobile terminal central processing unit, can detect signals generated by a signal generator through a WiFi antenna or other antennas of the mobile terminal or a signal receiver arranged on the mobile terminal, and the like, and analyzes the signal frequency of the signals.
Further, the mobile terminal is provided with a signal frequency detection device for detecting the signal frequency around the mobile terminal;
the signal frequency detection device comprises a microphone for acquiring signal values of signals generated by a signal generator at regular intervals.
Further, the signal frequency detection apparatus further includes:
the signal recording module is connected with the microphones and is used for sequentially recording signal values acquired by all the microphones and corresponding time of the signal values;
and the time difference calculation module is connected with the signal recording module and used for selecting a maximum value and a second maximum value from the signal values recorded by the signal recording module, calculating the time difference of the time corresponding to the maximum value and the second maximum value, and taking the reciprocal of the time difference as the signal frequency.
Preferably, in the method for processing active accessory detection based on a mobile terminal, the signal generated by the signal generator is an ultrasonic signal, and the frequency of the ultrasonic signal is greater than 20000 Hz.
A mobile terminal for detecting the type of an inserted active accessory by the active accessory detection processing method based on the mobile terminal, comprising an active accessory interface 100 and a CPU, wherein the mobile terminal further comprises:
a presetting module 200, configured to preset a plurality of signal frequencies for identifying types of active accessories and types of active accessories corresponding to the signal frequencies, specifically as described in the foregoing method embodiment;
a connection detection module 300 connected to the active accessory interface, configured to detect active accessory insertion after the active accessory is inserted into the mobile terminal, specifically as described in the above method embodiment;
a signal frequency detection module 400 or a signal frequency detection device, configured to detect a signal frequency of a signal generated by a signal generator, specifically as described in the above method embodiment;
and a type determining module, connected to the preset module, the signal frequency detecting module or the signal frequency detecting device, for determining a type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and an active accessory type corresponding thereto, as described in the embodiment of the method.
Further, the mobile terminal CPU is provided with a signal frequency detection module for detecting a signal frequency around the mobile terminal, specifically as described in the above method embodiment.
Further, the mobile terminal is provided with a signal frequency detection device for detecting the signal frequency around the mobile terminal, specifically as described in the above method embodiment;
the signal frequency detection device comprises a microphone for acquiring signal values of the signal generated by the signal generator at regular intervals, in particular as described in the above method embodiment.
Further, the signal frequency detection apparatus further includes: a signal recording module connected to the microphones and used for sequentially recording signal values obtained by all the microphones and corresponding time thereof, specifically as described in the above method embodiment;
and the time difference calculating module is connected with the signal recording module and is used for selecting a maximum value and a second maximum value from the signal values recorded by the signal recording module, calculating time differences of time corresponding to the maximum value and the second maximum value respectively, and taking the reciprocal of the time difference as a signal frequency.
Further, the signal generated by the signal generator is an ultrasonic signal with a frequency greater than 20000Hz, as described in the above embodiments of the method.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (6)
1. An active attachment detection processing method based on a mobile terminal is characterized by comprising the following steps:
step A: presetting a plurality of signal frequencies for identifying the types of active accessories and the types of the active accessories corresponding to the signal frequencies;
and B: a signal generator disposed at the active accessory, for generating a signal of a fixed frequency, the active accessory being inserted into the mobile terminal;
and C: the mobile terminal detects active accessory insertion;
step D: the mobile terminal detects the signal frequency of the signal generated by the signal generator;
step E: judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency;
the signal generated by the signal generator is an ultrasonic signal, and the frequency of the ultrasonic signal is more than 20000 Hz;
the mobile terminal is provided with a signal frequency detection device for detecting the signal frequency around the mobile terminal;
the signal frequency detection device comprises a microphone for acquiring signal values of signals generated by a signal generator at regular intervals.
2. The active accessory detection processing method based on the mobile terminal according to claim 1, wherein the mobile terminal CPU is provided with a signal frequency detection module for detecting the signal frequency around the mobile terminal.
3. The mobile terminal-based active accessory detection processing method according to claim 1, wherein the signal frequency detection device further comprises:
the signal recording module is connected with the microphones and is used for sequentially recording signal values acquired by all the microphones and corresponding time of the signal values;
and the time difference calculation module is connected with the signal recording module and used for selecting a maximum value and a second maximum value from the signal values recorded by the signal recording module, calculating the time difference of the time corresponding to the maximum value and the second maximum value, and taking the reciprocal of the time difference as the signal frequency.
4. A mobile terminal for detecting the type of an inserted active accessory by the active accessory detection processing method based on the mobile terminal according to any of claims 1 to 3, comprising an active accessory interface, a CPU, wherein the mobile terminal further comprises:
the device comprises a presetting module, a judging module and a judging module, wherein the presetting module is used for presetting a plurality of signal frequencies for identifying the types of active accessories and the types of the active accessories corresponding to the signal frequencies;
the connection detection module is connected with the active accessory interface and is used for detecting the active accessory insertion after the active accessory is inserted into the mobile terminal;
the signal frequency detection module or the signal frequency detection device is used for detecting the signal frequency of the signal generated by the signal generator;
the type judgment module is connected with the preset module, the signal frequency detection module or the signal frequency detection device and is used for judging the type of the inserted active accessory according to the detected signal frequency, the preset signal frequency and the type of the active accessory corresponding to the preset signal frequency;
the signal generated by the signal generator is an ultrasonic signal, and the frequency of the ultrasonic signal is more than 20000 Hz;
the mobile terminal is provided with a signal frequency detection device for detecting the signal frequency around the mobile terminal;
the signal frequency detection device comprises a microphone for acquiring signal values of signals generated by a signal generator at regular intervals.
5. The mobile terminal according to claim 4, wherein the mobile terminal CPU is provided with a signal frequency detection module for detecting the frequency of signals around the mobile terminal.
6. The mobile terminal according to claim 4, wherein the signal frequency detection device further comprises: the signal recording module is connected with the microphones and is used for sequentially recording signal values acquired by all the microphones and corresponding time of the signal values;
and the time difference calculation module is connected with the signal recording module and used for selecting a maximum value and a second maximum value from the signal values recorded by the signal recording module, calculating the time difference of the time corresponding to the maximum value and the second maximum value, and taking the reciprocal of the time difference as the signal frequency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610914020.9A CN106550120B (en) | 2016-10-20 | 2016-10-20 | Active accessory detection processing method based on mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610914020.9A CN106550120B (en) | 2016-10-20 | 2016-10-20 | Active accessory detection processing method based on mobile terminal and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106550120A CN106550120A (en) | 2017-03-29 |
CN106550120B true CN106550120B (en) | 2020-06-02 |
Family
ID=58391961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610914020.9A Active CN106550120B (en) | 2016-10-20 | 2016-10-20 | Active accessory detection processing method based on mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106550120B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408926A (en) * | 2007-10-12 | 2009-04-15 | 索尼爱立信移动通讯有限公司 | RFID for connected accessory identification and method |
CN101627552A (en) * | 2006-04-28 | 2010-01-13 | 摩托罗拉公司 | Method and system for unambiguous accessory association |
CN201491198U (en) * | 2008-01-14 | 2010-05-26 | 苹果公司 | Electronic equipment and accessory used for electronic equipment |
CN103812977A (en) * | 2014-02-11 | 2014-05-21 | Tcl通讯(宁波)有限公司 | Identification method and system for active accessory of mobile terminal |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100988377B1 (en) * | 2008-05-06 | 2010-10-18 | 엘지전자 주식회사 | Apparatus and method for managing menu of mobile terminal |
CN102724351B (en) * | 2011-03-31 | 2015-05-13 | 比亚迪股份有限公司 | Mobile terminal and management method of mobile terminal to external interposer attachment |
KR101782649B1 (en) * | 2011-04-28 | 2017-09-28 | 삼성전자주식회사 | Device and method for providing application of external accessory in wireless terminal |
CN105100477B (en) * | 2015-07-28 | 2019-03-01 | 努比亚技术有限公司 | Terminal notifying device and method |
CN105681506B (en) * | 2016-03-30 | 2019-06-04 | 惠州Tcl移动通信有限公司 | A kind of mobile terminal and its rear cover and its detection system and recognition methods |
-
2016
- 2016-10-20 CN CN201610914020.9A patent/CN106550120B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101627552A (en) * | 2006-04-28 | 2010-01-13 | 摩托罗拉公司 | Method and system for unambiguous accessory association |
CN101408926A (en) * | 2007-10-12 | 2009-04-15 | 索尼爱立信移动通讯有限公司 | RFID for connected accessory identification and method |
CN201491198U (en) * | 2008-01-14 | 2010-05-26 | 苹果公司 | Electronic equipment and accessory used for electronic equipment |
CN103812977A (en) * | 2014-02-11 | 2014-05-21 | Tcl通讯(宁波)有限公司 | Identification method and system for active accessory of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106550120A (en) | 2017-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109600694B (en) | Wireless earphone pairing method and device, terminal and charging box | |
CN103414982B (en) | A kind of method and apparatus that sound is provided | |
US20150195649A1 (en) | Method for proximity based audio device selection | |
CN106714081B (en) | Network connection method and intelligent device | |
CN104202729B (en) | The adding method of a kind of contact person, Apparatus and system | |
CN105357475A (en) | Video playing method and device | |
WO2017084389A1 (en) | Wireless device matching method, apparatus and system | |
CN102710549B (en) | To be established a communications link the method for relation, terminal and system by shooting | |
WO2017166603A1 (en) | Sound quality adjustment method, terminal, electronic device, and non-volatile computer storage medium | |
US10863562B2 (en) | Peripheral device pairing | |
CN105530683A (en) | Network connection method and apparatus | |
CN104837157B (en) | Speaker adding method, device, mobile terminal and intelligent sound box | |
CN104955168A (en) | Audio data transmitting method, receiving method and device | |
TW201507483A (en) | Video message system, terminal and implement method of video message | |
CN105407166A (en) | Communication implementation method and system for wearable equipment | |
CN109388238A (en) | The control method and device of a kind of electronic equipment | |
CN107872791B (en) | Access point connection method and device | |
CN106782498B (en) | Voice information playing method and device and terminal | |
US20170155690A1 (en) | Video Communication Ending Method and Apparatus, and Storage Medium | |
CN112382304B (en) | Bluetooth audio repairing method, device, equipment and medium | |
CN106550120B (en) | Active accessory detection processing method based on mobile terminal and mobile terminal | |
CN105704174A (en) | Information prompting method and device | |
CN109995543B (en) | Method and apparatus for adding group members | |
CN107483855B (en) | Television audio control method, television and computer readable storage medium | |
WO2017113528A1 (en) | Method, apparatus, device and system for pairing smart home appliance |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |