Jump to content


Photo

program/app/plugin to control LED segment or red/green LED ?

control led segment control led

  • Please log in to reply
12 replies to this topic

#1 maicod

  • Member
  • 15 posts

0
Neutral

Posted 26 May 2018 - 00:56

Is there a program/app/plugin/tool to change the colour of the RED/GREEN LED or control the LED segments (Mut@nt box) ? I need it because I made an unmount script for the USB HDD and I operate it with one of the Remote's hotkeys and I want it to change the LED segment or RED/GREEN LED if my script says the unmount has been succesful so that I don't need to turn my TV/monitor on.

 



Re: program/app/plugin to control LED segment or red/green LED ? #2 littlesat

  • PLi® Core member
  • 57,064 posts

+698
Excellent

Posted 26 May 2018 - 06:04

Which box and is it possible to change the color, I was not aware of it...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: program/app/plugin to control LED segment or red/green LED ? #3 maicod

  • Member
  • 15 posts

0
Neutral

Posted 26 May 2018 - 17:03

Which box and is it possible to change the color, I was not aware of it...

 

I have a Mut@nt HD500c and it has a LED that is Green when in standby/operational and RED when the box is shutdown so it can be controlled. Also it has 4 LED-segments that are probably connected over the i2c bus and could possibly be controlled by a piece of linux compiled code (or plugin) or such. I'm gonna get a HD51 soon so if there is a tool to operate that box'es display or LED I'm interested too.



Re: program/app/plugin to control LED segment or red/green LED ? #4 littlesat

  • PLi® Core member
  • 57,064 posts

+698
Excellent

Posted 26 May 2018 - 17:18

Then search for the driver procs...! No procs nothing we can control...

Edited by littlesat, 26 May 2018 - 17:19.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: program/app/plugin to control LED segment or red/green LED ? #5 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 26 May 2018 - 22:09

You're probably want to have to blink green for a few flashes and yes, it's possible. We found opportunities for that.
/proc/stb/fp/ - check this there, here goes the programming.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: program/app/plugin to control LED segment or red/green LED ? #6 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 28 May 2018 - 06:48

I'm adding a small example how to turn leds on and off.

Attached Files

  • Attached File  LEDs.zip   283bytes   18 downloads

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: program/app/plugin to control LED segment or red/green LED ? #7 littlesat

  • PLi® Core member
  • 57,064 posts

+698
Excellent

Posted 28 May 2018 - 06:52

But to use this led for the usb remove is not that smart... ;)

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: program/app/plugin to control LED segment or red/green LED ? #8 maicod

  • Member
  • 15 posts

0
Neutral

Posted 28 May 2018 - 18:40

But to use this led for the usb remove is not that smart... ;)

 

What can be unsmart about toggling this LED ? If you mean it should stay lit green when the box is booted up, I could instead of turning it off, flash it a couple of times and afterwards leave it on again.


Edited by maicod, 28 May 2018 - 18:41.


Re: program/app/plugin to control LED segment or red/green LED ? #9 maicod

  • Member
  • 15 posts

0
Neutral

Posted 28 May 2018 - 18:41

I'm adding a small example how to turn leds on and off.

 

 

Thanks for the example.On my Mut@nt HD500c I only see /proc/stb/fp/lnb_sense0 and  /proc/stb/fp/lnb_sense1 and not /proc/stb/fp/led0_pattern or /proc/stb/fp/led1_pattern. In your script I tried replacing them but that did not work.



Re: program/app/plugin to control LED segment or red/green LED ? #10 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 28 May 2018 - 19:34

No, /proc/stb/fp/lnb_sense1 is not for LED. What else you have on folder /proc/stb/fp ?

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: program/app/plugin to control LED segment or red/green LED ? #11 maicod

  • Member
  • 15 posts

0
Neutral

Posted 28 May 2018 - 21:00

No, /proc/stb/fp/lnb_sense1 is not for LED. What else you have on folder /proc/stb/fp ?

 

this:

root@hd500c:/proc/stb/fp# ls -l
-r--r--r--    1 root     root             0 May 28 21:59 lnb_sense0
-r--r--r--    1 root     root             0 May 28 21:59 lnb_sense1
-r--r--r--    1 root     root             0 May 28 21:59 rtc
-r--r--r--    1 root     root             0 May 28 21:59 wakeup_time
-r--r--r--    1 root     root             0 May 28 21:59 was_timer_wakeup
 



Re: program/app/plugin to control LED segment or red/green LED ? #12 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 29 May 2018 - 19:29

None of them are associated with the LEDs.  :( 

It is probably the box's led programming in other ways, not like dm900 and 920.


DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: program/app/plugin to control LED segment or red/green LED ? #13 maicod

  • Member
  • 15 posts

0
Neutral

Posted 29 May 2018 - 20:11

None of them are associated with the LEDs.  :(

It is probably the box's led programming in other ways, not like dm900 and 920.

 

Thanks for your efforts to help. I'm suspecting they're controlled on a lower level by i2c.




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users