CN103376876B - Audio Interface Unit and method for managing power supply thereof - Google Patents

Audio Interface Unit and method for managing power supply thereof Download PDF

Info

Publication number
CN103376876B
CN103376876B CN201210126593.7A CN201210126593A CN103376876B CN 103376876 B CN103376876 B CN 103376876B CN 201210126593 A CN201210126593 A CN 201210126593A CN 103376876 B CN103376876 B CN 103376876B
Authority
CN
China
Prior art keywords
audio interface
unit
control module
main control
dormant state
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
Application number
CN201210126593.7A
Other languages
Chinese (zh)
Other versions
CN103376876A (en
Inventor
陈官学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201210126593.7A priority Critical patent/CN103376876B/en
Publication of CN103376876A publication Critical patent/CN103376876A/en
Application granted granted Critical
Publication of CN103376876B publication Critical patent/CN103376876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses Audio Interface Unit and method for managing power supply thereof, the main control module of Audio Interface Unit is for being set to dormant state by least one in self and Audio interface block and Service Processing Module in initialization procedure after the power-up, and only when there being task requests, just switch to duty to perform inter-related task by dormant state.Sound intermediate frequency interface arrangement operating power consumption of the present invention is less, can reduce the use cost of Audio Interface Unit, is more conducive to the volume reducing Audio Interface Unit, improves the portability of Audio Interface Unit.

Description

Audio Interface Unit and method for managing power supply thereof
Technical field
The present invention relates to the communications field, particularly relate to Audio Interface Unit and method for managing power supply thereof.
Background technology
Within 2007, rise, the emergence of Web bank, achieved the flourish of USB-Key market, the online payment amount of money increases year by year, becomes a kind of requisite modes of payments gradually.Over 2008, along with the rise of Google's Android operation system, and Apple iPhone series mobile phone, iPad series panel computer popular, the intelligent terminal such as smart mobile phone, panel computer surges forward.PC (PC) has been no longer the essential terminal of online.The terminal that can realize online payment also progressively expands on the intelligent terminals such as smart mobile phone, panel computer and iPad by original PC terminal, but existing general USB-Key adopts USB interface to communicate with intelligent terminal, and general USB interface is not set on the intelligent terminals such as smart mobile phone, panel computer and iPad, therefore traditional USB-Key cannot be directly connected to these intelligent terminals and realize online payment.
On the intelligent terminals such as smart mobile phone, panel computer and iPad, audio output port and recording input port (being commonly called as audio interface) are uniquely general interfaces, therefore the application based on the key device of audio interface is more and more extensive, it has better versatility compared with traditional U-Key.But audio interface is compared with USB interface, USBHost maximum work output consumption is 2.5W, and the maximum work output consumption of audio interface is within 30mA, therefore existing Audio Interface Unit must carry the enough large power supply of output power for its power supply, add the use cost of Audio Interface Unit, also make the volume of Audio Interface Unit comparatively large, be not easy to carry, reduce the satisfaction of Consumer's Experience, be unfavorable for promoting the use of of Audio Interface Unit.Equally, based on audio interface DRM (DigitalRightsManagement) apparatus for protecting copyright and also there are the problems referred to above based on the payment terminal of audio interface.
Summary of the invention
The main technical problem to be solved in the present invention is, a kind of Audio Interface Unit and method for managing power supply thereof are provided, operating power consumption and the use cost of Audio Interface Unit can be reduced, be more conducive to the volume reducing Audio Interface Unit, improve the portability of Audio Interface Unit.
For solving the problems of the technologies described above, the invention provides a kind of Audio Interface Unit, comprising the Audio interface block, main control module and the Service Processing Module that connect successively,
Described Audio interface block is used for being communicated to connect by audio interface with communication party, receives the data that also storing communication side is sent by audio interface, to the complete notice of described main control module transmission and reception after receiving; Receive the data processed result of described main control module transmission and send request, according to described sending request, described data processed result being sent to communication party;
After receiving notice described in described main control module is used for receiving, the described data stored by described Audio interface block send to described Service Processing Module, and issue process request to described Service Processing Module; After receiving the notice that is disposed of described Service Processing Module transmission, the data processed result that described Service Processing Module stores is sent to described Audio interface block, issues to described Audio interface block and send request;
Described Service Processing Module is used for carrying out process according to described process request to described data and obtains data processed result, the described data processed result obtained is stored, and to the complete notice of described main control module transmission processing;
Described main control module is also in initialization procedure after the power-up, at least one in self and described Audio interface block and Service Processing Module is set to dormant state, be in the module of dormant state when receiving task requests, switch to state of activation by dormant state, perform the task that this task requests is asked.
In an embodiment of the present invention, described main control module also arranges after the module being in dormant state switches to state of activation to execute inter-related task by dormant state, again switches to dormant state by state of activation.
In an embodiment of the present invention, when described Audio interface block being set to dormant state in the initialization procedure that described main control module is used for after the power-up, described Audio interface block is also for before the data sent by audio interface received communication side, judge whether communication party sends data receiver request to it, in this way, state of activation is switched to, the data of then received communication side's transmission by dormant state; And judge whether to receive in receiving course, as judged to receive, to the complete notice of described master control reason module transmission and reception, and after the dormancy instruction receiving main control module transmission, switch to dormant state by state of activation; And before sending request described in the transmission of reception main control module, the activation instruction receiving main control module transmission also switches to state of activation according to this activation instruction by dormant state;
Described main control module, also for after receiving notice described in receiving, sends dormancy instruction to described Audio interface block; Before sending request described in sending to described Audio interface block, send activation instruction to described Audio interface block.
In an embodiment of the present invention, when self being set to dormant state in the initialization procedure that described main control module is used for after the power-up, also for after receiving notice described in receiving, switch to state of activation by dormant state, then the data that described Audio interface block stores are sent to described Service Processing Module; After the request of described Service Processing Module transmission processing, switch to dormant state by state of activation; And after receiving the notice that is disposed of described Service Processing Module, switch to state of activation by dormant state, then the data processed result that described Service Processing Module stores is sent to Audio interface block; After sending request described in sending to described Audio interface block, switch to dormant state by state of activation.
In an embodiment of the present invention, when described Service Processing Module being set to dormant state in the initialization procedure that described main control module is used for after the power-up, described main control module also for before the request of described Service Processing Module transmission processing, sends activation instruction to described Service Processing Module; And after receiving the notice that is disposed of described Service Processing Module transmission, send dormancy instruction to described Service Processing Module;
Described Service Processing Module also for before receiving described process request, switches to state of activation according to described activation instruction by dormant state, then asks to process described data according to described process; And after the dormancy instruction receiving the transmission of described main control module, switch to dormant state by state of activation.
In an embodiment of the present invention, described Audio interface block also for after sending request described in basis described data processed result being sent to communication party, is sent notice to described main control module; And after the dormancy instruction receiving the transmission of described main control module, switch to dormant state by state of activation;
Described main control module, also for after being sent notice described in receiving, sends sleep command to described Audio interface block.
In an embodiment of the present invention, described Audio interface block comprises the control module in audio interface microphone pole and earth polar, detecting signal unit, audio signal reception unit, the first sound signal converting unit, the second sound signal converting unit, storage unit, sound signal transmitting element and working state control unit, described audio signal reception unit docks with the sound channel pole of audio interface, wherein
The control module in described audio interface microphone pole and earth polar is used for identifying the Mike pole of described audio interface and earth polar, is docked by described sound signal transmitting element, docked by earth potential with the earth polar identified with the Mike pole identified;
Whether described detecting signal unit sends data receiver request to described Audio Interface Unit for detecting communication party, and when testing result is for being, testing result is sent to working state control unit;
Described audio signal reception unit is used for receiving sound signal from described transmission by the sound channel pole of described audio interface, and after receiving, transmission and reception are complete informs described main control module;
Described first sound signal converting unit is used for the sound signal from described communication party to be converted to digital signal;
Described second sound signal converting unit is used for treating that the digital signal sent to described communication party is converted to sound signal;
Described storage unit is for storing the digital signal of described first sound signal cell translation and the digital signal treating to send to described communication party;
Described sound signal transmitting element is used for, by the Mike pole of described audio interface, the sound signal that described second sound signal converting unit obtains is sent to described communication party, and informs described main control module for being sent after judgement is sent;
Described working state control unit is used for the activation command that sends according to described testing result, described main control module and sleep command controls the duty of described Audio interface block respectively.
In an embodiment of the present invention, whether described detecting signal unit detects communication party to the request of described Audio Interface Unit transmission data receiver by detecting Audio Data Line change in voltage situation.
In an embodiment of the present invention, whether described audio signal reception unit has reached preset length according to the data length received or in preset time period, whether has not all received new data that to judge whether data accept complete.
In an embodiment of the present invention, the control module in described audio interface microphone pole and earth polar comprises:
Acquiring unit, for obtaining described audio frequency apparatus behind unlatching recording channel, the electric signal of each pole in the input extremely of a pair audio frequency in its audio interface;
Recognition unit, for Mike pole and earth polar according to the electric signal identification of each pole in described a pair audio frequency input extremely;
Port switch unit, after identifying Mike pole and earth polar, docks described sound signal transmitting element with described Mike pole, is docked by earth potential with described earth polar for described recognin unit.
In an embodiment of the present invention, described acquiring unit is voltage domain converting unit, for setting up current channel between described a pair audio frequency input pole, access with reference to earth potential in the node of described current channel, to obtain in the input extremely of described a pair audio frequency each pole relative to the voltage relative value of described ground reference.
In an embodiment of the present invention, described recognition unit comprises the first recognin unit, for detecting the positive negative characteristic of the voltage relative value of each pole in described a pair audio frequency input extremely, Mike pole and described earth polar according to testing result identification.
In an embodiment of the present invention, described recognition unit comprises:
Second recognin unit, for the voltage relative value of each pole in described a pair audio frequency input extremely being compared with described ground reference respectively, exports a digital signal level respectively according to respective comparative result;
Logic judgment subelement, for Mike pole and described earth polar according to two digital signal level identifications of described second recognin module output.
In an embodiment of the present invention, described Service Processing Module is security algorithm module.
In an embodiment of the present invention, self and described Audio interface block and Service Processing Module, in the initialization procedure after powering on, are all set to dormant state by described main control module.
In an embodiment of the present invention, described device also comprises power module, and described power module is used for powering for described Audio interface block, main control module and Service Processing Module.
Present invention also offers a kind of method for managing power supply of Audio Interface Unit, described Audio Interface Unit comprises Audio interface block, main control module and Service Processing Module; Described method comprises: in described main control module initialization procedure after the power-up, at least one in self and described Audio interface block and Service Processing Module is set to dormant state, be in the module of dormant state only when receiving task requests, switch to state of activation by dormant state, perform the task that this task requests is asked.
In an embodiment of the present invention, described method also comprises: described main control module also arranges after the module being in dormant state switches to state of activation to execute inter-related task by dormant state, again switches to dormant state by state of activation.
In an embodiment of the present invention, in described main control module initialization procedure after the power-up, self and described Audio interface block and Service Processing Module are all set to dormant state.
The invention has the beneficial effects as follows:
In the present invention, the main control module of Audio Interface Unit is for being set to dormant state by least one in self and Audio interface block and Service Processing Module in initialization procedure after the power-up, and only when there being task requests, just switch to duty to perform inter-related task by dormant state; Therefore Audio interface block to be connected with communication party by audio interface and after power-up initializing; not as existing Audio Interface Unit or audio interface DRM protective device and be all in state of activation based on each module of the payment terminal of audio interface; therefore sound intermediate frequency interface arrangement operating power consumption of the present invention is less; the use cost of Audio Interface Unit can be reduced; be more conducive to the volume reducing Audio Interface Unit, improve the portability of Audio Interface Unit.
Further, the main control module of sound intermediate frequency interface arrangement of the present invention also can arrange further be in dormant state module after switching to state of activation to execute corresponding task, again dormant state is switched to by state of activation, namely at least one module is executing task and without new task executable period, is being in dormant state; Not no matter whether each module of existing Audio Interface Unit have tasks carrying to be all in state of activation, therefore can reduce the power consumption of Audio Interface Unit further.
Accompanying drawing explanation
The structural representation of the Audio Interface Unit that Fig. 1 provides for an embodiment of the present invention;
The structural representation of the Audio Interface Unit that Fig. 2 provides for the another kind of embodiment of the present invention;
Fig. 3 is signal processing unit structural representation in the another kind of embodiment of invention;
The structural representation of the control module that Fig. 4 is the sound intermediate frequency of signal processing unit shown in Fig. 3 interface MIC pole and gnd electrode;
Another structural representation of the control module that Fig. 5 is the sound intermediate frequency of signal processing unit shown in Fig. 3 interface MIC pole and gnd electrode;
The another structural representation of the control module that Fig. 6 is the sound intermediate frequency of signal processing unit shown in Fig. 3 interface MIC pole and gnd electrode;
The schematic diagram of the equivalent circuit structure of the control module that Fig. 7 is the pole of audio interface MIC shown in Fig. 6 and gnd electrode;
Fig. 8 a is the schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 7;
Fig. 8 b is another schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 7;
Fig. 8 c is another schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 7;
Fig. 8 d is another schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 7;
Fig. 9 is the schematic diagram of the first sound signal converting unit in signal processing unit shown in Fig. 3;
Figure 10 is the schematic diagram of the second sound signal converting unit in signal processing unit shown in Fig. 3;
Figure 11 is the structural representation of signal processing unit in another embodiment of the present invention;
Figure 12 is the structural representation of signal processing unit in another embodiment of the present invention;
Figure 13 is the structural representation of signal processing unit in another embodiment of the present invention;
Figure 14 is the process flow diagram of the signal processing method of signal processing unit shown in Figure 13;
Figure 15 is the structural representation of the another kind of embodiment Audio Interface Unit of the present invention;
Figure 16 is the method for managing power supply schematic flow sheet of the another kind of embodiment Audio Interface Unit of the present invention.
Embodiment
By reference to the accompanying drawings the present invention is described in further detail below by embodiment.
The method for managing power supply of the Audio Interface Unit that the technical program provides is by being set as dormant state when Audio interface block communicates with the external world by other functional modules arranging Audio Interface Unit, to avoid other functional modules except Audio interface block of Audio Interface Unit to be in state of activation in communication process all always, and then the power consumption of Audio Interface Unit can be reduced.Below in conjunction with several specific embodiment, clear complete explanation is further done to the technical program.
Audio Interface Unit in the present embodiment carries out data interaction with the audio frequency apparatus possessing audio interface, and by the mutual corresponding data of the audio interface of audio frequency apparatus.This audio frequency apparatus can be smart mobile phone, notebook, IPAD, also can be PC; This audio frequency apparatus is claimed to be the communication party of Audio Interface Unit in the present embodiment.Refer to Fig. 1, Audio Interface Unit comprises the Audio interface block, main control module and the Service Processing Module that connect successively.
Audio interface block is used for being communicated to connect by audio interface with communication party, to pass through this audio interface interaction data; Receive the data that also storing communication side is sent by audio interface, to the complete notice of main control module transmission and reception after receiving; And for receiving data processed result that main control module sends and sending request, send request according to this data processed result received is sent to communication party;
Main control module be used for receive Audio interface block send receive notice after, by Audio interface block store data send to Service Processing Module, and to Service Processing Module issue process request; And for after receiving the notice that is disposed of Service Processing Module transmission, the data processed result that Service Processing Module stores is sent to Audio interface block, then issues to Audio interface block and send request;
The process request that Service Processing Module is used for sending according to main control module is carried out process to the data received and is obtained data processed result, the data processed result obtained is stored, and to the complete notice of main control module transmission processing.
Main control module in the present embodiment is also in the initialization procedure after Audio Interface Unit powers on, at least one in self and Audio interface block and Service Processing Module is set to dormant state, and the module being in dormant state is only when receiving task requests, switch to state of activation by dormant state, perform the task that this task requests is asked.Task requests in the present embodiment comprises various notice, instruction and various solicited message.
Namely the Audio Interface Unit in the present embodiment is after power-up initializing, at least one module is in dormant state, after having task requests, the module being in dormant state just can switch to state of activation to perform corresponding task, therefore sound intermediate frequency interface arrangement operating power consumption of the present invention is less, the use cost of Audio Interface Unit can be reduced, be more conducive to the volume reducing Audio Interface Unit, improve the portability of Audio Interface Unit.
In other embodiments of the technical program, in order to reduce the operating power consumption of Audio Interface Unit further, main control module also can arrange be in dormant state module after switching to state of activation to execute corresponding task, again dormant state need be switched to by state of activation, namely at least one module is executing task and without new task executable period, is switching to dormant state by state of activation; No matter each module not as existing Audio Interface Unit is all in state of activation the need of executing the task, and therefore can reduce the power consumption of Audio Interface Unit further.Below with main control module respectively by Audio interface block, self and Service Processing Module is arranged in a manner described time the course of work be described respectively, better to understand the technical program:
When self being set to dormant state in main control module initialization procedure after the power-up, main control module receive Audio interface block send receive notice (this receive notice can be Audio interface block generation interrupt source control signal) after, after switching to state of activation by dormant state, then just the data that Audio interface block stores are sent to Service Processing Module, main control module is after the request of Service Processing Module transmission processing, now main control module has executed and the data of audio interface has been sent to Service Processing Module and processing it to Service Processing Module of the task that gives an order, and main control module switches to dormant state by state of activation, main control module is after receiving the notice that is disposed of Service Processing Module (this reception is disposed and notifies can be the interrupt source control signal of Service Processing Module generation), state of activation is switched to again by dormant state, then the data processed result that Service Processing Module stores is sent to Audio interface block, and send request to Audio interface block, after sending request to Audio interface block, main control module has executed the data processed result that Service Processing Module stores to send to Audio interface block and give an order and has carried out outgoing task to Audio interface block, dormant state is switched to by state of activation.
When described Service Processing Module being set to dormant state in main control module initialization procedure after the power-up, main control module, before the request of Service Processing Module transmission processing, needs first to send activation instruction to Service Processing Module; And after receiving the notice that is disposed of Service Processing Module transmission, send dormancy instruction to Service Processing Module;
Service Processing Module is before the process request receiving main control module transmission, first receive the activation instruction that main control module sends, switch to state of activation according to this instruction by dormant state, the process request then sent according to main control module processes the data received; And after the dormancy instruction receiving main control module transmission, switch to dormant state by state of activation.
When Audio interface block being set to dormant state in main control module initialization procedure after the power-up, Audio interface block is before the data sent by audio interface received communication side, need judge whether communication party sends data receiver request to it, in this way, state of activation is switched to, the data of then received communication side's transmission by dormant state; And judge whether to receive in receiving course, as judged to receive, to the complete notice of main control module transmission and reception, and after receiving main control module and receiving the dormancy instruction of notice feedback according to this, switch to dormant state by state of activation; And receive main control module send send request before, first receive main control module send activation instruction and switch to state of activation according to this activation instruction by dormant state;
Main control module then receive that Audio interface block sends receive notice after, send dormancy instruction to Audio interface block; And before sending above-mentioned sending request to Audio interface block, need first to send activation instruction to Audio interface block and switch to state of activation to make Audio interface block by dormant state.
In other embodiments of the invention, after data processed result is sent to communication party by sending request of issuing according to main control module of Audio interface block, also can send to be sent and inform main control module, after main control module switches to state of activation according to this notice, send dormancy instruction to Audio interface block, make Audio interface block switch to dormant state by state of activation; Then whether master control module judges has the new solicited message received, as no, then show current do not have new task need process, the duty of self is switched to dormant state by current state of activation.
As from the foregoing, the frequent interface module of the present embodiment sound intermediate frequency interface arrangement, main control module and Service Processing Module all can when needing process without task, be in dormant state, only current have task to need process time, just switch to state of activation by dormant state; Therefore in order to reduce the power consumption of Audio Interface Unit as much as possible, be preferably in the present embodiment in main control module initialization procedure after the power-up, self and Audio interface block and Service Processing Module are all set to dormant state, in the course of the work, Audio interface block is when reception and invention data, and main control module and Service Processing Module are then in dormant state; Main control module is when the data stored by Audio interface block send to Service Processing Module, and when the data processed result that Service Processing Module stores is sent to Audio interface block, Audio interface block and Service Processing Module are all in dormant state; And in the process that the process request sent according to main control module at Service Processing Module processes the data received, Audio interface block and main control module are all in dormant state, each module of the Audio Interface Unit namely in the present embodiment all can realize time-sharing work, it is much smaller than existing Audio Interface Unit to the requirement of power, therefore be more conducive to the volume reducing Audio Interface Unit, improve its portability.Even when the audio interface of communication party can be continuously Audio Interface Unit conveying voltage, Audio Interface Unit in the technical program can not comprise power module, and select to be powered by the audio interface of communication party, the mobile phone of the IPhone series of such as apple and IPAD, the MIC voltage that its audio interface just can be utilized to export is its power supply.When the audio interface of communication party can not be powered for Audio Interface Unit, or when the power that the audio interface of communication party provides can not meet the demand of Audio Interface Unit, refer to Fig. 2, Audio Interface Unit in the technical program also comprises power module, and power module is used for powering for Audio interface block, main control module and Service Processing Module; Specifically current separately according to Audio interface block, main control module and the Service Processing Module need of power module are respectively each module for power supply.
When communicating based on audio interface, for different audio frequency apparatuses, the position disunity of Mike (MIC) pole and (GND) pole, ground in its audio interface usual, as Samsung mobile phone and i Phone, MIC pole in its audio interface and the position of gnd electrode are contrary, after same plug inserts the audio interface of these two kinds of mobile phones, the middle ring of plug and end on to electric signal be do not fix.Only have and the gnd electrode of audio frequency apparatus is docked with the earth potential of external unit, could unify ground reference, signal resolution could normally carry out, simultaneously, also only have and docked with the audio output of external unit the MIC pole of audio frequency apparatus, external unit could obtain sendaisle.Therefore, utilize before audio interface carries out data communication, be necessary to identify the MIC pole of audio interface and gnd electrode, and correctly dock with external unit, otherwise cannot data communication be carried out.The technical program is not fixed for MIC pole and gnd electrode in prior art sound intermediate frequency interface, causes the problem cannot carrying out data communication to propose following solution:
Utilize before audio interface carries out data communication, first MIC pole and gnd electrode in audio interface are identified, again the sound signal sending module in external unit is docked with the MIC pole identified, the earth potential of external unit is docked with the gnd electrode identified, after correct docking, between external unit and audio frequency apparatus, carry out data communication in conjunction with digital-to-analogue/analog to digital conversion.The Audio interface block of the technical program can be built in external unit, also can as the intermediate structure between audio frequency apparatus and external unit, carries out data interaction by the audio interface of audio frequency apparatus and audio frequency apparatus.
Front see Fig. 3, in other embodiments of the technical program, Audio interface block specifically can comprise the control module in audio interface microphone pole and earth polar, detecting signal unit, audio signal reception unit, the first sound signal converting unit, the second sound signal converting unit, storage unit, sound signal transmitting element and working state control unit, audio signal reception unit docks with the sound channel pole of audio interface, wherein
The control module in audio interface microphone pole and earth polar is used for identifying the Mike pole of audio interface and earth polar, after identification, the earth potential of Audio interface block self is docked with the earth polar identified, with the ground reference of unified audio interface module and audio frequency apparatus, sound signal transmitting element is docked with the MIC pole identified, to set up the sendaisle of Audio interface block to audio frequency apparatus transmission data.Position due to sound channel pole in audio interface (comprising left/right/MOMO sound channel) is normally fixed, therefore, audio signal reception unit in external unit and the sound channel pole of audio interface are after recording channel opened by audio frequency apparatus, automatically can complete docking, set up Audio Interface Unit receives data receiving cable from the audio frequency apparatus of communication party.Audio signal reception unit is for receiving the sound signal from communication party by the sound channel pole of audio interface, and to the complete notice of main control module transmission and reception after receiving, and audio signal transmission to the first sound signal converting unit that will receive, first sound signal converting unit is used for this sound signal from audio frequency apparatus to be converted to digital signal, second sound signal converting unit is used for the digital signal treating to send to communication party (as the data processed result that main control module sends) to be converted to sound signal, sound signal transmission is alone to be sent the sound signal converted to via the second sound signal converting unit to audio frequency apparatus in the Mike pole by audio interface, and notice is sent to main control module after being sent.Whether detecting signal unit then has to the request of Audio Interface Unit transmission data receiver for detecting communication party, and is detecting that communication party is when sending data receiver request to Audio Interface Unit, sends to working state control unit by testing result; The duty of Audio interface block then for after receiving this testing result, is switched to state of activation by dormant state by working state control unit; And control Audio interface block and switch to state of a control by dormant state after receiving activation instruction and dormancy instruction that main control module sends, and switch to dormant state by state of activation.
In the present embodiment, whether detecting signal unit detects communication party to the request of Audio Interface Unit transmission data receiver by detecting Audio Data Line change in voltage situation; When communication party sends data by audio interface to Audio Interface Unit, Audio Data Line voltage fluctuation is larger, can according to the reality situation of fluctuating arrange one fluctuation threshold value, as long as detect that fluctuation range exceeds this fluctuation threshold value, can think sending direction its have sent data receiver request.Whether audio signal reception unit has then reached default data length according to the data received or in preset time period, whether all do not received new data judges whether data receive.
As shown in Figure 4, be a kind of implementation of the control module of the sound intermediate frequency of Audio interface block shown in Fig. 3 interface MIC pole and gnd electrode.Comprise acquiring unit, recognition unit and port switch unit.Wherein, acquiring unit is opened behind recording channel for obtaining audio frequency apparatus, the electric signal of each pole in the input extremely of a pair audio frequency in its audio interface, recognition unit is used for electric signal identification MIC pole and the gnd electrode at the two poles of the earth got according to acquiring unit, port switch unit, after identifying MIC pole and gnd electrode for recognition unit, automatically the earth potential of Audio interface block equipment of itself is docked with the gnd electrode identified, with the ground reference of unified audio interface module and audio frequency apparatus, automatically by sound signal transmitting element and the MIC pole identified.
In the present embodiment, acquiring unit is voltage detection unit, after opening recording channel by existing audio frequency apparatus, MIC has this precondition of voltage higher than gnd electrode, voltage detection unit is after recording channel opened by audio frequency apparatus, the voltage of each pole in the input extremely of a pair audio frequency in its audio interface of direct-detection, two magnitude of voltage identification MIC pole and the gnd electrodes that recognition unit detects according to voltage detection unit.
As shown in Figure 5, be the another kind of implementation of the control module of the sound intermediate frequency of Audio interface block shown in Fig. 3 interface MIC pole and gnd electrode.Comprise voltage domain converting unit and the first recognin unit.After voltage domain converting unit opens recording channel by existing audio frequency apparatus, MIC has this precondition of voltage higher than gnd electrode, current channel is set up between this pair audio frequency input pole in its audio interface, access in the node of this current channel with reference to earth potential, to obtain in this pair audio frequency input extremely each pole relative to the voltage relative value of this ground reference, wherein ground reference refers to external unit, the common earth potential of control module, behind audio frequency apparatus unlatching recording channel, MIC has the voltage higher than gnd electrode, therefore, on this current channel that voltage domain converting unit is set up, electric current must be flow to gnd electrode from MIC pole, ground reference is 0, so MIC pole relative to the voltage relative value one of this ground reference be decided to be on the occasion of, gnd electrode is decided to be negative value relative to the voltage relative value one of this ground reference, therefore, a positive voltage relative value that what voltage domain converting unit exported is and a negative voltage relative value.First recognin unit identifies MIC pole and gnd electrode by the positive negative characteristic detecting voltage relative value, positive one very MIC pole, negative one very gnd electrode.
As shown in Figure 6, be the another kind of implementation of the control module of the sound intermediate frequency of Audio interface block shown in Fig. 3 interface MIC pole and gnd electrode.This embodiment is different from place embodiment illustrated in fig. 5 and is, adopt the second recognin unit and Logic judgment subelement to substitute the first recognin unit embodiment illustrated in fig. 5, namely the control module of this embodiment sound intermediate frequency interface MIC pole and gnd electrode comprises voltage domain converting unit, the second recognin unit and Logic judgment subelement.After voltage domain converting unit still opens recording channel by existing audio frequency apparatus, MIC has this precondition of voltage higher than gnd electrode, current channel is set up between this pair audio frequency input pole in its audio interface, access in the node of this current channel with reference to earth potential, to obtain in this pair audio frequency input extremely each pole relative to the voltage relative value of this ground reference.Second recognin unit comprises two comparing units, the first comparing unit and the second comparing unit, and the first comparing unit is used for a voltage relative value of voltage domain converting unit output and ground reference to compare, and exports a digital signal level according to comparative result; Second comparing unit is used for another voltage relative value of voltage domain converting unit output and ground reference to compare, and exports another digital signal level according to comparative result.Logic judgment subelement is used for the digital signal level identification MIC pole that exports according to the first comparing unit and the second comparing unit and gnd electrode.Suppose that the comparison rule of the first comparing unit and the second comparing unit is, when voltage relative value is greater than ground reference, output level 1, when voltage relative value is less than ground reference, output level 0 is (in practical application, also can on the contrary), so when the first comparing unit and the second comparing unit export are all level 0 time, show that the plug that audio frequency apparatus does not also open recording channel or external unit is not also inserted in audio interface, when any one export be level 1 time, show that audio frequency apparatus opens recording channel, a pole corresponding to level 1 is identified as MIC pole by Logic judgment subelement, a pole corresponding to level 0 is identified as gnd electrode.
The recognition unit of the audio interface MIC pole shown in Fig. 6 and gnd electrode, can realize with circuit form.As shown in Figure 7, be the circuit structure of its equivalence.Comprise voltage domain converting unit 191, first comparer 192, second comparer 193, Logic judgment subelement 194 and port change-over switch 195.Wherein, voltage domain converting unit 191 is by the electric signal of each pole in a pair audio frequency input extremely of respective rings section (A section and B section) the accessing to audio equipment of plug, voltage domain converting unit 191 adopts the form of electric resistance partial pressure, structure as shown in Figure 8 a, comprise and to be serially connected in audio interface the first resistance R1 between a pair audio frequency input pole (A section and B section corresponding to plug) and the second resistance R2, the intermediate node access ground reference AFG of the first resistance R1 and the second resistance R2, R1=R2, AFG=0.Behind existing audio frequency apparatus unlatching recording channel, MIC has the voltage higher than gnd electrode, suppose that the voltage difference of MIC pole and gnd electrode is Δ V, what voltage domain converting unit exported is respectively 1/2 Δ V ,-1/2 Δ V relative to two voltage relative values of this ground reference.First comparer 192, the voltage relative value that one input end access voltage domain converting unit 191 exports, another input end accesses this ground reference AFG, output terminal exports a digital signal level according to comparative result, if this voltage relative value is greater than this ground reference AFG, then output level 1, otherwise output level.Second comparer 193, another voltage relative value that one input end access voltage domain converting unit 191 exports, another input end accesses this ground reference AFG, output terminal exports another digital signal level according to comparative result, if this voltage relative value is greater than this ground reference AFG, then output level 1, otherwise output level.Logic judgment subelement 194, the output terminal of one input termination first comparer 192, the output terminal of another input termination second comparer 193, when the first comparer 192 and the second comparer 193 export are all level 0 time, show that recording channel also do not opened by audio frequency apparatus or the external plug of Audio interface block is not also inserted in audio interface, when any one export be level 1 time, show that audio frequency apparatus opens recording channel, a pole corresponding to level 1 is identified as MIC pole, a pole corresponding to level 0 is identified as gnd electrode, recognition result is exported to port change-over switch 195.Port change-over switch 195, automatically the earth potential (AFG) of Audio interface block equipment of itself is docked with the gnd electrode identified, with the ground reference of unified audio interface module and audio frequency apparatus, sound signal transmitting element (AFG) is docked with the MIC pole identified, to set up the passage sending data to audio frequency apparatus.
In other the present embodiment, voltage domain converting unit 191 in Fig. 7 can also adopt the form of capacitance partial pressure, as shown in Figure 8 b, comprise and to be serially connected in audio interface the first electric capacity C1 between a pair audio frequency input pole and the second electric capacity C2, the intermediate node of the first electric capacity C1 and the second electric capacity C2 accesses ground reference AFG, the first electric capacity C1, the second electric capacity C2 is identical with R1, R2 effect in Fig. 8 a.
In other the present embodiment, voltage domain converting unit 191 in Fig. 7 can also adopt the form of metal-oxide-semiconductor dividing potential drop, as shown in Figure 8 c, comprise and to be serially connected in audio interface the first metal-oxide-semiconductor N1 between a pair audio frequency input pole and the second metal-oxide-semiconductor N2, the intermediate node access ground reference AFG of the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2, also comprises for the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2 provides current source I and the 3rd metal-oxide-semiconductor N3 of grid current.First metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2 are connected with the gate voltage of the 3rd metal-oxide-semiconductor N3, and form current mirror, current source I flows through the 3rd metal-oxide-semiconductor N3, and the drain-source resistance RDS of the first metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2 is identical with R1, R2 effect in Fig. 8 a.Refer to Fig. 8 d; the further improvement of this figure for doing on the basis of voltage domain converting unit 191 shown in Fig. 8 c; voltage domain converting unit 191 as shown in figure 8d; to be connected with between the first metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2 in audio frequency input pole respectively a protective resistance R1 ', R2 ', R1 ', R2 ' plays the effect of electrostatic protection respectively.
As shown in Figure 9, be a kind of embodiment of the first sound signal converting unit in Audio interface block shown in Fig. 3.Comprise DC converting unit and comparing unit.This embodiment is applicable to channel transfer data, is also applicable to two sound channels and transmits data simultaneously, and when use two sound channels transmit data simultaneously, the data volume of its same time period transmission is the twice of a use channel transfer.Corresponding to the sound channel number in audio interface, set the sub-comparing unit of corresponding number in comparing unit, the present embodiment sets the sub-comparing unit of corresponding L channel and the sub-comparing unit of corresponding R channel.Be generally ac voltage signal due to what export from the sound channel pole of audio interface, therefore, DC converting unit is used for the sound signal conversion direct current signal of the alternating voltage form received from the sound channel pole of audio interface by audio signal reception unit.Preferably, DC converting unit carries out clamped function with to input signal centered level, make the AC signal that left and right acoustic channels is original, become the signal having certain DC component, concrete mode can be: on the ac voltage signal that sound channel pole exports, superpose positive DC voltage VDC_A, preferred VDC_A is the half of supply voltage VDD, and two sound channel poles of audio interface are connected a resistance to ground, connect resistance preferably 32 Ω or 16 Ω of resistance.The direct current signal that sub-comparing unit is used for DC converting cell translation to become with the sub-comparing unit of corresponding R channel compares with the above-mentioned DC voltage VDC_A superposed, send comparative result, if the direct current signal that DC converting cell translation becomes is greater than VDC_A, then export high level, otherwise output low level.
In other embodiments, Audio interface block shown in Fig. 3 also comprises filter burr unit.For carrying out the process of filter burr, the signal burr that filtering first sound signal converting unit causes due to circuit and signal noise to the digital signal obtained after the first sound signal converting unit conversion.
As shown in Figure 10, be a kind of embodiment of the second sound signal converting unit in Audio interface block shown in Fig. 3.Second sound signal converting unit adopts current mode DAC; it is according to the digital signal treating to send to audio frequency apparatus; the electric current of change is extracted from the MIC pole of audio interface; usually a resistance can be connected because MIC in existing audio interface extremely goes up; when the electric current extracted changes, the voltage that MIC extremely goes up along with change, by changing the voltage extremely gone up of MIC; realize the conversion of digital signal to sound signal, achieve sound signal from MIC pole input audio frequency apparatus simultaneously.
In other embodiments, Audio interface block shown in Fig. 3 also comprises amplitude/centered level control module, amplitude/centered level control module is for controlling amplitude and the centered level of the sound signal of the second sound signal converting unit output, due to different audio frequency apparatuses, the amplitude of the sound signal that its audio interface is mated and centered level difference, by the control of amplitude/centered level control module, can be better compatible from the audio interface of different audio frequency apparatus.
In other embodiments, as shown in figure 11, be Audio interface block that the present embodiment provides.This embodiment is compared with embodiment illustrated in fig. 3, Audio interface block is except comprising the control module of audio interface MIC pole and gnd electrode, audio signal reception unit, the first sound signal converting unit, the second sound signal converting unit and sound signal transmitting element, also comprise coding unit and decoding unit, decoding unit can be the decoding unit based on Differential Manchester Encoding, decode after utilizing said method to change accordingly to the received signal, obtain the raw data that audio frequency apparatus sends.Coding unit is for treating the encoding digital signals sent to audio frequency apparatus, coded system can adopt Differential Manchester Encoding, also other coded system can be adopted, as long as corresponding with the decoding process that the audio frequency apparatus communicated with it adopts, digital signal after coding is inputed to the second sound signal converting unit and changes by coding unit, after audio frequency apparatus receives the voice data after the second sound signal converting unit conversion, first be converted to digital signal, the decoding rule corresponding with coding unit is adopted to decode again, when coding unit adopts Differential Manchester Encoding, the decoding unit of audio frequency apparatus can be the decoding unit identical with coding unit.Equally, audio frequency apparatus is by before the transmitting audio data of sound channel pole, first the encoding digital signals outwards sent will be treated, its coding rule adopted is corresponding with decoding unit, again the digital signal after coding is converted to sound signal, therefore, decoding unit is used for decoding to the digital signal that the sound signal from described audio frequency apparatus converts to.
In other embodiments, as shown in figure 12, be Audio interface block that the present embodiment provides.This embodiment is in order to strengthen the reliability of data transmission further, and the signal processing unit shown in Figure 12 also has the control module of the audio interface MIC pole shown in Figure 11 and gnd electrode, audio signal reception unit, the first sound signal converting unit, the second sound signal converting unit, sound signal transmitting element, coding unit and decoding unit.Before coding unit treats the encoding digital signals sent to audio frequency apparatus, to this, Framing unit first treats that the digital signal sent to audio frequency apparatus carries out framing as stated above, the digital signal after framing is inputed to coding unit and encodes.Equally, audio frequency apparatus is by before the transmitting audio data of sound channel pole, to treat that the digital signal outwards sent first carries out framing, encode again, again the digital signal after coding is converted to sound signal, therefore, after decoding unit is decoded to the digital signal that the sound signal from audio frequency apparatus converts to, separate frame unit and as stated above solution frame is carried out to decoded digital signal.
In other embodiments, as shown in figure 13, be Audio interface block that the present embodiment provides.Be with difference embodiment illustrated in fig. 12, Audio interface block except comprising the control module of audio interface MIC pole and gnd electrode, audio signal reception unit, the first sound signal converting unit, the second sound signal converting unit, sound signal transmitting element, coding unit and decoding unit, Framing unit conciliates except frame unit, also comprise connection inspection unit, for to MIC in audio interface and and the voltage of gnd electrode check, after its voltage difference exceedes the threshold value of setting, export and connect indicator signal, be conducive to the realization of system low-power consumption pattern.
In other embodiments, as shown in figure 14, be the signal processing method of Audio interface block shown in Figure 12, its flow process comprises:
After recording channel opened by S00, audio frequency apparatus, audio signal reception unit completes with the sound channel pole of audio interface and docks, the control module of audio interface MIC pole and gnd electrode to the MIC of audio interface and and gnd electrode identify, after identification, the earth potential of Audio interface block equipment of itself is docked with the gnd electrode identified, with the ground reference of unified audio interface module and audio frequency apparatus, sound signal transmitting element is docked with the MIC pole identified, to set up the passage sending data to audio frequency apparatus.On receiving cable:
S01, audio signal reception unit receive the sound signal from audio frequency apparatus, by audio signal transmission to the first sound signal converting unit received by the sound channel pole of audio interface.Should obtain via after audio frequency apparatus framing, coding and digital-to-analog conversion from the sound signal of audio frequency apparatus.
This sound signal from audio frequency apparatus is converted to digital signal by S02, the first sound signal converting unit, exports the digital signal after conversion to decoding unit.Before transferring to decoding unit, preferably, by filtering burr unit to the digital signal after conversion.
S03, decoding unit are decoded to the digital signal that the sound signal from audio frequency apparatus converts to, by decoded digital data transmission to separating frame unit.
S04, separate frame unit solutions frame is carried out to the digital signal after decoding unit decodes, the data that obtain after solution frame are carried out buffer memory, or be sent to other processing units and carry out business processing.
On sendaisle:
S11, Framing unit take out or from other processing units, obtain the digital signal treating to send to audio frequency apparatus from buffer memory, treat that the digital signal sent to audio frequency apparatus carries out framing, the digital signal after framing is inputed to coding unit to this.
The encoding digital signals treating to send to audio frequency apparatus through framing that S12, coding unit export Framing unit, inputs to the second sound signal converting unit by the digital signal after coding.
S13, the second sound signal converting unit, by treating that the digital signal sent to audio frequency apparatus is converted to sound signal through what encode, transfer to sound signal transmitting element.
The sound signal converted to via the second sound signal converting unit is sent to audio frequency apparatus by the MIC pole of audio interface by S14, sound signal transmitting element.After audio frequency apparatus receives this sound signal, carry out analog to digital conversion, decoding, the operation of solution frame.
The technical program also utilizes before audio interface carries out data communication, first MIC pole and gnd electrode in audio interface are identified, again the sound signal transmitting element in external unit is docked with the MIC pole identified, the earth potential of external unit is docked with the gnd electrode identified, audio signal reception unit in external unit is docked with the sound channel pole of audio interface, for the data communication based on audio interface provides precondition.Further, the technical program is carried out in the process of data communication utilizing audio interface, current mode D/A conversion unit is adopted to treat that the digital signal sent to audio frequency apparatus is converted to sound signal, simulate existing microphone interface to take out the principle of work of the mode received audio signal of electric current, make the Audio interface block of the technical program and existing microphone interface can be better compatible.As long as any external unit comprises signal processing unit provided by the invention just identifies the audio interface of any audio frequency apparatus automatically MIC pole and gnd electrode by this signal processing unit, improve communication efficiency.
The Audio Interface Unit based on above-mentioned Audio interface block that it should be noted that in the present embodiment can be DRM apparatus for protecting copyright or based on the payment terminal of audio interface or Audio Interface Unit; When Audio Interface Unit is the DRM apparatus for protecting copyright based on audio interface, Service Processing Module is used for being received copyright authentication information by main control module and Audio interface block and after carrying out authentication processing to it, being sent by main control module and Audio interface block; When Audio Interface Unit is the payment terminal based on audio interface, after the process such as the card image that Service Processing Module then produces for swiping the card to external world is encrypted, sent to the communication party coordinated with the payment terminal of this audio interface by audio interface by main control module and Audio interface block; When Audio Interface Unit is Audio Interface Unit, result, then for after carrying out security algorithm verification process to the checking solicited message sended over by Audio interface block and main control module, is sent and sends to by main control module and Audio interface block the communication party coordinated with this Audio Interface Unit by audio interface by Service Processing Module.In order to better understand the technical program, be Audio Interface Unit below with Audio Interface Unit be example, the technical program be described further:
Figure 15 shows that the concrete structure schematic diagram of Audio Interface Unit, comprise the Audio interface block of connection, main control module and Service Processing Module, now this Service Processing Module is security algorithm module, the storage unit of Audio interface block is the first shared memory cell, and the data received for storing audio interface module and main control module send to the data processed result of Audio interface block; The storage unit of Service Processing Module is the second shared memory cell, for store main control module send data and to the data processed result obtained after this data processing; Audio Interface Unit also comprises power module, is three module for power supply respectively according to the current demand of Audio interface block, main control module and Service Processing Module.
After Audio Interface Unit is connected by audio interface with communication party, power on, initialization, after Audio interface block and Service Processing Module are set to dormant state by main control module, self also enters dormant state; Refer to Figure 16, data handling procedure is as follows:
Step 401: Audio interface block judges whether communication party sends data receiver request, specifically judges by said method, in this way, then thinks and have data to send over, go to step 402; Otherwise, think and do not have data to send over, continue to detect;
Step 402: Audio interface block switches to state of activation, the data that received communication side sends also are stored in the first shared memory cell;
Step 403: judge that whether Audio interface block data receiver is complete, specifically by judging whether all do not have new data to send in preset time period, in this way, then to think and receive, go to step 404; Otherwise, continue to judge whether to receive; Also can by judging whether the data length received has reached default length and judged whether to receive;
Step 404: Audio interface block transmission and reception are complete informs main control module, specifically can be and produces interrupt source control signal by Audio interface block, and the interrupt source control signal of generation is sent to main control module, to wake main control module up;
Step 405: main control module switches to state of activation, sends dormancy instruction to Audio interface block;
Step 406: Audio interface block receives above-mentioned dormancy instruction, switches to dormant state;
Step 407: the data stored in the first shared memory cell are sent to Service Processing Module by main control module, the data sent are stored in the second shared memory cell, and after being sent, after sending activation instruction and process request to Service Processing Module successively, switch to dormant state;
Step 408: Service Processing Module switches to state of activation according to above-mentioned activation instruction; According to above-mentioned process request, the data in the second shared memory cell are processed, obtain data processed result, and data processed result will be obtained be stored in the second shared memory cell; To the complete notice of main control module transmission processing, specifically can be and produce interrupt source control signal by Service Processing Module, and the interrupt source control signal of generation is sent to main control module, to wake main control module up;
Step 409: main control module switches to state of activation, issues dormancy instruction to Service Processing Module;
Step 410: Service Processing Module switches to dormant state according to this dormancy instruction;
Step 411: main control module is deposited the data processed result stored in shared storage form unit and sent to Audio interface block by second, the data processed result of transmission is stored in the first shared memory cell; And after being sent, sending activation instruction to Audio interface block successively and send request;
Step 412: Audio interface block switches to state of activation, and according to above-mentioned send request first shared memory cell store data processed result send to communication party after, notice is sent to main control module, specifically can be and produce interrupt source control signal by Audio interface block, and the interrupt source control signal of generation is sent to main control module, to wake main control module up;
Step 413: main control module switches to state of activation, sends dormancy instruction to Audio interface block;
Step 414: Audio interface block switches to dormant state according to this dormancy instruction;
Step 415: whether master control module judges has new request; As not having, go to step 416; Otherwise, go to step 417;
Step 416: then switch to dormant state by state of activation;
Step 417: continue the task that this request of execution is asked.
The technical program can realize avoiding each functional module of Audio Interface Unit in communication process, be in the state simultaneously worked, make each functional module time-sharing work, to reduce the operating power consumption of Audio Interface Unit as much as possible, the existing Audio Interface Unit of maximum power ratio required in the operating power consumption of the Audio Interface Unit therefore in the technical program or the course of work is much smaller, when the Audio Interface Unit in the technical program is self-powered, also little many than existing to the requirement of power, be conducive to the volume reducing Audio Interface Unit, reduce it to manufacture, the cost used, in the technical program, when the audio interface of communication party can be continuously Audio Interface Unit conveying voltage, Audio Interface Unit even can not comprise power module, the voltage directly utilizing the audio interface of communication party to provide just can meet the demand of Audio Interface Unit, the volume of Audio Interface Unit can be reduced further, improve its portability, and then improve the satisfaction of Consumer's Experience, be more conducive to promoting the use of of Audio Interface Unit.
Above content is in conjunction with concrete embodiment further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.

Claims (19)

1. an Audio Interface Unit, comprises the Audio interface block, main control module and the Service Processing Module that connect successively,
Described Audio interface block is used for being communicated to connect by audio interface with communication party, receives the data that also storing communication side is sent by audio interface, to the complete notice of described main control module transmission and reception after receiving; Receive the data processed result of described main control module transmission and send request, according to described sending request, described data processed result being sent to communication party;
After receiving notice described in described main control module is used for receiving, the described data stored by described Audio interface block send to described Service Processing Module, and issue process request to described Service Processing Module; After receiving the notice that is disposed of described Service Processing Module transmission, the data processed result that described Service Processing Module stores is sent to described Audio interface block, issues to described Audio interface block and send request;
Described Service Processing Module is used for carrying out process according to described process request to described data and obtains data processed result, the described data processed result obtained is stored, and to the complete notice of described main control module transmission processing;
Described main control module is also in initialization procedure after the power-up, at least one in self and described Audio interface block and Service Processing Module is set to dormant state, be in the module of dormant state when receiving task requests, switch to state of activation by dormant state, perform the task that this task requests is asked.
2. Audio Interface Unit as claimed in claim 1, is characterized in that, described main control module also arranges after the module being in dormant state switches to state of activation to execute inter-related task by dormant state, again switches to dormant state by state of activation.
3. Audio Interface Unit as claimed in claim 2, it is characterized in that, when described Audio interface block being set to dormant state in the initialization procedure that described main control module is used for after the power-up, described Audio interface block is also for before the data sent by audio interface received communication side, judge whether communication party sends data receiver request to it, in this way, switch to state of activation by dormant state, the data of then received communication side's transmission; And judge whether to receive in receiving course, as judged to receive, to the complete notice of described master control reason module transmission and reception, and after the dormancy instruction receiving main control module transmission, switch to dormant state by state of activation; And before sending request described in the transmission of reception main control module, the activation instruction receiving main control module transmission also switches to state of activation according to this activation instruction by dormant state; Described main control module, also for after receiving notice described in receiving, sends dormancy instruction to described Audio interface block; Before sending request described in sending to described Audio interface block, send activation instruction to described Audio interface block.
4. Audio Interface Unit as claimed in claim 2, it is characterized in that, when self being set to dormant state in the initialization procedure that described main control module is used for after the power-up, also for after receiving notice described in receiving, switch to state of activation by dormant state, then the data that described Audio interface block stores are sent to described Service Processing Module; After the request of described Service Processing Module transmission processing, switch to dormant state by state of activation; And after receiving the notice that is disposed of described Service Processing Module, switch to state of activation by dormant state, then the data processed result that described Service Processing Module stores is sent to Audio interface block; After sending request described in sending to described Audio interface block, switch to dormant state by state of activation.
5. Audio Interface Unit as claimed in claim 2, it is characterized in that, when described Service Processing Module being set to dormant state in the initialization procedure that described main control module is used for after the power-up, described main control module also for before the request of described Service Processing Module transmission processing, sends activation instruction to described Service Processing Module; And after receiving the notice that is disposed of described Service Processing Module transmission, send dormancy instruction to described Service Processing Module;
Described Service Processing Module also for before receiving described process request, switches to state of activation according to described activation instruction by dormant state, then asks to process described data according to described process; And after the dormancy instruction receiving the transmission of described main control module, switch to dormant state by state of activation.
6. Audio Interface Unit as claimed in claim 3, is characterized in that, described Audio interface block also for after sending request described in basis described data processed result being sent to communication party, is sent notice to described main control module; And after the dormancy instruction receiving the transmission of described main control module, switch to dormant state by state of activation;
Described main control module, also for after being sent notice described in receiving, sends sleep command to described Audio interface block.
7. Audio Interface Unit as claimed in claim 6, it is characterized in that, described Audio interface block comprises the control module in audio interface microphone pole and earth polar, detecting signal unit, audio signal reception unit, the first sound signal converting unit, the second sound signal converting unit, storage unit, sound signal transmitting element and working state control unit, described audio signal reception unit docks with the sound channel pole of audio interface, wherein
The control module in described audio interface microphone pole and earth polar is used for identifying the Mike pole of described audio interface and earth polar, is docked by described sound signal transmitting element, docked by earth potential with the earth polar identified with the Mike pole identified;
Whether described detecting signal unit sends data receiver request to described Audio Interface Unit for detecting communication party, and when testing result is for being, testing result is sent to working state control unit;
Described audio signal reception unit is used for receiving sound signal from described transmission by the sound channel pole of described audio interface, and after receiving, transmission and reception are complete informs described main control module;
Described first sound signal converting unit is used for the sound signal from described communication party to be converted to digital signal;
Described second sound signal converting unit is used for treating that the digital signal sent to described communication party is converted to sound signal;
Described storage unit is for storing the digital signal of described first sound signal cell translation and the digital signal treating to send to described communication party;
Described sound signal transmitting element is used for, by the Mike pole of described audio interface, the sound signal that described second sound signal converting unit obtains is sent to described communication party, and informs described main control module for being sent after judgement is sent;
Described working state control unit is used for the activation command that sends according to described testing result, described main control module and sleep command controls the duty of described Audio interface block respectively.
8. Audio Interface Unit as claimed in claim 7, is characterized in that, whether described detecting signal unit detects communication party to the request of described Audio Interface Unit transmission data receiver by detecting Audio Data Line change in voltage situation.
9. Audio Interface Unit as claimed in claim 7, it is characterized in that, whether described audio signal reception unit has reached preset length according to the data length received or in preset time period, whether has not all received new data that to judge whether data accept complete.
10. Audio Interface Unit as claimed in claim 7, it is characterized in that, the control module in described audio interface microphone pole and earth polar comprises:
Acquiring unit, for obtaining described audio frequency apparatus behind unlatching recording channel, the electric signal of each pole in the input extremely of a pair audio frequency in its audio interface;
Recognition unit, for Mike pole and earth polar according to the electric signal identification of each pole in described a pair audio frequency input extremely;
Port switch unit, after identifying Mike pole and earth polar, docks described sound signal transmitting element with described Mike pole, is docked by earth potential with described earth polar for described recognin unit.
11. Audio Interface Units as claimed in claim 10, it is characterized in that, described acquiring unit is voltage domain converting unit, for setting up current channel between described a pair audio frequency input pole, access with reference to earth potential in the node of described current channel, to obtain in the input extremely of described a pair audio frequency each pole relative to the voltage relative value of described ground reference.
12. Audio Interface Units as claimed in claim 11, it is characterized in that, described recognition unit comprises the first recognin unit, for detecting the positive negative characteristic of the voltage relative value of each pole in described a pair audio frequency input extremely, Mike pole and described earth polar according to testing result identification.
13. Audio Interface Units as claimed in claim 11, it is characterized in that, described recognition unit comprises:
Second recognin unit, for the voltage relative value of each pole in described a pair audio frequency input extremely being compared with described ground reference respectively, exports a digital signal level respectively according to respective comparative result;
Logic judgment subelement, for Mike pole and described earth polar according to two digital signal level identifications of described second recognin unit output.
14. Audio Interface Units as described in any one of claim 1-13, it is characterized in that, described Service Processing Module is security algorithm module.
15. Audio Interface Units as described in any one of claim 1-13, is characterized in that, self and described Audio interface block and Service Processing Module, in the initialization procedure after powering on, are all set to dormant state by described main control module.
16. Audio Interface Units as described in any one of claim 1-13, it is characterized in that, described device also comprises power module, and described power module is used for powering for described Audio interface block, main control module and Service Processing Module.
The method for managing power supply of 17. 1 kinds of Audio Interface Units, described Audio Interface Unit comprises Audio interface block, main control module and Service Processing Module; Described method comprises: in described main control module initialization procedure after the power-up, at least one in self and described Audio interface block and Service Processing Module is set to dormant state, be in the module of dormant state only when receiving task requests, switch to state of activation by dormant state, perform the task that this task requests is asked.
The method for managing power supply of 18. Audio Interface Units as claimed in claim 17, it is characterized in that, described method also comprises: described main control module also arranges after the module being in dormant state switches to state of activation to execute inter-related task by dormant state, again switches to dormant state by state of activation.
The method for managing power supply of 19. Audio Interface Units as described in claim 17 or 18, is characterized in that, in described main control module initialization procedure after the power-up, self and described Audio interface block and Service Processing Module is all set to dormant state.
CN201210126593.7A 2012-04-26 2012-04-26 Audio Interface Unit and method for managing power supply thereof Active CN103376876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210126593.7A CN103376876B (en) 2012-04-26 2012-04-26 Audio Interface Unit and method for managing power supply thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210126593.7A CN103376876B (en) 2012-04-26 2012-04-26 Audio Interface Unit and method for managing power supply thereof

Publications (2)

Publication Number Publication Date
CN103376876A CN103376876A (en) 2013-10-30
CN103376876B true CN103376876B (en) 2016-03-30

Family

ID=49462102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210126593.7A Active CN103376876B (en) 2012-04-26 2012-04-26 Audio Interface Unit and method for managing power supply thereof

Country Status (1)

Country Link
CN (1) CN103376876B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104700513B (en) * 2013-12-06 2017-04-26 牛毅 Audio-interface self-adaptation circuit, cellphone card reader and audio-interface self-adaptation method
CN103763661B (en) * 2014-01-28 2017-06-06 天地融科技股份有限公司 Intelligent cipher key equipment and audio frequency signal transmission system
CN105282653B (en) * 2014-07-11 2019-04-05 国民技术股份有限公司 Audio is inserted into automatic waking device and audio is inserted into automatic awakening method
CN107122037B (en) * 2017-04-21 2023-11-03 三明市脉源数字文化创意有限公司 Method, device and system for reducing power consumption of Type-C interface
CN112820303B (en) * 2020-12-31 2022-10-25 北京握奇数据股份有限公司 Audio interface authentication device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258874A (en) * 1998-12-31 2000-07-05 神基科技股份有限公司 Power economizer for audio signal processing circuit and its control method
CN201466380U (en) * 2009-03-09 2010-05-12 犹敏 Mobile audio interface external device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8255725B2 (en) * 2009-04-28 2012-08-28 Kabushiki Kaisha Toshiba Information processing apparatus and power-saving control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258874A (en) * 1998-12-31 2000-07-05 神基科技股份有限公司 Power economizer for audio signal processing circuit and its control method
CN201466380U (en) * 2009-03-09 2010-05-12 犹敏 Mobile audio interface external device

Also Published As

Publication number Publication date
CN103376876A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103376876B (en) Audio Interface Unit and method for managing power supply thereof
US20130130743A1 (en) Audio Jack Magnetic Card Reader
CN103379214B (en) A kind of audio communication system
US20140198928A1 (en) Audio signal receiving device, audio signal adapter device and system for transmitting audio signal
CN105635885A (en) USB interface multiplex circuit, mobile terminal and earphone
CN103679239A (en) Radio frequency reader-writer and radio frequency identification system
CN103378931A (en) Data transmission method, data receiving method and signal processing module
CN103390303B (en) Based on financial key and the control method thereof of audio frequency and USB data transmission
CN103377528B (en) Payment devices and method of payment
CN108564776A (en) Equipment debugging system, apparatus debugging method and computer storage media
CN103379397B (en) Data transfer, treatment, the signal processing method based on COBBAIF and module
CN102938870A (en) Low cost radio frequency recognition device and method based on audio interface
CN204791039U (en) Card equipment is read to two take place of split type ID cards based on smart mobile phone
CN103379488A (en) Secret key device and utilization method
CN103036276B (en) Charger, terminal, controller, system and charger recognition method
CN202512578U (en) Magnetic card reader
CN103037045A (en) USBKEY voice frequency adaptor
CN208188729U (en) Electronic equipment
CN104123484A (en) Terminal, authentication device and communication methods of terminals and authentication devices
CN103379408A (en) Signal processing module
WO2013189913A1 (en) Peripheral device for converting and transmitting digital data via an audio connector
CN102256193B (en) Audio signal receiving device and audio signal transmission system
CN103377322B (en) DRM protection device and DRM method for using license
CN208299148U (en) A kind of cell phone intelligent data line
CN204631971U (en) A kind of perception safety-protection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant