Portable electronic apparatus and its line traffic control accomplishing method

A kind of electronic equipment, portable technology, applied in the field of portable electronic equipment and its wire control, can solve the problems of affecting appearance and ease of use, power consumption and cost increase, increasing cost, etc., to achieve increased cost, simple control, and line interface simple effect

Inactive Publication Date: 2008-07-09
LENOVO MOBILE COMM TECH
1 Cites 24 Cited by

AI-Extracted Technical Summary

Problems solved by technology

The disadvantage of these solutions is that a dedicated hardware interface and a dedicated headphone cable are required
In addition, it is necessary to increase the microprocessor (MPU) circuit to realize the earphone wire control function through the serial interface, which will increase the power consu...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention discloses a portable electronic device and a wire-control method. The portable electronic device includes an earphone socket, a CPU and an interruption detecting module. During the wire-control process through a wire-control earphone, the CPU records the time from the press-down to release of the wire-control earphone key-press, compares the time length with the preset threshold to judge and record the type of the key-press corresponding to the time length, and performs corresponding functions according to the recorded type of key-press for one-time operation or the combination of key-press types for many times of operation. With the simple wire-control earphone provided by the invention, various control functions can be performed to the portable electronic device.

Application Domain

Technology Topic

Image

  • Portable electronic apparatus and its line traffic control accomplishing method
  • Portable electronic apparatus and its line traffic control accomplishing method
  • Portable electronic apparatus and its line traffic control accomplishing method

Examples

  • Experimental program(1)

Example Embodiment

[0032] In order to achieve the above purpose, the present invention records the time from pressing the button of the wired earphone to releasing it; by comparing the time length with a preset threshold value, the type of key corresponding to the time length is judged and recorded; Execute the corresponding function according to the recorded key type operated once or a combination of key types operated multiple times. In this way, at least one button is needed to control various complex functions of the wire-controlled earphone.
[0033] The connection circuit between the earphone line control circuit and the portable electronic device body in a preferred embodiment of the present invention, see figure 2 shown. The detection circuit of the wire-controlled earphone end only has an ordinary button K, which is connected to the input terminal of the interruption detection module in the detection circuit of the host through the earphone socket, and the output end of the interruption detection module is connected to the CPU of the portable electronic device. Wherein, for a mobile phone, the key K can be an answer/hang up key of an ordinary four-section mobile phone earphone cable, and the key K can also be connected in series with a resistor.
[0034] When the button K is pressed, the interrupt detection module detects the voltage or current change generated when the button of the wire-controlled earphone is pressed, and sends an interrupt signal, such as an interrupt request (IRQ) to the CPU, and the CPU starts timing; when the button K is released, the interrupt The detection module detects the voltage or current change generated when the button of the wire-controlled earphone is released, and sends an interrupt signal to the CPU again. Wherein, the interrupt signals sent out twice may be the same or different, indicating the operation of pressing and releasing the key respectively. The CPU records the time interval between pressing and releasing the key, and compares the time length with a preset threshold to determine the key type corresponding to the time length and record it; according to the recorded key type of an operation, or a certain The combination of key types operated multiple times within a time period judges the corresponding function and executes it.
[0035] The present invention can also be applied to the line of the bluetooth earphone, and the structure and principle are similar.
[0036] see image 3 As shown in the flow chart, a preferred embodiment of the earphone wire control method of the present invention will be described in detail below.
[0037] Set several button types in advance according to the pressing time of the button, for example: short press, middle press, long press, etc. Set the time length threshold to distinguish different button types, for example: set two thresholds of 0.5 seconds and 2 seconds, if the button is pressed for less than 0.5 seconds, it is a short press, 0.5 to 2 seconds is a medium press, and it is greater than 2 seconds for long press. Moreover, it is set that each key type or a combination of multiple key types corresponds to a function.
[0038] In order to correctly identify the user's operation instruction, the present invention needs to time two situations: one is the duration of time from pressing the key to releasing it, and the other is the time interval between two operations of the user.
[0039] When the user operates through the wire-controlled headset, the following steps are included:
[0040] In step 301, the button is pressed to trigger an interrupt, and the CPU starts timing after receiving the interrupt signal.
[0041] Step 302 , releasing the button triggers an interrupt, and the CPU stops timing after receiving the interrupt signal again, determines the length of time between two interrupts, and starts timing the interval between two operations at the same time.
[0042] Step 303, compare the time length determined in step 302 with the set time length threshold, determine which time range it belongs to, and then determine the key type corresponding to this operation and record it.
[0043] Step 304 , judging whether the wire-controlled headset button is pressed again before the predetermined time interval between two operations is reached, if yes, stop timing the interval between two operations, and return to step 301 ; otherwise, enter step 305 .
[0044] Step 305, execute the corresponding function according to the recorded key type or its combination. For example: if only one key type is recorded, execute the function corresponding to the key type; function and execute it.
[0045] A specific example will be used below to further illustrate the implementation method of the earphone wire control of the present invention.
[0046] Assuming that the portable electronic device is a mobile phone with a MP3 playback function, its wire-controlled earphone only needs a button for an ordinary mobile phone to answer and hang up.
[0047] Set two time thresholds of 0.5 seconds and 2 seconds, and define the key types as follows:
[0048] Short press: less than 0.5 seconds;
[0049] Middle press: greater than 0.5 seconds and less than 2 seconds;
[0050] Long press: more than 2 seconds.
[0051] The time interval between two operations does not exceed 8 seconds.
[0052] Key combination functions are defined as follows:
[0053] Long press: turn on/off the music player;
[0054] Middle press + short press: Decrease the volume;
[0055] Middle press + long press: increase the volume;
[0056] Short press + short press: previous song;
[0057] Short press + middle press: next song;
[0058] Short press + long press: play;
[0059] Middle press + long press: Pause.
[0060] For specific wire control implementation process, see Figure 4 Shown:
[0061] Step 401, the button is pressed to trigger an interrupt, and the CPU starts timing.
[0062] In steps 402-403, it is judged whether a call request is currently received, if yes, answer the call and end; otherwise, go to step 404.
[0063] Steps 404-405, judging whether it is currently in a call, if yes, hang up the current call and end; otherwise, go to step 406.
[0064] Step 406 , releasing the button triggers an interrupt, the CPU records the pressing time, clears the timer, and starts timing the time interval between two operations at the same time.
[0065] Step 407, by comparing the pressing time with the threshold, determine the corresponding key type, and record it.
[0066] Assuming that the recorded pressing time is 1.5 seconds, it is judged that the key type is pressed during input by comparing with the two thresholds.
[0067] Step 408, judge whether the button of the wire-controlled earphone is pressed again within 8 seconds, if so, stop and reset the time interval timer, and return to step 401; otherwise, reset the time interval timer, and enter step 409.
[0068] Assume that the button is pressed again within 8 seconds, and the type of the button recorded in step 407 is a long press.
[0069] Step 409, execute the corresponding function according to the recorded key type or its combination.
[0070] At this time, the recorded button type combination is middle press+long press, and the corresponding function is obtained by querying the corresponding relationship between the button type combination and the function, and then the CPU executes the operation of pausing the current song playback.
[0071] The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Preparation method of non-magnetic high-strength texture Ni-W alloy baseband

InactiveCN103938031AIncrease costEliminate split edgesHigh-temperature superconductivityOxide
Owner:HENAN NORMAL UNIV

Hemodialysis apparatus

InactiveUS20100191164A1Accurate detectionIncrease costHaemofiltrationDialysis systemsPressure sensorPump blood
Owner:JMS CO LTD

Classification and recommendation of technical efficacy words

  • Increase cost
  • Simple control
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products