PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [spark] clock @ VFD Control



skorpios268
08.01.2013, 03:21
At VFD control it is easy to have an option to display clock instead of showing the name of the channel;
My spark decoder (Amiko Alien 8900) show 4 digits only, better to show the clock :)

cl0g
08.01.2013, 09:45
AFAIK it is disabled because of better performance.

adjutant
08.01.2013, 11:48
At VFD control it is easy to have an option to display clock instead of showing the name of the channel;
My spark decoder (Amiko Alien 8900) show 4 digits only, better to show the clock :)
I agree..

skrasher
08.01.2013, 12:09
For my GM990 I disabled evfd.getInstance().vfd_write_string in VFD-Icons/plugin.py and enabled the clock via fp_control.

skorpios268
09.01.2013, 01:07
For my GM990 I disabled evfd.getInstance().vfd_write_string in VFD-Icons/plugin.py and enabled the clock via fp_control.

I would prefer to have option at VFD Control skrasher :)

Raitis Pud
12.01.2013, 20:45
For my GM990 I disabled evfd.getInstance().vfd_write_string in VFD-Icons/plugin.py and enabled the clock via fp_control.

Can You PLEASE give instuctions how to enable clock ON VFD ? or can you just send files to replace for My GM990 ?

BR
Raitis

santa
12.01.2013, 21:03
with fp_control you have to open telnet, then:

fp_control -dt 1

but i´m not sure.

Raitis Pud
12.01.2013, 21:24
I get like this ... what next ? :)


GM990HD:~# fp_control -dt 1
fp_control: SW Version 1.02
Model: spark
vBoxType: 10
Selected Model: Edision Spark frontpanel control utility
Spark_init
checkConfig
configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M %a %d.%m
, WAKEUPDECREMENT 300
GM990HD:~#

santa
12.01.2013, 21:32
i think you have to modify this plugin.py first.

maybe skrasher can upload this file.

skrasher
13.01.2013, 14:29
The problem is the fp_control. The option -dt isn't implemented for spark.
You can use -s to set the time. I modified ft_control, so '-s 0' sets the actual time to the vfd. In my version '-w' displays the wakeup reason.

I attached my compiled version and the source code.

skorpios268
13.01.2013, 16:13
is better a option at VFD Control with this choices:
1)channel name
2)channel number
3)clock

Raitis Pud
13.01.2013, 17:02
is better a option at VFD Control with this choices:
1)channel name
2)channel number
3)clock

This option would be just perfect!

adjutant
13.01.2013, 17:22
Replace...VFD Icon
https://www.dropbox.com/home

santa
13.01.2013, 18:59
The problem is the fp_control. The option -dt isn't implemented for spark.
You can use -s to set the time. I modified ft_control, so '-s 0' sets the actual time to the vfd. In my version '-w' displays the wakeup reason.

I attached my compiled version and the source code.

I take a look an your sources, where you have found fp_control 1.03 and why did you delete all other Boxes?

maybe you can find a solution with this sources here: klick (https://gitorious.org/~max10/open-duckbox-project-sh4/max-tdt/trees/master/tdt/cvs/apps/misc/tools/fp_control)

the best way, enable -dt for spark and post the diff here.
Maybe we put it in git, so all peoples have this in image and are happy without changing fp_control.

Raitis Pud
13.01.2013, 19:29
In plugin.py I just disable line 62: # evfd.getInstance().vfd_write_string(servicename[0:63])

and now shows only clock on my GM990 ;)

You can try replace with my plugin.pyo file (make backup of your file ;) )
/SystemPlugins/VFD-Icons
2805


Thanks to skrasher (http://www.hdmedia-universe.com/board/member.php?1864-skrasher)

skrasher
13.01.2013, 20:30
@santa Ich schreib jetzt einfach auf deutsch. Geht schneller.
Ich habe die fp_control Version 1.02 von open-duckbox-project-sh4 (also die gleiche Source, die du angegeben hast) genommen, und die Version eigenständig auf 1.03 geändert. So konnte ich selber schneller erkennen, welche Version gerade aktiv ist.

Die anderen Boxen habe ich gelöscht, weil ich nur einen Crosscompiler unter Cygwin verwendet habe. Und es war dann einfacher die anderen Boxen zu löschen.

Die Unterschiede sind minimal (u.A.):

/*
static int Spark_setTime_old(Context_t* context, time_t* theGMTTime)
{
struct aotom_ioctl_data vData;

printf("%s\n", __func__);

Spark_setAotomTime(*theGMTTime, vData.u.time.time);

if (ioctl(context->fd, VFDSETTIME, &vData) < 0)
{
perror("settime: ");
return -1;
}
return 0;
}
*/

static int Spark_setTime(Context_t* context, time_t* theGMTTime)
{
//printf("%s\n", __func__);

if (ioctl(context->fd, VFDREBOOT, theGMTTime) < 0)
{
perror("settime: ");
return -1;
}
return 0;
}


Als Grundlage habe ich tools_spark verwendet, welches ich irgendwo gefunden habe. Der Sourcecode dazu ist im Archiv enthalten.

Ich hoffe, ich konnte helfen.

Grüße
Tobias

santa
13.01.2013, 20:45
hehe, deutsch ist einfacher.
Wie gesagt, wenn ich beide diffe, sehe ich zu viele Änderungen, deswegen war ich verwundert.
Da ich keine Spark habe, kann ich das nicht gegentesten.
Vielleicht hast du ja Lust, da nochmal so zu testen das es eincheckbar ist und mit -dt aufrufbar ist.

skrasher
13.01.2013, 20:53
Prinzipiell habe ich nur die Routinen aus tools_spark in fp_control eingefügt.
Komischerweise sind in fp_control paar Sachen wie wakeup-reason nicht implementiert.

Zusätzlich habe ich noch eine Funktion programmiert, welche mir die Linuxuhr nach der Vfduhr stellt (wird bei mir beim Hochfahren ausgeführt).

Ich kann gerne gegentesten, dafür wird sich schon Zeit finden.
Für eine boxunabhängige Einpflegung fehlt mir momentan die Zeit und Muse.

santa
13.01.2013, 20:56
welche mir die Linuxuhr nach der Vfduhr stellt (wird bei mir beim Hochfahren ausgeführt).
...
Für eine boxunabhängige Einpflegung fehlt mir momentan die Zeit und Muse.
Schade, genau danach suche ich auch, habe bei mir ein script testweise am laufen.
Dein Weg wäre mir der bessere, auf die Implementierung warte ich schon lange.

skrasher
16.01.2013, 00:31
@santa
Habe mal die git-Source erweitert. '-dt 1' setzt die aktuelle Zeit unter Spark, '-dt 0' löscht das Display. '-gs' holt sich die VFD-Zeit, und setzt damit die Systemzeit.

Vielleicht kannst du hiermit die Quellen kombinieren.

Grüße
Tobias

Schischu
22.01.2013, 20:44
Ist der ioctl Aufruf ioctl(context->fd, VFDLEDBRIGHTNESS, reason) in Spark getWakeupReason so gewollt?
Das sollte doch bestimmt VFDGETSTARTUPSTATE mit zugehöriger auswertung sein, oder?

santa
22.01.2013, 21:25
so richtig scheint dies noch nicht zu funktiuonieren:


IPBOX9000:~# fp_control -gsfp_control: SW Version 1.02
Model: cuberevo
vBoxType: 11
Selected Model: CUBEREVO frontpanel control utility
init
checkConfig
configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M:%S
, WAKEUPDECREMENT 300
getTime ->
Getting current Fp Time...
Got current Fp Time C"!" (mtime)
getTime <- 0
Setting RTC to current frontpanel-time: 20:22:43 22-01-2013
IPBOX9000:~# date
Sat Jan 1 01:02:58 CET 2000

skrasher
23.01.2013, 00:21
Getwakeupreason habe ich aus tools_spark geholt. Dort ist #define VFDGETSTARTUPSTATE 0xc0425af8 definiert. In global.h ist dieser Wert in VFDLEDBRIGHTNESS gespeichert, weshalb dieser Wert verwendet wird.

skrasher
23.01.2013, 00:25
Keine Ahnung was da schief läuft. -gs verwendet GetTime des jeweiligen Modells und setzt diese Zeit mit settimeofday. Dürfte der richtige Weg sein. Habe aber leider nicht wirklich Ahnung von C. Zumindest wird die Zeit richtig ausgelesen. Dann muss bei der Umwandlung in Sekunden bzw. bei settimeofday was falsch laufen.

Raitis Pud
27.01.2013, 21:36
My "Strange solution" Instuction How to get clock on VFD HDMU img. Spark GM990 (because there is only 4 digits) :(

1) Install : enigma2-plugin-extensions-cronmanager_2.3_all.ipk

2) Restart BOX

3) Copy forlders with files to BOX - check file permision should be 755 !!!

4) Restart BOX

P.S.
clock appears in VFD when time be 00 seconds on info bar clock.

Sorry my English is not so good ! ;)


Thanks skrasher (http://www.hdmedia-universe.com/board/member.php?1864-skrasher) for help with fp_control

2989