CN104754379A - Data transmission method and data transmission device - Google Patents

Data transmission method and data transmission device Download PDF

Info

Publication number
CN104754379A
CN104754379A CN201310728608.1A CN201310728608A CN104754379A CN 104754379 A CN104754379 A CN 104754379A CN 201310728608 A CN201310728608 A CN 201310728608A CN 104754379 A CN104754379 A CN 104754379A
Authority
CN
China
Prior art keywords
data
type
top box
set top
interface socket
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.)
Granted
Application number
CN201310728608.1A
Other languages
Chinese (zh)
Other versions
CN104754379B (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.)
Honor Device Co Ltd
Original Assignee
Huawei Device Co Ltd
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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201310728608.1A priority Critical patent/CN104754379B/en
Publication of CN104754379A publication Critical patent/CN104754379A/en
Application granted granted Critical
Publication of CN104754379B publication Critical patent/CN104754379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)
  • Optical Communication System (AREA)

Abstract

The invention discloses a data transmission method and a data transmission device, belonging to the field of set top boxes. The method comprises the steps of confirming a current data type of the set top box, wherein the data type at least comprises one of an audio video (AV) signal type, a chromatic aberration component signal type and an infrared remote signal type; and the data corresponding to the current data type of the set top box is transmitted through a four-section headset interface socket. According to the current data type, the AV signal type, the chromatic aberration component signal type and the infrared remote signal type can be respectively transmitted through the four-section headset interface socket arranged on the set top box. Due to the interface sharing manner, the same interface can transmit multiple types of data, and the volume of the set top box is reduced.

Description

A kind of method of transfer of data and device
Technical field
The present invention relates to field of set-top, particularly a kind of method of transfer of data and device.
Background technology
Flourish along with Digital Television, Set Top Box has become requisite amusing products in family.In order to the transmission demand making Set Top Box support various data type, need the interface that various input and output are set on the set-top box to support various data type.Generally, the input/output interface existed on the set-top box comprises: AV(Audio Video, audio frequency and video) interface, color difference components interface and infrared remote control extended line interface, be respectively used to transmission AV signal (audio, video data), color difference components signal (video data) and infrared remote-controlled signal.
According to the current data type needing transmission, choose corresponding data wire and insert in corresponding interface, to carry out transfer of data.Wherein, AV interface uses a four-section type headset interface socket to realize the connection of Set Top Box and AV line, and by four pin pin in earphone socket respectively to audio frequency left and right acoustic channels data, video data and the signal ground in four-section type headset plug transmission AV signal; Color difference components interface uses a four-section type headset interface socket to realize the connection of Set Top Box and color difference components line, and by four pin pin in earphone socket respectively to blue difference data, red difference data, luminance signal data and the signal ground in four-section type headset plug transmission color difference components signal; Infrared remote control extended line interface uses a three-section earphone interface socket to realize the connection of Set Top Box and infrared remote control extended line, and by three pin pin in earphone socket respectively to the infrared remote-controlled signal in three-section earphone plug transmission infrared remote-controlled signal, signal ground and power for infrared remote control extended line.
To sum up, for each plug is provided with corresponding input/output interface volume greatly in Set Top Box, take up space very much for complete machine structure, this setup is unfavorable for that complete machine structure is miniaturized.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and device of transfer of data.Described technical scheme is as follows:
A kind of method of first aspect, transfer of data, Set Top Box is provided with a four-section type headset interface socket, comprises:
Determine the data type of described Set Top Box current setting, wherein said data type at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type;
By described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding.
In the first possible implementation of first aspect, the described data type determining described Set Top Box current setting, comprising:
When described Set Top Box starts, obtain the default data type pre-set;
Export the state of low and high level in GPIO interface by arranging universal input, data type current for described Set Top Box is set to described default data type.
In the implementation that the second of first aspect is possible, the described data type determining described Set Top Box current setting, comprising:
When receiving the order of change type, obtain the data type after the change of carrying in described order;
By arranging the state of low and high level in GPIO interface, data type current for described Set Top Box is set to the data type after described change.
In the third possible implementation of first aspect, described by described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described AV signal type, send audio frequency right data by the first pin in described four-section type headset interface socket; Composite video signal data are sent by the second pin in described four-section type headset interface socket; Audio frequency left channel data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
In the 4th kind of possible implementation of first aspect, described by described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described color difference components signal type, send red difference data by the first pin in described four-section type headset interface socket; Luminance signal data is sent by the second pin in described four-section type headset interface socket; Blue difference data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
In the 5th kind of possible implementation of first aspect, described by described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described infrared remote-controlled signal type, jointly receive infrared remote-controlled signal by the first pin in described four-section type headset interface socket and the 4th pin; Using the second pin in described four-section type headset interface socket as the power pin of infrared remote control extended line; Using three-prong in described four-section type headset interface socket as signal ground.
The device of second aspect, a kind of transfer of data, Set Top Box is provided with a four-section type headset interface socket, comprises:
Determination module, for determining the data type of described Set Top Box current setting, wherein said data type at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type;
Transport module, for by described four-section type headset interface socket, transmits the data that the data type current with described Set Top Box is corresponding.
In the first possible implementation of second aspect, described determination module, comprising:
First acquiring unit, for when described Set Top Box starts, obtains the default data type pre-set;
First setting unit, for exporting the state of low and high level in GPIO interface by arranging universal input, is set to described default data type by data type current for described Set Top Box.
In the implementation that the second of second aspect is possible, described determination module, comprising:
Second acquisition unit, for when receiving the order of change type, obtains the data type after the change of carrying in described order;
Second setting unit, for the state by arranging low and high level in GPIO interface, is set to the data type after described change by data type current for described Set Top Box.
In the third possible implementation of second aspect, described transport module, comprising:
First transmission unit, when being described AV signal type for the data type current when described Set Top Box, sends audio frequency right data by the first pin in described four-section type headset interface socket; Composite video signal data are sent by the second pin in described four-section type headset interface socket; Audio frequency left channel data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
In the 4th kind of possible implementation of second aspect, described transport module, comprising:
Second transmission unit, when being described color difference components signal type for the data type current when described Set Top Box, sends red difference data by the first pin in described four-section type headset interface socket; Luminance signal data is sent by the second pin in described four-section type headset interface socket; Blue difference data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
In the 5th kind of possible implementation of second aspect, described transport module, comprising:
3rd transmission unit, when being described infrared remote-controlled signal type for the data type current when described Set Top Box, receives infrared remote-controlled signal jointly by the first pin in described four-section type headset interface socket and the 4th pin; Using the second pin in described four-section type headset interface socket as the power pin of infrared remote control extended line; Using three-prong in described four-section type headset interface socket as signal ground.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By arranging a four-section type headset socket on the set-top box, the one in AV signal type, color difference components signal type and infrared remote-controlled signal type can be transmitted respectively according to the data type of current setting.By the mode of this interface duplex, same interface can be made to transmit multi-class data, reduce the volume of Set Top Box.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the transfer of data that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the transfer of data that the embodiment of the present invention two provides;
Fig. 3 is the schematic diagram of three-section earphone plug in the method for the transfer of data that the embodiment of the present invention two provides;
Fig. 4 is the schematic diagram of four-section type headset plug in the method for the transfer of data that the embodiment of the present invention two provides;
Fig. 5 is the schematic diagram of embodiment in the method for the transfer of data that the embodiment of the present invention two provides;
Fig. 6 is the apparatus structure schematic diagram of the transfer of data that the embodiment of the present invention three provides;
Fig. 7 is the structural representation of the Set Top Box that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method of transfer of data, see Fig. 1.
It should be noted that, in the embodiment of the present invention, Set Top Box be provided with and only have a four-section type headset interface socket, the data of numerous types of data can be transmitted by this four-section type headset interface socket, can carry out according to the demand of user the data of selecting the data type of current transmission corresponding.
Wherein, the method flow process comprises:
101: the data type determining Set Top Box current setting, the data type that wherein Set Top Box is current at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type;
102: by four-section type headset interface socket, the data that the current data type of conveyer top box is corresponding.
The embodiment of the present invention, by arranging a four-section type headset socket on the set-top box, can transmit the one in AV signal type, color difference components signal type and infrared remote-controlled signal type respectively according to the data type of current setting.By the mode of this interface duplex, same interface can be made to transmit multi-class data, reduce the volume of Set Top Box.
Embodiment two
Embodiments provide a kind of method of transfer of data, see Fig. 2, method flow comprises:
It should be noted that, in the embodiment of the present invention, Set Top Box be provided with and only have a four-section type headset interface socket, the data of numerous types of data can be transmitted by this four-section type headset interface socket, can carry out according to the demand of user the data of selecting the data type of current transmission corresponding.
Wherein, the method flow process comprises:
201: determine the data type that described Set Top Box is current, the current data type of wherein said Set Top Box at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type.
Data corresponding for the data type of Set Top Box current setting, when there being data transfer demands, are transmitted by four-section type headset interface socket by Set Top Box.
Therefore, the process of the data type determining Set Top Box current setting is first needed can be divided into two kinds of situations:
The first, can determine the data type of current setting when set-top-box opening starts.
In this situation, can the configuration information of reading pre-stored, wherein configuration information can for setting when Set Top Box is dispatched from the factory; Also can be modified in the configuration menu of Set Top Box as required by user after dispatching from the factory.After set-top-box opening starts, then current data type is set according to the data type of preserving in configuration information.Wherein, the configuration information prestored can be kept in the memory in Set Top Box.
Therefore, can be specially for step 201 the first situation:
2011: when described Set Top Box starts, obtain the default data type pre-set;
2012: the state exporting low and high level in GPIO interface by arranging universal input, is set to described default data type by data type current for described Set Top Box.
The second situation, user, in the use procedure of Set Top Box, can be modified to current data type by the control button on remote controller or Set Top Box.
Concrete, the data type corresponding by four-section type headset interface socket in the menu option that amendment Set Top Box is built-in is carried out.
Therefore, can be specially for step 201 the second situation:
2013: when receiving the order of change type, obtain the data type after the change of carrying in described order;
2014: by arranging the state of low and high level in GPIO interface, data type current for described Set Top Box is set to the data type after described change.
Wherein, for the process of setting data type in above-mentioned two situations, be all by the GPIO(General Purpose Input Output in main control chip, universal input/output) interface carries out controlling.Arranged by the low and high level of GPIO interface, the data type (AV signal, color difference components signal or infrared remote-controlled signal) selecting transmission can be changed.Wherein by the low and high level of GPIO interface, the mode of translation data type is set in hardware circuit design, for the mode of the channel selecting being controlled diverter switch by GPIO reaches translation data type.
In embodiments of the present invention, carried out the switching of three kinds of data types by three switches, comprising: a triple channel low conduction impedance video simulation diverter switch and two low conduction impedance switch mosfets.Wherein, by triple channel low conduction impedance video simulation diverter switch, be used for carrying out the diverter switch of AV signal and color difference components signal; By the switch of low conduction impedance switch mosfet as infrared remote-controlled signal.Wherein, the corresponding relation of the various data type of low and high level control switching of GPIO interface is as shown in table 1:
Table 1
Preferably, the data type can also carrying out another kind of mode is arranged: before each Set Top Box closes tester in power-down state, modifying, being revised as the data type that Set Top Box is current to storing data type in configuration information, uses to adapt to user's start next time.
202: by described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding.
After the data type that have chosen the transmission of four-section type headset interface socket, to the data that the data type that the data line transfer Set Top Box in this four-section type headset interface socket of access is current is corresponding.
Wherein, when the data wire of user's access is the data wire of transmission of audio or video data, the process transmitting data in step 202 is the process sending data, and this process can be:
Set Top Box by television antenna or network (comprising wired or wireless network) received RF signal to set-top box front-end tuner tuner, frequency conversion exports IQ baseband signal to CPU(Central Processing Unit, central processing unit) inner demodulation chip and other related function module settling signal demodulation, TS flows demultiplexing, mpeg decompression contracts, a series of process such as audio/video encoding/decoding, exports the data of AV signal type or the data of color difference components signal type.Now, according to the data type of Set Top Box current setting, these data are sent to the equipment that the data wire in access four-section type headset interface socket is corresponding.As shown in Figure 5, be the schematic diagram of overall plan in the embodiment of the present invention.
Therefore, when the data type of Set Top Box current setting be AV signal type or color difference components signal type time, the process arranging the data of each pin transmission in four-section type headset interface socket is:
2021: when the data type that described Set Top Box is current is described AV interface type, send audio frequency right data by the first pin in described four-section type headset interface socket; Composite video signal data are sent by the second pin in described four-section type headset interface socket; Audio frequency left channel data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground;
2022: when the data type that described Set Top Box is current is described color difference components interface type, send red difference data by the first pin in described four-section type headset interface socket; Luminance signal data is sent by the second pin in described four-section type headset interface socket; Blue difference data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
Another kind of situation, when the data wire of user's access is infrared remote control extended line, the process transmitting data in step 202 is the process receiving data, and this process is specially:
Wherein, the plug of infrared remote control extended line is a three-section earphone plug, and as shown in Figure 3, wherein pin1 to pin3 represents the first pin, the second pin and three-prong in the three-section earphone plug of infrared remote control extended line respectively.And what arrange in Set Top Box in embodiments of the present invention is a four-section type headset interface socket, as shown in Figure 4, wherein pin1 to pin4 distinguishes the first pin, the second pin, three-prong and the 4th pin in four-section type headset plug to corresponding four-section type headset plug.Corresponding the first pin in four-section type headset plug of the first pin in three-section earphone plug and the 4th pin positions, therefore the infrared remote-controlled signal data transmitted in the first pin in three-section earphone plug are after being received by four-section type headset interface socket, the infrared remote-controlled signal transmitted in the first pin that in this four-section type headset interface socket, the first pin and the 4th pin all can receive in three-section earphone plug, the signal that these two pins receive can process as a road infrared remote-controlled signal by four-section type headset interface socket.And four-section type headset interface socket does not change for the DRP data reception process of two other pin in three-section earphone plug.
Therefore, when the data type of Set Top Box current setting is infrared remote-controlled signal type, the process arranging the data of each pin transmission in four-section type headset interface socket is:
2023: when the data type that described Set Top Box is current is described infrared remote control extended line interface type, jointly receive infrared remote-controlled signal by the first pin in described four-section type headset interface socket and the 4th pin; Using the second pin in described four-section type headset interface socket as the power pin of infrared remote control extended line; Using three-prong in described four-section type headset interface socket as signal ground.
The embodiment of the present invention, by arranging a four-section type headset socket on the set-top box, can transmit the one in AV signal type, color difference components signal type and infrared remote-controlled signal type respectively according to the data type of current setting.By the mode of this interface duplex, same interface can be made to transmit multi-class data, reduce the volume of Set Top Box.
Embodiment three
Embodiments provide a kind of device of transfer of data, see Fig. 6.
Wherein, Set Top Box is provided with a four-section type headset interface socket, this device comprises:
Determination module 601, for determining the data type of described Set Top Box current setting, wherein said data type at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type.
Data corresponding for the data type of Set Top Box current setting, when there being data transfer demands, are transmitted by four-section type headset interface socket by Set Top Box.
Therefore, the process of the data type determining Set Top Box current setting is first needed can be divided into two kinds of situations:
The first, can determine the data type of current setting when set-top-box opening starts.
In this situation, can the configuration information of reading pre-stored, wherein configuration information can for setting when Set Top Box is dispatched from the factory; Also can be modified in the configuration menu of Set Top Box as required by user after dispatching from the factory.After set-top-box opening starts, then current data type is set according to the data type of preserving in configuration information.Wherein, the configuration information prestored can be kept in the memory in Set Top Box.
Therefore, in a specific embodiment, determination module 601, comprising:
First acquiring unit, for when described Set Top Box starts, obtains the default data type pre-set;
First setting unit, for exporting the state of low and high level in GPIO interface by arranging universal input, is set to described default data type by data type current for described Set Top Box.
The second situation, user, in the use procedure of Set Top Box, can be modified to current data type by the control button on remote controller or Set Top Box.
Concrete, the data type corresponding by four-section type headset interface socket in the menu option that amendment Set Top Box is built-in is carried out.
Therefore, in a specific embodiment, determination module 601, comprising:
Second acquisition unit, for when receiving the order of change type, obtains the data type after the change of carrying in described order;
Second setting unit, for the state by arranging low and high level in GPIO interface, is set to the data type after described change by data type current for described Set Top Box.
Wherein, for the process of setting data type in above-mentioned two situations, be all by the GPIO(General Purpose Input Output in main control chip, universal input/output) interface carries out controlling.Arranged by the low and high level of GPIO interface, the data type (AV signal, color difference components signal or infrared remote-controlled signal) selecting transmission can be changed.Wherein by the low and high level of GPIO interface, the mode of translation data type is set in hardware circuit design, for the mode of the channel selecting being controlled diverter switch by GPIO reaches translation data type.
In embodiments of the present invention, carried out the switching of three kinds of data types by three switches, comprising: a triple channel low conduction impedance video simulation diverter switch and two low conduction impedance switch mosfets.Wherein, by triple channel low conduction impedance video simulation diverter switch, be used for carrying out the diverter switch of AV signal and color difference components signal; By the switch of low conduction impedance switch mosfet as infrared remote-controlled signal.Wherein, the corresponding relation of the various data type of low and high level control switching of GPIO interface is as shown in table 1.
Preferably, the data type can also carrying out another kind of mode is arranged: before each Set Top Box closes tester in power-down state, modifying, being revised as the data type that Set Top Box is current to storing data type in configuration information, uses to adapt to user's start next time.
Transport module 602, for by described four-section type headset interface socket, transmits the data that the data type current with described Set Top Box is corresponding.
After the data type that have chosen the transmission of four-section type headset interface socket, to the data that the data type that the data line transfer Set Top Box in this four-section type headset interface socket of access is current is corresponding.
Wherein, when the data wire of user's access is the data wire of transmission of audio or video data, the process transmitting data in step 202 is the process sending data, and this process can be:
Set Top Box by television antenna or network (comprising wired or wireless network) received RF signal to set-top box front-end tuner tuner, frequency conversion exports IQ baseband signal to CPU(Central Processing Unit, central processing unit) inner demodulation chip and other related function module settling signal demodulation, TS flows demultiplexing, mpeg decompression contracts, a series of process such as audio/video encoding/decoding, exports the data of AV signal type or the data of color difference components signal type.Now, according to the data type of Set Top Box current setting, these data are sent to the equipment that the data wire in access four-section type headset interface socket is corresponding.As shown in Figure 5, be the schematic diagram of overall plan in the embodiment of the present invention.
Therefore, when the data type of Set Top Box current setting be AV signal type or color difference components signal type time, the unit arranging each pin transmission in four-section type headset interface socket in transport module 602 is respectively:
Wherein, described transport module 602, comprising:
First transmission unit, when being described AV signal type for the data type current when described Set Top Box, sends audio frequency right data by the first pin in described four-section type headset interface socket; Composite video signal data are sent by the second pin in described four-section type headset interface socket; Audio frequency left channel data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
Wherein, described transport module 602, comprising:
Second transmission unit, when being described color difference components signal type for the data type current when described Set Top Box, sends red difference data by the first pin in described four-section type headset interface socket; Luminance signal data is sent by the second pin in described four-section type headset interface socket; Blue difference data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
Wherein, described transport module 602, comprising:
3rd transmission unit, when being described infrared remote-controlled signal type for the data type current when described Set Top Box, receives infrared remote-controlled signal jointly by the first pin in described four-section type headset interface socket and the 4th pin; Using the second pin in described four-section type headset interface socket as the power pin of infrared remote control extended line; Using three-prong in described four-section type headset interface socket as signal ground.
The embodiment of the present invention, by arranging a four-section type headset socket on the set-top box, can transmit the one in AV signal type, color difference components signal type and infrared remote-controlled signal type respectively according to the data type of current setting.By the mode of this interface duplex, same interface can be made to transmit multi-class data, reduce the volume of Set Top Box.
Embodiment four
Embodiments provide a kind of Set Top Box, wherein, Set Top Box is provided with a four-section type headset interface socket.
Its structure is see Fig. 7, and wherein, this Set Top Box comprises: memory 701 and at least one processor 702, and processor 702 is configured to perform following operation:
Determine the data type of described Set Top Box current setting, wherein said data type at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type;
By described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding.
Set Top Box by television antenna or network (comprising wired or wireless network) received RF signal to set-top box front-end tuner tuner, frequency conversion exports IQ baseband signal to CPU(Central Processing Unit, central processing unit) inner demodulation chip and other related function module settling signal demodulation, TS flows demultiplexing, mpeg decompression contracts, a series of process such as audio/video encoding/decoding, exports the data of AV signal type or the data of color difference components signal type.Now, according to the data type of Set Top Box current setting, these data are sent to the equipment that the data wire in access four-section type headset interface socket is corresponding.As shown in Figure 5, be the schematic diagram of overall plan in the embodiment of the present invention.
Wherein, the described data type determining described Set Top Box current setting, comprising:
When described Set Top Box starts, obtain the default data type pre-set;
Export the state of low and high level in GPIO interface by arranging universal input, data type current for described Set Top Box is set to described default data type.
Concrete, in this situation, can the configuration information of reading pre-stored, wherein configuration information can for setting when Set Top Box is dispatched from the factory; Also can be modified in the configuration menu of Set Top Box as required by user after dispatching from the factory.After set-top-box opening starts, then current data type is set according to the data type of preserving in configuration information.Wherein, the configuration information stored up in advance can be kept in the memory in Set Top Box.
Wherein, the described data type determining described Set Top Box current setting, comprising:
When receiving the order of change type, obtain the data type after the change of carrying in described order;
By arranging the state of low and high level in GPIO interface, data type current for described Set Top Box is set to the data type after described change.
Concrete, the data type corresponding by four-section type headset interface socket in the menu option that amendment Set Top Box is built-in is carried out.
Wherein, for the process of setting data type in above-mentioned two situations, be all by the GPIO(General Purpose Input Output in main control chip, universal input/output) interface carries out controlling.Arranged by the low and high level of GPIO interface, the data type (AV signal, color difference components signal or infrared remote-controlled signal) selecting transmission can be changed.Wherein by the low and high level of GPIO interface, the mode of translation data type is set in hardware circuit design, for the mode of the channel selecting being controlled diverter switch by GPIO reaches translation data type.
In embodiments of the present invention, carried out the switching of three kinds of data types by three switches, comprising: a triple channel low conduction impedance video simulation diverter switch and two low conduction impedance switch mosfets.Wherein, by triple channel low conduction impedance video simulation diverter switch, be used for carrying out the diverter switch of AV signal and color difference components signal; By the switch of low conduction impedance switch mosfet as infrared remote-controlled signal.Wherein, the corresponding relation of the various data type of low and high level control switching of GPIO interface is as shown in table 1.
Preferably, the data type can also carrying out another kind of mode is arranged: before each Set Top Box closes tester in power-down state, modifying, being revised as the data type that Set Top Box is current to storing data type in configuration information, uses to adapt to user's start next time.
Wherein, described by described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described AV signal type, send audio frequency right data by the first pin in described four-section type headset interface socket; Composite video signal data are sent by the second pin in described four-section type headset interface socket; Audio frequency left channel data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
Wherein, described by described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described color difference components signal type, send red difference data by the first pin in described four-section type headset interface socket; Luminance signal data is sent by the second pin in described four-section type headset interface socket; Blue difference data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
Wherein, described by described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described infrared remote-controlled signal type, jointly receive infrared remote-controlled signal by the first pin in described four-section type headset interface socket and the 4th pin; Using the second pin in described four-section type headset interface socket as the power pin of infrared remote control extended line; Using three-prong in described four-section type headset interface socket as signal ground.
The embodiment of the present invention, by arranging a four-section type headset socket on the set-top box, can transmit the one in AV signal type, color difference components signal type and infrared remote-controlled signal type respectively according to the data type of current setting.By the mode of this interface duplex, same interface can be made to transmit multi-class data, reduce the volume of Set Top Box.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a method for transfer of data, is characterized in that, Set Top Box is provided with a four-section type headset interface socket, described method comprises:
Determine the data type of described Set Top Box current setting, wherein said data type at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type;
By described four-section type headset interface socket, transmit the data that the data type current with described Set Top Box is corresponding.
2. method according to claim 1, is characterized in that, the described data type determining described Set Top Box current setting, comprising:
When described Set Top Box starts, obtain the default data type pre-set;
Export the state of low and high level in GPIO interface by arranging universal input, data type current for described Set Top Box is set to described default data type.
3. method according to claim 1, is characterized in that, the described data type determining described Set Top Box current setting, comprising:
When receiving the order of change type, obtain the data type after the change of carrying in described order;
By arranging the state of low and high level in GPIO interface, data type current for described Set Top Box is set to the data type after described change.
4. method according to claim 1, is characterized in that, described by described four-section type headset interface socket, transmits the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described AV signal type, send audio frequency right data by the first pin in described four-section type headset interface socket; Composite video signal data are sent by the second pin in described four-section type headset interface socket; Audio frequency left channel data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
5. method according to claim 1, is characterized in that, described by described four-section type headset interface socket, transmits the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described color difference components signal type, send red difference data by the first pin in described four-section type headset interface socket; Luminance signal data is sent by the second pin in described four-section type headset interface socket; Blue difference data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
6. method according to claim 1, is characterized in that, described by described four-section type headset interface socket, transmits the data that the data type current with described Set Top Box is corresponding, comprising:
When the data type that described Set Top Box is current is described infrared remote-controlled signal type, jointly receive infrared remote-controlled signal by the first pin in described four-section type headset interface socket and the 4th pin; Using the second pin in described four-section type headset interface socket as the power pin of infrared remote control extended line; Using three-prong in described four-section type headset interface socket as signal ground.
7. a device for transfer of data, is characterized in that, Set Top Box is provided with a four-section type headset interface socket, described device comprises:
Determination module, for determining the data type of described Set Top Box current setting, wherein said data type at least comprises the one in audio frequency and video AV signal type, color difference components signal type and infrared remote-controlled signal type;
Transport module, for by described four-section type headset interface socket, transmits the data that the data type current with described Set Top Box is corresponding.
8. device according to claim 7, is characterized in that, described determination module, comprising:
First acquiring unit, for when described Set Top Box starts, obtains the default data type pre-set;
First setting unit, for exporting the state of low and high level in GPIO interface by arranging universal input, is set to described default data type by data type current for described Set Top Box.
9. device according to claim 7, is characterized in that, described determination module, comprising:
Second acquisition unit, for when receiving the order of change type, obtains the data type after the change of carrying in described order;
Second setting unit, for the state by arranging low and high level in GPIO interface, is set to the data type after described change by data type current for described Set Top Box.
10. device according to claim 7, is characterized in that, described transport module, comprising:
First transmission unit, when being described AV signal type for the data type current when described Set Top Box, sends audio frequency right data by the first pin in described four-section type headset interface socket; Composite video signal data are sent by the second pin in described four-section type headset interface socket; Audio frequency left channel data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
11. devices according to claim 7, is characterized in that, described transport module, comprising:
Second transmission unit, when being described color difference components signal type for the data type current when described Set Top Box, sends red difference data by the first pin in described four-section type headset interface socket; Luminance signal data is sent by the second pin in described four-section type headset interface socket; Blue difference data is sent by the 4th pin in described four-section type headset interface socket; Using three-prong in described four-section type headset interface socket as signal ground.
12. devices according to claim 7, is characterized in that, described transport module, comprising:
3rd transmission unit, when being described infrared remote-controlled signal type for the data type current when described Set Top Box, receives infrared remote-controlled signal jointly by the first pin in described four-section type headset interface socket and the 4th pin; Using the second pin in described four-section type headset interface socket as the power pin of infrared remote control extended line; Using three-prong in described four-section type headset interface socket as signal ground.
CN201310728608.1A 2013-12-25 2013-12-25 A kind of method and device of data transmission Active CN104754379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310728608.1A CN104754379B (en) 2013-12-25 2013-12-25 A kind of method and device of data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310728608.1A CN104754379B (en) 2013-12-25 2013-12-25 A kind of method and device of data transmission

Publications (2)

Publication Number Publication Date
CN104754379A true CN104754379A (en) 2015-07-01
CN104754379B CN104754379B (en) 2019-04-26

Family

ID=53593383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310728608.1A Active CN104754379B (en) 2013-12-25 2013-12-25 A kind of method and device of data transmission

Country Status (1)

Country Link
CN (1) CN104754379B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187820A (en) * 2015-09-21 2015-12-23 深圳创维数字技术有限公司 Signal transmission management method and set top box
CN108259953A (en) * 2018-03-06 2018-07-06 深圳康佳信息网络有限公司 Interface multiplexing circuit, method for multiplexing interface and the set-top box of set-top box

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN201732971U (en) * 2010-07-15 2011-02-02 东莞宇球电子有限公司 Audio video conversion connecting wire of television
CN102006528A (en) * 2009-08-31 2011-04-06 幻音科技(深圳)有限公司 Earphone device
CN202167034U (en) * 2011-07-19 2012-03-14 深圳市江波龙电子有限公司 Peripheral application device and mobile terminal system
CN102394979A (en) * 2011-11-07 2012-03-28 武汉天喻信息产业股份有限公司 Method for performing high-speed data transmission through communication earphone interface
CN202206403U (en) * 2011-09-06 2012-04-25 信雅达系统工程股份有限公司 Earphone shield with payment function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006528A (en) * 2009-08-31 2011-04-06 幻音科技(深圳)有限公司 Earphone device
CN201732971U (en) * 2010-07-15 2011-02-02 东莞宇球电子有限公司 Audio video conversion connecting wire of television
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN202167034U (en) * 2011-07-19 2012-03-14 深圳市江波龙电子有限公司 Peripheral application device and mobile terminal system
CN202206403U (en) * 2011-09-06 2012-04-25 信雅达系统工程股份有限公司 Earphone shield with payment function
CN102394979A (en) * 2011-11-07 2012-03-28 武汉天喻信息产业股份有限公司 Method for performing high-speed data transmission through communication earphone interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187820A (en) * 2015-09-21 2015-12-23 深圳创维数字技术有限公司 Signal transmission management method and set top box
CN108259953A (en) * 2018-03-06 2018-07-06 深圳康佳信息网络有限公司 Interface multiplexing circuit, method for multiplexing interface and the set-top box of set-top box

Also Published As

Publication number Publication date
CN104754379B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
US10419717B2 (en) Split-type television for converting content to a standard format
US10491851B2 (en) Media stick for controlling wireless speakers
CN204316626U (en) HDMI audio frequency and video switching device shifter can be extended
KR101991541B1 (en) Apparatus and method for providing operational status for multiple communication networks
CN103067764B (en) A kind of television interface system for interactive TV
CN104469479A (en) Playing control method and terminal
CN103916694A (en) Broadcast source processing method and device
WO2015138373A1 (en) Apparatus and method for controlling an audio/video connection in a device
CN104539993B (en) A kind of broadcast high definition television access device and method based on USB transmission of video
CN201490478U (en) USB port multiplex device
CN104754379A (en) Data transmission method and data transmission device
CN103391465B (en) A kind of method controlling terminal unit and the network equipment
CN103761860B (en) A kind of method and system of the infrared adaptive learning based on Home-IOT
CN203457231U (en) Intelligent video signal switching device
CN103997677A (en) Audio and video play method and play device
CN204334852U (en) A kind of broadcast HDTV (High-Definition Television) access device based on USB transmission of video
CN103686258B (en) A kind of detection method of set top box and set top box interference signal
CN102307199A (en) Multimedia transmission and processing apparatus
CN201805521U (en) Set top box capable of controlling and processing multi-type television signals
CN101534228B (en) Device for facilitating network hard disk to support multi-equipment connection
CN204377023U (en) There is the ground of USB interface, cable digital TV tuner
CN201215987Y (en) Television signal converting device
CN107302712A (en) Separable pattern of fusion set top box
CN105828248B (en) A kind of electronic equipment and its audio frequency processing circuit, the output intent of audio signal
CN202496037U (en) Remote control circuit and digital television integrated machine containing the remote control circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant before: HUAWEI DEVICE Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20181221

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant before: Huawei terminal (Shenzhen) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210420

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right