Skip to contentSkip to conversation

EC168

linux-dvb Tanguy Pruvot 2 participants 6 messages Nov 23, 2008 – Feb 14, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines
Quoted 5 lines · Jáchym Lukeš

Hi,
would it be possible for somebody to make Linux driver for EC168 chipset based USB DVB-T dongles? They are very common and affordable, I think that it would be a great thing for Linux community. This could bring digital TV to many people's desktops!

Yes, those are very common. I think there is no developer who has for this device and reverse-engineering demodulator is real pain.

I'm developer, but new one in linux...

I've another dvb key with EC168 and i've wrote a tool based on
libusb to upload firmware... the led of the key is lighting...

But i have difficulties to repeat this in a driver... for the moment...

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines · Jáchym Lukeš

Hi,
would it be possible for somebody to make Linux driver for EC168 chipset based USB DVB-T dongles? They are very common and affordable, I think that it would be a great thing for Linux community. This could bring digital TV to many people's desktops!

Yes, those are very common. I think there is no developer who has for this device and reverse-engineering demodulator is real pain.

Quoted 7 lines

I'm developer, but new one in linux...

I've another dvb key with EC168 and i've wrote a tool based on
libusb to upload firmware... the led of the key is lighting...

But i have difficulties to repeat this in a driver... for the moment...

You can find the tool sources and firmware here :

http://tanguy.ath.cx/index.php?q=EC168

And i will edit Wiki when the tuner driver will be working

http://www.linuxtv.org/wiki/index.php/E3C_EC168#GRTNTUSBV4_USB_TNT_Basic_LIGHT

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw
In reply to Tanguy Pruvot
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines · Jáchym Lukeš

Hi,
would it be possible for somebody to make Linux driver for EC168 chipset based USB DVB-T dongles? They are very common and affordable, I think that it would be a great thing for Linux community. This could bring digital TV to many people's desktops!

Yes, those are very common. I think there is no developer who has for this device and reverse-engineering demodulator is real pain.

Quoted 7 lines

I'm developer, but new one in linux...

I've another dvb key with EC168 and i've wrote a tool based on
libusb to upload firmware... the led of the key is lighting...

But i have difficulties to repeat this in a driver... for the moment...

I found these USB requests... for usb_control_message()

#define CMD_EC168_RAM 0x00 //RW- Read/Write RAM (Firmware go to addr 0-0x1EFF)
#define CMD_EC168_GETSTATUS 0x01 //R-- ex: dfu_ctrl_get(device,0x01,0x0000,0x01A0,buffer,0x1A);

#define CMD_EC168_STREAM    0x03 //R-X ex: dfu_ctrl(device,0x03,0/0x20,0xFF00);
                                 //    disable/enable streaming 
#define CMD_EC168_SET_POWER 0x04 //--X ex: dfu_ctrl(device,0x04,0/1,0x0008);
                                 //    disable/enable LED
                                 //    indexes seen: 206,208,8,9,A,B

#define CMD_EC168_UNKNOWN 0x10 //--X ???
#define CMD_EC168_READ_BUF 0x20 //R-- ex: dfu_ctrl_get(device,0x20,0x0000,0x01A0,buffer,0x1A); #define CMD_EC168_WRITE_BUF 0x21 //-W-
#define CMD_EC168_SET 0x30 //--X ex: dfu_ctrl(device, 0x30, 0x0709, 0x1A);

R Read Buffer
W Write Buffer
X Set Value/Exec (without buffer)

Updated http://www.linuxtv.org/wiki/index.php/E3C_EC168#Uploading_Firmware_to_the_device

The first USB request (0x00) can set/get the RAM... so we can compare/check uploaded firmware

Hope to find some docs on the EC168/firmware asm language... could be nice to reverse it to understand available features...

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#3 lore raw
Quoted 9 lines · Tanguy Pruvot

#define CMD_EC168_RAM 0x00 //RW- Read/Write RAM (Firmware go to addr 0-0x1EFF)
#define CMD_EC168_GETSTATUS 0x01 //R-- ex: dfu_ctrl_get(device,0x01,0x0000,0x01A0,buffer,0x1A);

#define CMD_EC168_STREAM    0x03 //R-X ex: dfu_ctrl(device,0x03,0/0x20,0xFF00);
                                 //    disable/enable streaming 
#define CMD_EC168_SET_POWER 0x04 //--X ex: dfu_ctrl(device,0x04,0/1,0x0008);
                                 //    disable/enable LED
                                 //    indexes seen: 206,208,8,9,A,B

#define CMD_EC168_UNKNOWN 0x10 //--X ???
#define CMD_EC168_READ_BUF 0x20 //R-- ex: dfu_ctrl_get(device,0x20,0x0000,0x01A0,buffer,0x1A); #define CMD_EC168_WRITE_BUF 0x21 //-W- #define CMD_EC168_SET 0x30 //--X ex: dfu_ctrl(device, 0x30, 0x0709, 0x1A);

Are you still hacking that device?
I tried to order Intel CE6230 device but got EC168 (SinoVideo 3420A-2). I take one USB-sniff and here are commands as I think:

00 firmware download
01 ? config
03 demodulator
04 ? GPIO (LED)
10 streaming control
20 I2C read
21 I2C write
30 HID table download

Looks like EC168 has EC100 demodulator integrated. And programming this demodulator seems to be rather easy, not very many bytes...

regards
Antti

Signature · 1 line
http://palosaari.fi/
#4 lore raw

Tanguy,
are you still hacking with device? Or is there anyone else who is?

I have done some work but not very much. Basically it now loads firmware and and have some basic demod and tuner stuff. I have now one one problem that I have no idea why. After firmware download device reconnects (upon request as seen from sniff) with vendor and product ID having both 0. :(

I don't have much time nor interest to hack this device so I want to give my driver base to someone who wants to play with it. Demod part seems to be very easy to program, so this device can be supported without specs rather well. I have asked specs many times, but no answer at all. If there is someone who can make contacts for E3C tech. please help.

regards
Antti

Signature · 1 line
http://palosaari.fi/
#5 lore raw
Quoted 1 line · Antti Palosaari

I have done some work but not very much. Basically it now loads firmware and and have some basic demod and tuner stuff. I have now one one problem that I have no idea why. After firmware download device reconnects (upon request as seen from sniff) with vendor and product ID having both 0. :(

Problem resolved. Windows driver patch firmware before download to the device. Still help is welcome...

Antti

Signature · 1 line
http://palosaari.fi/