ELECTRONIC DEVICE AND TRANSMITTING METHODE THEREOF

Information

  • Patent Application
  • 20120027233
  • Publication Number
    20120027233
  • Date Filed
    March 15, 2011
    13 years ago
  • Date Published
    February 02, 2012
    12 years ago
Abstract
An electronic device comprises a first output module, a judgment module, a first switch module, a second output module, an operation module, a second switch module and a play module. The first output module generates a first audio signal. The second output module generates second audio signals. If the first audio signal is generated, the judgment module generates a first control signal. The first switch module switches to the first state and transmits the first audio signal. If the first audio signal is not generated, the judgment module generates a second control signal. The operation module generates a selecting signal. The second switch module switches to a second audio signal according to the selecting signal and transmits to the first switch module. The first switch module switches to the second state and transmits the selected second audio signal. The play module plays the audio signal.
Description
BACKGROUND

1. Technical Field


The present disclosure relates to an electronic device and particular to an electronic device used for playing audio signals.


2. Description of Related Art


A global positioning system (GPS) is a widely used in device in automobiles. A GPS is sometimes integrated with other electronic systems such as a radio and a DVD player, etc. When the radio or DVD player is on and the GPS is being used at the same time, a driver or passenger may have to switch from playing the radio to the GPS, and crucial information from the GPS may be missed.


Therefore, there is room for improvement in the art.





BRIEF DESCRIPTION OF THE DRAWINGS

Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout two views.



FIG. 1 is a block diagram of an electronic device in accordance with one embodiment.



FIG. 2 is a flow chart of a transmitting method of the electronic device of FIG. 1 in accordance with the embodiment.





DETAILED DESCRIPTION

The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.


Referring to FIG. 1, an electronic device 100 includes a first output module 10, a judgment module 20, a first switch module 30, a second output module 40, an operation module 50, a second switch module 60 and a play module 70. In the embodiment, the electronic device 100 may be a vehicle GPS navigation terminal with radio.


The first output module 10 is used for generating a first audio signal. In the embodiment, the first audio signal is a GPS audio signal.


The judgment module 20 is used for judging whether the first audio signal is generated and generating a control signal. If the first audio signal is generated, the judgment module 20 generates a first control signal to the first switch unit 30. If the first audio signal is not generated, the judgment module 20 generates a second control signal to the first switch unit 30.


The first switch module 30 is used for switching between a first state and a second state according to the control signal. If the first control signal is generated, the first switch module 30 switches to the first state. In the first state, the first switch module 30 transmits the first audio signal to the play module 70 directly. In the embodiment, the first switch module 30 is a multiplex switch such as a GSM3157 chip. The switching speed of the first switch module 30 is less than 20 ns.


The second output module 40 is used for generating second audio signals. In the embodiment, the second audio signals include at least two different channel radio audio signals.


The operation module 50 is used for generating a selecting signal by the operation of the user.


The second switch module 60 is used for switching to a selected first audio signal according to the selecting signal and transmitting the selected audio signal to the first switch module 30. The switching speed of the second switch module 60 is about 100 ms which is lower than the switching speed of the first switch module 30.


If the first control signal is not generated, the first switch module 30 switches to the second state. In the second state, the first switch module 30 transmits the selected second audio signal to the play module 70.


The play module 70 is used for playing the audio signal.


A transmitting method is used for transmitting the different audio signal of the electronic device in different ways. As shown in FIG. 2, the transmitting method includes the following steps.


In step S201, it is determined whether the first audio signal is generated. If the first audio signal is generated, the step S202 is implemented. If the first audio signal is not generated, the step S204 is implemented. In the embodiment, the first audio signal is a GPS audio signal.


In step S202, the judgment module generates a first control signal, the step S203 is implemented.


In step S203, the first switch module switches to the first state and transmits the first audio signal, the step S209 is implemented.


In step S204, the judgment module generates a second control signal.


In step S205, it is determined whether a second audio signal is generated. If the second audio signal is generated, the step S206 is implemented. If the second audio signal is not generated, return to step S201. In the embodiment, the second audio signals include at least two different audio signals.


In step S206, it is determined whether a selecting signal is generated. If the selecting signal is generated, selecting a second audio signal and the step S207 is implemented. If the selecting signal is not generated, return to step S205.


In step S207, the first switch module selects a first audio signal and transmits the selected second audio signal.


In step S208, the second switch module switches to the second state and transmits the selected second audio signal, the step S209 is implemented.


In step S209, the play unit plays the audio signal and the process ends.


As described, when the GPS audio signal is generated, the second switch module 60 transmits the GPS audio signal to the play module 70 directly, such that missing an audio signal of the GPS is minimized.


It is to be understood, even though information and advantages of the present embodiments have been set fourth in the foregoing description, together with details of the structures and functions of the present embodiments, the disclosure is illustrative only; and that changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.

Claims
  • 1. An electronic device adapted to play audio signals, the electronic device comprising: a first output module adapted to generate a first audio signal;a play module adapted to play the first audio signal;a judgment module adapted to determine whether the first audio signal is generated and generate a control signal, if the first audio signal is generated, the judgment module generates a first control signal; anda first switch module adapted to switch to a first state according to the first control signal to transmit the first audio to the play module.
  • 2. The electronic device of claim 1, wherein the first switch module includes a second state, if the first audio signal is not generated, the judgment module generates a second control signal, and the first switch module switches to the second state according to the second control signal.
  • 3. The electronic device of claim 2, wherein the electronic device further comprises a second output module, the second output module adapted to generate second audio signals, the second audio signals comprise at least two different audio signals.
  • 4. The electronic device of claim 3, wherein the electronic device further comprises an operation module and a second switch module, the operation module is used for generating a selecting signal according to the operation by a user, the second switch module is used for switching a selected second audio signal according to the selecting signal and transmitting the selected signal to the first switch module.
  • 5. The electronic device of claim 4, wherein the first switch module transmits the selected second audio signal to the play module in the second state, and the play module play the selected second audio signal.
  • 6. The electronic device of claim 4, wherein the switching speed of the first switch module is faster than the second switch module.
  • 7. The electronic device of claim 1, wherein the first switch module is a GSM3157 chip.
  • 8. The electronic device of claim 1, wherein the first audio signal is a global positioning system (GPS) audio signal.
  • 9. A transmitting method is used for transmitting different audio signals of an electronic device, and the electronic device comprises a first switch module and a play module, the transmitting method comprising: determining whether a first audio signal is generated;if the first audio signal is generated, generating a first control signal;the first switch module switches to the first state according to the first control signal and transmits the first audio signal; andthe play unit playing the audio signal.
  • 10. The method according to claim 9, wherein the first audio signal is a global positioning system (GPS) audio signal.
  • 11. The method according to claim 9, wherein the first switch module is a GSM3157 chip.
  • 12. The method according to claim 11, wherein if the first audio signal is not generated, generating a second control signal; determining whether a second audio signal is generated;if the second audio signal is generated, determining whether a selecting signal is generated; andif the selecting signal is generated, selecting the second audio signal according to the selecting signal; andthe first module switches to the second state according to the second control signal and transmits the selected second audio signal.
  • 13. The method according to claim 12, wherein the second audio signal comprises at least two different audio signals.
  • 14. The method according to claim 13, wherein the switching speed of the first switch module is faster than the second switch module.
Priority Claims (1)
Number Date Country Kind
99125574 Aug 2010 TW national