README.dibusb 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. Documentation for dib3000* frontend drivers and dibusb device driver
  2. ====================================================================
  3. Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de),
  4. dibusb and dib3000mb/mc drivers based on GPL code, which has
  5. Copyright (C) 2004 Amaury Demol for DiBcom (ademol@dibcom.fr)
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License as
  8. published by the Free Software Foundation, version 2.
  9. Supported devices USB1.1
  10. ========================
  11. Produced and reselled by Twinhan:
  12. ---------------------------------
  13. - TwinhanDTV USB-Ter DVB-T Device (VP7041)
  14. http://www.twinhan.com/product_terrestrial_3.asp
  15. - TwinhanDTV Magic Box (VP7041e)
  16. http://www.twinhan.com/product_terrestrial_4.asp
  17. - HAMA DVB-T USB device
  18. http://www.hama.de/portal/articleId*110620/action*2598
  19. - CTS Portable (Chinese Television System) (2)
  20. http://www.2cts.tv/ctsportable/
  21. - Unknown USB DVB-T device with vendor ID Hyper-Paltek
  22. Produced and reselled by KWorld:
  23. --------------------------------
  24. - KWorld V-Stream XPERT DTV DVB-T USB
  25. http://www.kworld.com.tw/en/product/DVBT-USB/DVBT-USB.html
  26. - JetWay DTV DVB-T USB
  27. http://www.jetway.com.tw/evisn/product/lcd-tv/DVT-USB/dtv-usb.htm
  28. - ADSTech Instant TV DVB-T USB
  29. http://www.adstech.com/products/PTV-333/intro/PTV-333_intro.asp?pid=PTV-333
  30. Others:
  31. -------
  32. - Ultima Electronic/Artec T1 USB TVBOX (AN2135, AN2235, AN2235 with Panasonic Tuner)
  33. http://82.161.246.249/products-tvbox.html
  34. - Compro Videomate DVB-U2000 - DVB-T USB (2)
  35. http://www.comprousa.com/products/vmu2000.htm
  36. - Grandtec USB DVB-T
  37. http://www.grand.com.tw/
  38. - Avermedia AverTV DVBT USB (2)
  39. http://www.avermedia.com/
  40. - DiBcom USB DVB-T reference device (non-public)
  41. Supported devices USB2.0
  42. ========================
  43. - Twinhan MagicBox II (2)
  44. http://www.twinhan.com/product_terrestrial_7.asp
  45. - Hanftek UMT-010 (1)
  46. http://www.globalsources.com/si/6008819757082/ProductDetail/Digital-TV/product_id-100046529
  47. - Typhoon/Yakumo/HAMA DVB-T mobile USB2.0 (1)
  48. http://www.yakumo.de/produkte/index.php?pid=1&ag=DVB-T
  49. - Artec T1 USB TVBOX (FX2) (2)
  50. - Hauppauge WinTV NOVA-T USB2
  51. http://www.hauppauge.com/
  52. - KWorld/ADSTech Instant DVB-T USB2.0 (DiB3000M-B)
  53. - DiBcom USB2.0 DVB-T reference device (non-public)
  54. 1) It is working almost.
  55. 2) No test reports received yet.
  56. 0. NEWS:
  57. 2005-02-11 - added support for the KWorld/ADSTech Instant DVB-T USB2.0. Thanks a lot to Joachim von Caron
  58. 2005-02-02 - added support for the Hauppauge Win-TV Nova-T USB2
  59. 2005-01-31 - distorted streaming is finally gone for USB1.1 devices
  60. 2005-01-13 - moved the mirrored pid_filter_table back to dvb-dibusb
  61. - first almost working version for HanfTek UMT-010
  62. - found out, that Yakumo/HAMA/Typhoon are predessors of the HanfTek UMT-010
  63. 2005-01-10 - refactoring completed, now everything is very delightful
  64. - tuner quirks for some weird devices (Artec T1 AN2235 device has sometimes a
  65. Panasonic Tuner assembled). Tunerprobing implemented. Thanks a lot to Gunnar Wittich.
  66. 2004-12-29 - after several days of struggling around bug of no returning URBs fixed.
  67. 2004-12-26 - refactored the dibusb-driver, splitted into separate files
  68. - i2c-probing enabled
  69. 2004-12-06 - possibility for demod i2c-address probing
  70. - new usb IDs (Compro,Artec)
  71. 2004-11-23 - merged changes from DiB3000MC_ver2.1
  72. - revised the debugging
  73. - possibility to deliver the complete TS for USB2.0
  74. 2004-11-21 - first working version of the dib3000mc/p frontend driver.
  75. 2004-11-12 - added additional remote control keys. Thanks to Uwe Hanke.
  76. 2004-11-07 - added remote control support. Thanks to David Matthews.
  77. 2004-11-05 - added support for a new devices (Grandtec/Avermedia/Artec)
  78. - merged my changes (for dib3000mb/dibusb) to the FE_REFACTORING, because it became HEAD
  79. - moved transfer control (pid filter, fifo control) from usb driver to frontend, it seems
  80. better settled there (added xfer_ops-struct)
  81. - created a common files for frontends (mc/p/mb)
  82. 2004-09-28 - added support for a new device (Unkown, vendor ID is Hyper-Paltek)
  83. 2004-09-20 - added support for a new device (Compro DVB-U2000), thanks
  84. to Amaury Demol for reporting
  85. - changed usb TS transfer method (several urbs, stopping transfer
  86. before setting a new pid)
  87. 2004-09-13 - added support for a new device (Artec T1 USB TVBOX), thanks
  88. to Christian Motschke for reporting
  89. 2004-09-05 - released the dibusb device and dib3000mb-frontend driver
  90. (old news for vp7041.c)
  91. 2004-07-15 - found out, by accident, that the device has a TUA6010XS for
  92. PLL
  93. 2004-07-12 - figured out, that the driver should also work with the
  94. CTS Portable (Chinese Television System)
  95. 2004-07-08 - firmware-extraction-2.422-problem solved, driver is now working
  96. properly with firmware extracted from 2.422
  97. - #if for 2.6.4 (dvb), compile issue
  98. - changed firmware handling, see vp7041.txt sec 1.1
  99. 2004-07-02 - some tuner modifications, v0.1, cleanups, first public
  100. 2004-06-28 - now using the dvb_dmx_swfilter_packets, everything
  101. runs fine now
  102. 2004-06-27 - able to watch and switching channels (pre-alpha)
  103. - no section filtering yet
  104. 2004-06-06 - first TS received, but kernel oops :/
  105. 2004-05-14 - firmware loader is working
  106. 2004-05-11 - start writing the driver
  107. 1. How to use?
  108. NOTE: This driver was developed using Linux 2.6.6.,
  109. it is working with 2.6.7 and above.
  110. Linux 2.4.x support is not planned, but patches are very welcome.
  111. NOTE: I'm using Debian testing, so the following explaination (especially
  112. the hotplug-path) needn't match your system, but probably it will :).
  113. The driver is included in the kernel since Linux 2.6.10.
  114. 1.1. Firmware
  115. The USB driver needs to download a firmware to start working.
  116. You can either use "get_dvb_firmware dibusb" to download the firmware or you
  117. can get it directly via
  118. for USB1.1 (AN2135)
  119. http://www.linuxtv.org/downloads/firmware/dvb-dibusb-5.0.0.11.fw
  120. for USB1.1 (AN2235) (a few Artec T1 devices)
  121. http://www.linuxtv.org/downloads/firmware/dvb-dibusb-an2235-1.fw
  122. for USB2.0 (FX2) Hauppauge, DiBcom
  123. http://www.linuxtv.org/downloads/firmware/dvb-dibusb-6.0.0.5.fw
  124. for USB2.0 ADSTech/Kworld USB2.0
  125. http://www.linuxtv.org/downloads/firmware/dvb-dibusb-adstech-usb2-1.fw
  126. for USB2.0 HanfTek
  127. http://www.linuxtv.org/downloads/firmware/dvb-dibusb-an2235-1.fw
  128. 1.2. Compiling
  129. Since the driver is in the linux kernel, activating the driver in
  130. your favorite config-environment should sufficient. I recommend
  131. to compile the driver as module. Hotplug does the rest.
  132. 1.3. Loading the drivers
  133. Hotplug is able to load the driver, when it is needed (because you plugged
  134. in the device).
  135. If you want to enable debug output, you have to load the driver manually and
  136. from withing the dvb-kernel cvs repository.
  137. first have a look, which debug level are available:
  138. modinfo dib3000mb
  139. modinfo dib3000-common
  140. modinfo dib3000mc
  141. modinfo dvb-dibusb
  142. modprobe dib3000-common debug=<level>
  143. modprobe dib3000mb debug=<level>
  144. modprobe dib3000mc debug=<level>
  145. modprobe dvb-dibusb debug=<level>
  146. should do the trick.
  147. When the driver is loaded successfully, the firmware file was in
  148. the right place and the device is connected, the "Power"-LED should be
  149. turned on.
  150. At this point you should be able to start a dvb-capable application. For myself
  151. I used mplayer, dvbscan, tzap and kaxtv, they are working. Using the device
  152. in vdr is working now also.
  153. 2. Known problems and bugs
  154. - Don't remove the USB device while running an DVB application, your system will die.
  155. 2.1. Adding support for devices
  156. It is not possible to determine the range of devices based on the DiBcom
  157. reference designs. This is because the reference design of DiBcom can be sold
  158. to thirds, without telling DiBcom (so done with the Twinhan VP7041 and
  159. the HAMA device).
  160. When you think you have a device like this and the driver does not recognizes it,
  161. please send the ****load*.inf and the ****cap*.inf of the Windows driver to me.
  162. Sometimes the Vendor or Product ID is identical to the ones of Twinhan, even
  163. though it is not a Twinhan device (e.g. HAMA), then please send me the name
  164. of the device. I will add it to this list in order to make this clear to
  165. others.
  166. If you are familar with C you can also add the VID and PID of the device to
  167. the dvb-dibusb-core.c-file and create a patch and send it over to me or to
  168. the linux-dvb mailing list, _after_ you have tried compiling and modprobing
  169. it.
  170. 2.2. USB1.1 Bandwidth limitation
  171. Most of the currently supported devices are USB1.1 and thus they have a
  172. maximum bandwidth of about 5-6 MBit/s when connected to a USB2.0 hub.
  173. This is not enough for receiving the complete transport stream of a
  174. DVB-T channel (which can be about 16 MBit/s). Normally this is not a
  175. problem, if you only want to watch TV (this does not apply for HDTV),
  176. but watching a channel while recording another channel on the same
  177. frequency simply does not work very well. This applies to all USB1.1
  178. DVB-T devices, not just dibusb)
  179. Update: For the USB1.1 and VDR some work has been done (patches and comments
  180. are still very welcome). Maybe the problem is solved in the meantime because I
  181. now use the dmx_sw_filter function instead of dmx_sw_filter_packet. I hope the
  182. linux-dvb software filter is able to get the best of the garbled TS.
  183. The bug, where the TS is distorted by a heavy usage of the device is gone
  184. definitely. All dibusb-devices I was using (Twinhan, Kworld, DiBcom) are
  185. working like charm now with VDR. Sometimes I even was able to record a channel
  186. and watch another one.
  187. 2.3. Comments
  188. Patches, comments and suggestions are very very welcome.
  189. 3. Acknowledgements
  190. Amaury Demol (ademol@dibcom.fr) and Francois Kanounnikoff from DiBcom for
  191. providing specs, code and help, on which the dvb-dibusb, dib3000mb and
  192. dib3000mc are based.
  193. David Matthews for identifying a new device type (Artec T1 with AN2235)
  194. and for extending dibusb with remote control event handling. Thank you.
  195. Alex Woods for frequently answering question about usb and dvb
  196. stuff, a big thank you.
  197. Bernd Wagner for helping with huge bug reports and discussions.
  198. Gunnar Wittich and Joachim von Caron for their trust for giving me
  199. root-shells on their machines to implement support for new devices.
  200. Some guys on the linux-dvb mailing list for encouraging me
  201. Peter Schildmann >peter.schildmann-nospam-at-web.de< for his
  202. user-level firmware loader, which saves a lot of time
  203. (when writing the vp7041 driver)
  204. Ulf Hermenau for helping me out with traditional chinese.
  205. André Smoktun and Christian Frömmel for supporting me with
  206. hardware and listening to my problems very patient