Moderator Control Panel ]

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

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

Postby 4l3x2k » Mon Jul 09, 2018 7:03 pm

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
4l3x2k
 
Posts: 8
Joined: Thu Jul 05, 2018 1:06 am

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

Postby 4l3x2k » Fri Sep 18, 2020 8:00 pm

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
4l3x2k
 
Posts: 8
Joined: Thu Jul 05, 2018 1:06 am

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

Postby smp79 » Sat Sep 19, 2020 5:55 am

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);
smp79
 
Posts: 2
Joined: Wed Sep 16, 2020 10:45 pm

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

Postby 4l3x2k » Sun Sep 20, 2020 12:19 am

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);
4l3x2k
 
Posts: 8
Joined: Thu Jul 05, 2018 1:06 am

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

Postby smp79 » Sun Sep 20, 2020 2:14 am

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.
smp79
 
Posts: 2
Joined: Wed Sep 16, 2020 10:45 pm

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

Postby 4l3x2k » Sun Sep 20, 2020 6:01 pm

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
4l3x2k
 
Posts: 8
Joined: Thu Jul 05, 2018 1:06 am


Return to TBS5520 Multi-standard TV Tuner USB Box

Who is online

Users browsing this forum: No registered users and 3 guests

cron