README.dvb-usb 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. Documentation for dvb-usb-framework module and its devices
  2. Idea behind the dvb-usb-framework
  3. =================================
  4. In March 2005 I got the new Twinhan USB2.0 DVB-T device. They provided specs and a firmware.
  5. Quite keen I wanted to put the driver (with some quirks of course) into dibusb.
  6. After reading some specs and doing some USB snooping, it realized, that the
  7. dibusb-driver would be a complete mess afterwards. So I decided to do it in a
  8. different way: With the help of a dvb-usb-framework.
  9. The framework provides generic functions (mostly kernel API calls), such as:
  10. - Transport Stream URB handling in conjunction with dvb-demux-feed-control
  11. (bulk and isoc (TODO) are supported)
  12. - registering the device for the DVB-API
  13. - registering an I2C-adapter if applicable
  14. - remote-control/input-device handling
  15. - firmware requesting and loading (currently just for the Cypress USB
  16. controller)
  17. - other functions/methods which can be shared by several drivers (such as
  18. functions for bulk-control-commands)
  19. The source code of the particular DVB USB devices does just the communication
  20. with the device via the bus. The connection between the DVB-API-functionality
  21. is done via callbacks, assigned in a static device-description (struct
  22. dvb_usb_device) each device-driver has to have.
  23. For an example have a look in drivers/media/dvb/dvb-usb/vp7045*.
  24. Objective is to migrate all the usb-devices (dibusb, cinergyT2, maybe the
  25. ttusb; flexcop-usb already benefits from the generic flexcop-device) to use
  26. the dvb-usb-lib.
  27. TODO: dynamic enabling and disabling of the pid-filter in regard to number of
  28. feeds requested.
  29. Supported devices USB1.1
  30. ========================
  31. Produced and reselled by Twinhan:
  32. ---------------------------------
  33. - TwinhanDTV USB-Ter DVB-T Device (VP7041)
  34. http://www.twinhan.com/product_terrestrial_3.asp
  35. - TwinhanDTV Magic Box (VP7041e)
  36. http://www.twinhan.com/product_terrestrial_4.asp
  37. - HAMA DVB-T USB device
  38. http://www.hama.de/portal/articleId*110620/action*2598
  39. - CTS Portable (Chinese Television System) (2)
  40. http://www.2cts.tv/ctsportable/
  41. - Unknown USB DVB-T device with vendor ID Hyper-Paltek
  42. Produced and reselled by KWorld:
  43. --------------------------------
  44. - KWorld V-Stream XPERT DTV DVB-T USB
  45. http://www.kworld.com.tw/en/product/DVBT-USB/DVBT-USB.html
  46. - JetWay DTV DVB-T USB
  47. http://www.jetway.com.tw/evisn/product/lcd-tv/DVT-USB/dtv-usb.htm
  48. - ADSTech Instant TV DVB-T USB
  49. http://www.adstech.com/products/PTV-333/intro/PTV-333_intro.asp?pid=PTV-333
  50. Others:
  51. -------
  52. - Ultima Electronic/Artec T1 USB TVBOX (AN2135, AN2235, AN2235 with Panasonic Tuner)
  53. http://82.161.246.249/products-tvbox.html
  54. - Compro Videomate DVB-U2000 - DVB-T USB (2)
  55. http://www.comprousa.com/products/vmu2000.htm
  56. - Grandtec USB DVB-T
  57. http://www.grand.com.tw/
  58. - AVerMedia AverTV DVBT USB
  59. http://www.avermedia.com/
  60. - DiBcom USB DVB-T reference device (non-public)
  61. Supported devices USB2.0-only
  62. =============================
  63. - Twinhan MagicBox II
  64. http://www.twinhan.com/product_terrestrial_7.asp
  65. - TwinhanDTV Alpha
  66. http://www.twinhan.com/product_terrestrial_8.asp
  67. - DigitalNow TinyUSB 2 DVB-t Receiver
  68. http://www.digitalnow.com.au/DigitalNow%20tinyUSB2%20Specifications.html
  69. - Hanftek UMT-010
  70. http://www.globalsources.com/si/6008819757082/ProductDetail/Digital-TV/product_id-100046529
  71. Supported devices USB2.0 and USB1.1
  72. =============================
  73. - Typhoon/Yakumo/HAMA/Yuan DVB-T mobile USB2.0
  74. http://www.yakumo.de/produkte/index.php?pid=1&ag=DVB-T
  75. http://www.yuan.com.tw/en/products/vdo_ub300.html
  76. http://www.hama.de/portal/articleId*114663/action*2563
  77. http://www.anubisline.com/english/articlec.asp?id=50502&catid=002
  78. - Artec T1 USB TVBOX (FX2) (2)
  79. - Hauppauge WinTV NOVA-T USB2
  80. http://www.hauppauge.com/
  81. - KWorld/ADSTech Instant DVB-T USB2.0 (DiB3000M-B)
  82. - DiBcom USB2.0 DVB-T reference device (non-public)
  83. - AVerMedia AverTV A800 DVB-T USB2.0
  84. 1) It is working almost - work-in-progress.
  85. 2) No test reports received yet.
  86. 0. History & News:
  87. 2005-04-17 - all dibusb devices ported to make use of the dvb-usb-framework
  88. 2005-04-02 - re-enabled and improved remote control code.
  89. 2005-03-31 - ported the Yakumo/Hama/Typhoon DVB-T USB2.0 device to dvb-usb.
  90. 2005-03-30 - first commit of the dvb-usb-module based on the dibusb-source. First device is a new driver for the
  91. TwinhanDTV Alpha / MagicBox II USB2.0-only DVB-T device.
  92. (change from dvb-dibusb to dvb-usb)
  93. 2005-03-28 - added support for the AVerMedia AverTV DVB-T USB2.0 device (Thanks to Glen Harris and Jiun-Kuei Jung, AVerMedia)
  94. 2005-03-14 - added support for the Typhoon/Yakumo/HAMA DVB-T mobile USB2.0
  95. 2005-02-11 - added support for the KWorld/ADSTech Instant DVB-T USB2.0. Thanks a lot to Joachim von Caron
  96. 2005-02-02 - added support for the Hauppauge Win-TV Nova-T USB2
  97. 2005-01-31 - distorted streaming is gone for USB1.1 devices
  98. 2005-01-13 - moved the mirrored pid_filter_table back to dvb-dibusb
  99. - first almost working version for HanfTek UMT-010
  100. - found out, that Yakumo/HAMA/Typhoon are predessors of the HanfTek UMT-010
  101. 2005-01-10 - refactoring completed, now everything is very delightful
  102. - tuner quirks for some weird devices (Artec T1 AN2235 device has sometimes a
  103. Panasonic Tuner assembled). Tunerprobing implemented. Thanks a lot to Gunnar Wittich.
  104. 2004-12-29 - after several days of struggling around bug of no returning URBs fixed.
  105. 2004-12-26 - refactored the dibusb-driver, splitted into separate files
  106. - i2c-probing enabled
  107. 2004-12-06 - possibility for demod i2c-address probing
  108. - new usb IDs (Compro, Artec)
  109. 2004-11-23 - merged changes from DiB3000MC_ver2.1
  110. - revised the debugging
  111. - possibility to deliver the complete TS for USB2.0
  112. 2004-11-21 - first working version of the dib3000mc/p frontend driver.
  113. 2004-11-12 - added additional remote control keys. Thanks to Uwe Hanke.
  114. 2004-11-07 - added remote control support. Thanks to David Matthews.
  115. 2004-11-05 - added support for a new devices (Grandtec/Avermedia/Artec)
  116. - merged my changes (for dib3000mb/dibusb) to the FE_REFACTORING, because it became HEAD
  117. - moved transfer control (pid filter, fifo control) from usb driver to frontend, it seems
  118. better settled there (added xfer_ops-struct)
  119. - created a common files for frontends (mc/p/mb)
  120. 2004-09-28 - added support for a new device (Unkown, vendor ID is Hyper-Paltek)
  121. 2004-09-20 - added support for a new device (Compro DVB-U2000), thanks
  122. to Amaury Demol for reporting
  123. - changed usb TS transfer method (several urbs, stopping transfer
  124. before setting a new pid)
  125. 2004-09-13 - added support for a new device (Artec T1 USB TVBOX), thanks
  126. to Christian Motschke for reporting
  127. 2004-09-05 - released the dibusb device and dib3000mb-frontend driver
  128. (old news for vp7041.c)
  129. 2004-07-15 - found out, by accident, that the device has a TUA6010XS for
  130. PLL
  131. 2004-07-12 - figured out, that the driver should also work with the
  132. CTS Portable (Chinese Television System)
  133. 2004-07-08 - firmware-extraction-2.422-problem solved, driver is now working
  134. properly with firmware extracted from 2.422
  135. - #if for 2.6.4 (dvb), compile issue
  136. - changed firmware handling, see vp7041.txt sec 1.1
  137. 2004-07-02 - some tuner modifications, v0.1, cleanups, first public
  138. 2004-06-28 - now using the dvb_dmx_swfilter_packets, everything
  139. runs fine now
  140. 2004-06-27 - able to watch and switching channels (pre-alpha)
  141. - no section filtering yet
  142. 2004-06-06 - first TS received, but kernel oops :/
  143. 2004-05-14 - firmware loader is working
  144. 2004-05-11 - start writing the driver
  145. 1. How to use?
  146. 1.1. Firmware
  147. Most of the USB drivers need to download a firmware to start working.
  148. for USB1.1 (AN2135) you need: dvb-usb-dibusb-5.0.0.11.fw
  149. for USB2.0 HanfTek: dvb-usb-umt-010-02.fw
  150. for USB2.0 DiBcom: dvb-usb-dibusb-6.0.0.8.fw
  151. for USB2.0 AVerMedia AverTV DVB-T USB2: dvb-usb-avertv-a800-01.fw
  152. for USB2.0 TwinhanDTV Alpha/MagicBox II: dvb-usb-vp7045-01.fw
  153. The files can be found on http://www.linuxtv.org/download/firmware/ .
  154. We do not have the permission (yet) to publish the following firmware-files.
  155. You'll need to extract them from the windows drivers.
  156. You should be able to use "get_dvb_firmware dvb-usb" to get the firmware:
  157. for USB1.1 (AN2235) (a few Artec T1 devices): dvb-usb-dibusb-an2235-01.fw
  158. for USB2.0 Hauppauge: dvb-usb-nova-t-usb2-01.fw
  159. for USB2.0 ADSTech/Kworld USB2.0: dvb-usb-adstech-usb2-01.fw
  160. for USB2.0 Yakumo/Typhoon/Hama: dvb-usb-dtt200u-01.fw
  161. 1.2. Compiling
  162. Since the driver is in the linux kernel, activating the driver in
  163. your favorite config-environment should sufficient. I recommend
  164. to compile the driver as module. Hotplug does the rest.
  165. If you use dvb-kernel enter the build-2.6 directory run 'make' and 'insmod.sh
  166. load' afterwards.
  167. 1.3. Loading the drivers
  168. Hotplug is able to load the driver, when it is needed (because you plugged
  169. in the device).
  170. If you want to enable debug output, you have to load the driver manually and
  171. from withing the dvb-kernel cvs repository.
  172. first have a look, which debug level are available:
  173. modinfo dvb-usb
  174. modinfo dvb-usb-vp7045
  175. etc.
  176. modprobe dvb-usb debug=<level>
  177. modprobe dvb-usb-vp7045 debug=<level>
  178. etc.
  179. should do the trick.
  180. When the driver is loaded successfully, the firmware file was in
  181. the right place and the device is connected, the "Power"-LED should be
  182. turned on.
  183. At this point you should be able to start a dvb-capable application. I'm use
  184. (t|s)zap, mplayer and dvbscan to test the basics. VDR-xine provides the
  185. long-term test scenario.
  186. 2. Known problems and bugs
  187. - Don't remove the USB device while running an DVB application, your system
  188. will go crazy or die most likely.
  189. 2.1. Adding support for devices
  190. TODO
  191. 2.2. USB1.1 Bandwidth limitation
  192. A lot of the currently supported devices are USB1.1 and thus they have a
  193. maximum bandwidth of about 5-6 MBit/s when connected to a USB2.0 hub.
  194. This is not enough for receiving the complete transport stream of a
  195. DVB-T channel (which is about 16 MBit/s). Normally this is not a
  196. problem, if you only want to watch TV (this does not apply for HDTV),
  197. but watching a channel while recording another channel on the same
  198. frequency simply does not work very well. This applies to all USB1.1
  199. DVB-T devices, not just the dvb-usb-devices)
  200. The bug, where the TS is distorted by a heavy usage of the device is gone
  201. definitely. All dvb-usb-devices I was using (Twinhan, Kworld, DiBcom) are
  202. working like charm now with VDR. Sometimes I even was able to record a channel
  203. and watch another one.
  204. 2.3. Comments
  205. Patches, comments and suggestions are very very welcome.
  206. 3. Acknowledgements
  207. Amaury Demol (ademol@dibcom.fr) and Francois Kanounnikoff from DiBcom for
  208. providing specs, code and help, on which the dvb-dibusb, dib3000mb and
  209. dib3000mc are based.
  210. David Matthews for identifying a new device type (Artec T1 with AN2235)
  211. and for extending dibusb with remote control event handling. Thank you.
  212. Alex Woods for frequently answering question about usb and dvb
  213. stuff, a big thank you.
  214. Bernd Wagner for helping with huge bug reports and discussions.
  215. Gunnar Wittich and Joachim von Caron for their trust for providing
  216. root-shells on their machines to implement support for new devices.
  217. Glen Harris for bringing up, that there is a new dibusb-device and Jiun-Kuei
  218. Jung from AVerMedia who kindly provided a special firmware to get the device
  219. up and running in Linux.
  220. Jennifer Chen, Jeff and Jack from Twinhan for kindly supporting by
  221. writing the vp7045-driver.
  222. Some guys on the linux-dvb mailing list for encouraging me
  223. Peter Schildmann >peter.schildmann-nospam-at-web.de< for his
  224. user-level firmware loader, which saves a lot of time
  225. (when writing the vp7041 driver)
  226. Ulf Hermenau for helping me out with traditional chinese.
  227. André Smoktun and Christian Frömmel for supporting me with
  228. hardware and listening to my problems very patient.