Asus U3100 Mini plus DVB-T

From LinuxTVWiki
Revision as of 11:21, 21 December 2011 by Olliv3r (talk | contribs) (add link to git repository)
Jump to navigation Jump to search

This is just some thoughts and rambling about the Asus U3100 based on the AF9035 instead of the previous DiB models.


did vendor device standard supported pic url hostinterface usbid hw tuner demodulator usbbridge fw comment E
asus-my-cinema-u3100-mini-plus ASUS My Cinema U3100 Mini Plus DVBT Tuner DVB-T Yes, Yes, in kernel since 3.7 Asus U3100 Mini plus DVB-T 01.JPG [1] USB2.0 0b05:1779 Afatech AF9035 FCI2580 af9033 af9035 [2] There's an older device by almost the same name (without the "plus"), which is dib7xxx based and works out of the box. Jump to the place where you can edit this entry
asus-my-cinema-u3100-mini-plus-v2 ASUS My Cinema U3100 Mini Plus V2 DVB-T Yes Dvb-t asus u3100mini plus v2.JPG [3] USB2.0 1b80:d393 Afatech DVB-T receiver [RTL2832U] Jump to the place where you can edit this entry


EzCap_DVB_T_Stick is the guide to be followed to get this stick working. Read both articles thoroughly and it should be able to get it working.

A croatian forum post. They link an archive with an installer in it.

When running the shell script in this archive, setup is called which extracts data to /tmp. If the setup is canceled in any way, the temporary directory gets removed. Whats interesting is, that in this directory, is the full source for various tuners and for the af9035.

To get the Asus U3100 working with this source package, a few things need to be modified. Firstly, there is a syntax error. The defines (commented):

#define CRYSTAL_19.2_MHZ
#define CRYSTAL_20.48_MHZ

cannot have dots in them. Remove the dots with a find and replace to something without one, such like:

#define CRYSTAL_19_MHZ
#define CRYSTAL_20_MHZ

I've created a repository including my changes. Legally, I don't know what its status is, but at least there's source and has been and it can be made workable. Far more then what Afatech is doing themselves and their misterious opensource driver nobody has seen yet. Feel free to clone and send patches, I will gladly integrate them. Don't expect a proper review, as I don't really know what I'm doing ;)

AF903x source

Then the USB ID for the U3100plus needs to be added to the kernels in drivers/media/dvb/dvb-usb/dvb-usb-ids.h Such like:

#define USB_PID_ASUS_U3100MINI                  0x1779

Then, the af903x driver needs to be told about this ID. This is done in af903x-devices.c Find the struct af903x_usb_id_table and add the ID's:

struct usb_device_id af903x_usb_id_table[] = {
                { USB_DEVICE(0x15A4,0x1000) },
                { USB_DEVICE(0x15A4,0x1001) },
                { USB_DEVICE(0x15A4,0x1002) },
                { USB_DEVICE(0x15A4,0x1003) },
                { USB_DEVICE(0x15A4,0x9035) },
                { USB_DEVICE(USB_VID_ASUS, USB_PID_ASUS_U3100MINI) },
                { 0},           /* Terminating entry */
};

file af903x-drv.c in all calling functions DL_SetBusTuner with hardcoded tuner Tuner_Afatech_AF9007, or other

error = DL_SetBusTuner (PDC, Bus_USB, Tuner_Afatech_AF9007);

must be change to Tuner_FCI_FC2580

error = DL_SetBusTuner (PDC, Bus_USB,  Tuner_FCI_FC2580);


file af903x-devices.c

line with .num_adapters = 1,  needs to change to 2

And finally, add the struct to the device section listing the devices.

                .num_device_descs = 2,
                .devices =  {
                    {"ITEtech USB2.0 DVB-T Receiver",
                        {&af903x_usb_id_table[0],
                         &af903x_usb_id_table[1],
                         &af903x_usb_id_table[2],
                         &af903x_usb_id_table[3],
                         &af903x_usb_id_table[4],
                         NULL},
                        {NULL},
                    }, {"Asus U3100MINI_PLUS/T/RC Receiver",
                        {&af903x_usb_id_table[5],
                         NULL},
                        {NULL},
                    }, {
                        NULL
                    },
                }

Don't know if this is ALL what is needed though.

USB Quircks are also needed for this device.

options usbhid quirks=0x0b05:0x1779:0x0004

dmesg output:

[   37.342184] usb 1-3.1: new high speed USB device using ehci_hcd and address 6
[   37.422512] usb 1-3.1: New USB device found, idVendor=0b05, idProduct=1779
[   37.422524] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   37.422533] usb 1-3.1: Product: AF9035A USB Device
[   37.422541] usb 1-3.1: Manufacturer: Afa Technologies Inc.
[   37.422549] usb 1-3.1: SerialNumber: AF0102020700001
[   37.431790] input: Afa Technologies Inc. AF9035A USB Device as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.1/1-3.1:1.1/input/input8
[   37.432503] generic-usb 0003:0B05:1779.0002: input,hidraw1: USB HID v1.01 Keyboard [Afa Technologies Inc. AF9035A USB Device] on usb-0000:00:1d.7-3.1/input1
[   37.727056] AF903X: af903x_module_init
[   37.727110]         DRIVER_RELEASE_VERSION : v9.08.14.1
[   37.727117]         FW_RELEASE_VERSION     : v8_8_63_0
[   37.727125]         API_RELEASE_VERSION    : 200.20090402.0
[   38.248134] dvb-usb: found a 'Asus U3100MINI_PLUS/T/RC Receiver' in warm state.
[   38.346245] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   38.346779] DVB: registering new adapter (Asus U3100MINI_PLUS/T/RC Receiver)
[   38.353203] DVB: registering adapter 0 frontend 0 (AF903X USB DVB-T)...
[   38.364856] dvb-usb: Asus U3100MINI_PLUS/T/RC Receiver successfully initialized and connected.
[   38.364946] usbcore: registered new interface driver dvb_usb_af903x


I can't figure out how to load or tell the af9035 what tuner to use. dvbscan doesn't do much either.

dvbscan /usr/share/dvb/dvb-t/nl-All
Unable to query frontend status

and adding -out vdr13 just waits for a long time. Leds don't go on.

Update. dvbscan just doesn't seem to work. I haven't tried scan yet, but w_scan seems to be working though! Generating a intial scan config makes scan work.

In the meantime, I have gotten it to work! Success, hurray. Suspend is utterly broken when running VDR though. Not sure if it is related to VDR or the module. Also, the module has some bug with it's register count, sometimes I see it showing up as a huge number, looking like it went from 0 -1 on an unsigned 32 bit int.

Feel free to send me a message to get this asus stick working :)

edit: I have uploaded the rare drivers v9.08.14.1 to http://ubuntuforums.org/showpost.php?p=10176778&postcount=20

edit2: Thanks for upload, some peoples are contacting me to get help with newest kernel and gcc. Compiling v9.08.14.1 may be very adventurous. I have made some pathology to original driver :) and reduce it only to ASUS_U3100_mini device and fix various incompatibilities. Minimum additional modification are needed to installing. Works well for kernel < 2.6.35. Regarding wiki copyrights restriction I can't upload it until I find out options of published.