Page 1 of 1

TBS5520SE LOCK LED and 5 Volt RF IN (OSS driver)

PostPosted: Mon Jul 09, 2018 7:03 pm
by 4l3x2k
Hi,


I'am running Raspbian GNU/Linux 9 (stretch) from 2018-04-18 and Kernel Linux raspberrypi 4.14.34-v7+ and tvheadend 4.3-1271~g8e270b2a6~raspbianstretch on Raspberry Pi 3 and TBS5520SE connected via USB.

Most important parts like DVB-T/T2/C/S/S2 are fine, but in contrast to windows the LOCK LED does not get on.

The first question is whether the firmware, driver or application is responsible for this?

If the driver or firmware is responsible to get on the LOCK LED, is it possible to enabled it in the open source drivers too?

The third question is whether it is possible to enable 5 Volt on RF IN (DVB-C/T)?

This would enable one to connect both, DVB-C and DVB-T to RF IN with a relays that switch the source to DVB-T if 5 Volt is present and to DVB-C if not.


4l3x2k

Re: TBS5520SE LOCK LED and 5 Volt RF IN (OSS driver)

PostPosted: Fri Sep 18, 2020 8:00 pm
by 4l3x2k
Yep. Looks like the open source driver can manage the green lock led with firmware command.

See https://github.com/tbsdtv/linux_media/i ... -694630901

Re: TBS5520SE LOCK LED and 5 Volt RF IN (OSS driver)

PostPosted: Sat Sep 19, 2020 5:55 am
by smp79
A properly formatted patch:

Code: Select All Code
diff --git a/drivers/media/dvb-frontends/si2183.c b/drivers/media/dvb-frontends/si2183.c
index 4b5bc34..bbe3e96 100644
--- a/drivers/media/dvb-frontends/si2183.c
+++ b/drivers/media/dvb-frontends/si2183.c
@@ -1091,6 +1091,12 @@ static int si2183_init(struct dvb_frontend *fe)
       return ret;
    }
 
+    // set pins
+    memcpy(cmd.args, "\x12\x8\x0", 3);
+    cmd.wlen = 3;
+    cmd.rlen = 3;
+    si2183_cmd_execute(client, &cmd);
+
    dev->fw_loaded = true;
 warm:
    dev->active_fe |= (1 << fe->id);

Re: TBS5520SE LOCK LED and 5 Volt RF IN (OSS driver)

PostPosted: Sun Sep 20, 2020 12:19 am
by 4l3x2k
Thank you.

I've already got it in and it works.

Offtopic
The LED is so bright that it is annoying. Especially if tvheadend leaves it at a mux where it can tune and lock while not using any input/source of the tuner.

smp79 Wrote:A properly formatted patch:

Code: Select All Code
diff --git a/drivers/media/dvb-frontends/si2183.c b/drivers/media/dvb-frontends/si2183.c
index 4b5bc34..bbe3e96 100644
--- a/drivers/media/dvb-frontends/si2183.c
+++ b/drivers/media/dvb-frontends/si2183.c
@@ -1091,6 +1091,12 @@ static int si2183_init(struct dvb_frontend *fe)
       return ret;
    }
 
+    // set pins
+    memcpy(cmd.args, "\x12\x8\x0", 3);
+    cmd.wlen = 3;
+    cmd.rlen = 3;
+    si2183_cmd_execute(client, &cmd);
+
    dev->fw_loaded = true;
 warm:
    dev->active_fe |= (1 << fe->id);

Re: TBS5520SE LOCK LED and 5 Volt RF IN (OSS driver)

PostPosted: Sun Sep 20, 2020 2:14 am
by smp79
4l3x2k Wrote:The LED is so bright that it is annoying.

Yep. I thought the blue LED was a bit too bright, but the green LED is just unbearable. I used a piece of semi-transparrent tape to make it dimmer.

Re: TBS5520SE LOCK LED and 5 Volt RF IN (OSS driver)

PostPosted: Sun Sep 20, 2020 6:01 pm
by 4l3x2k
smp79 Wrote:
4l3x2k Wrote:The LED is so bright that it is annoying.

Yep. I thought the blue LED was a bit too bright, but the green LED is just unbearable. I used a piece of semi-transparrent tape to make it dimmer.

Good idea :-)!

It would be great to get the 5V out of the RF IN if DVB-T(2) is in use. I do not know whether the firmware / hardware allows that.
Can you confirm that this is not working for DVB-T(2) mode? I tested it with OSS linux and windows 10 driver.

Cheers