Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: LCDs & VFDs

  1. #1
    Join Date
    May 2004
    Posts
    7
    I have a Samsung VFD, and I'd like GBPVR to drive it (e.g. display current channel, current program, current track, current picture &c, recording y/n, time/date &c.).
    I'm currently using Smartie, but that's a pain for anything more complex than a clock, doesn't directly integrate with GBPVR, and when my PC wakes from standby, it trashes the VFD display :-(

    I've downloaded some code from www.codeproject.com which has the necessary to drive the VFD, and I've oo'd it and built some interfaces & helper classes, but the issue then is GBPVR integration.

    'sub' - would you be willing to provide support for these displays?
    As I see it, the primary requirement on GBPVR would be to
    a) load the device-specific driver .dll (I have an HD44780 version from the codeproject source)
    b) provide text relating to the current activity (e.g. current channel).
    Configuration can come later, if people want it.

    Anyone else - would you be interested in this?

  2. #2
    Join Date
    Jan 2004
    Location
    Denmark
    Posts
    419

    Thumbs up

    That sounds like a great idea! Right now I'm using jaLCDs to display things like time, cpu usage, temperatures and how much space there's left on my pvr drive (very handy information). It supports plugins, so maybe that's an easier solution?
    Nicolai - http://www.nk-h.dk
    Current htpc - Asus N4L-VM DH, Core Duo 2GHz, 2GB RAM, Hauppauge PVR-500 mce, Twinhan DVB-C CI, TerraTec Cinergy 1200 DVB-C, nVidia 8800 GTS (using S-video tv-out), decoding dvb-c with ACamd 0.5.0.9, Yanksee and a Viaccess card from YouSee.

  3. #3
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    76,337
    I also think its a good idea. I could probably add some new sort of event plugin which would allow you to implement plugin DLLs for driving these types of displays. The key method would be something like:

    public void Notify(EventTypes eventType, string eventText)

    So when I start playing a song I'd call something like plugin.Notify(EventTypes.MusicNowPlaying, "blah blah blah&quot. That way you guys can write support for the specific types of screens.

    I could send notifications of channel, video name, music name etc.




  4. #4
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    76,337
    Ok, expanding on that. For the next release, if you implement a .net DLL that contains a class that implements the following interface and drop it in the plugins directory, it will be notified of GB-PVR events.

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">using System;

    namespace GBPVR.Public
    {
    public enum EventTypes
    {
    CurrentAudioTrack,
    CurrentVideoTrack,
    CurrentTrackDuration,
    CurrentChannelNumber,
    CurrentChannelName,
    };

    /// &#60;summary&#62;
    /// This interface is implement by GB-PVR plugins which need to be
    /// notified about current audio/video track playing etc
    /// &#60;/summary&#62;
    public interface IEventNotification
    {
    void Notify&#40;EventTypes eventType, string eventText&#41;;
    }
    }
    [/QUOTE]

    More than one of these can be called in quick succession, so your plugin will need to keep track of the various events it is interested in. For example, when I start playing an audio track, I&#39;m likely to notify you plugin twice for CurrentAudioTrack followed by CurrentTrackDuration

    Let me know if you want specific event types that arn&#39;t listed here.

  5. #5
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    76,337
    You&#39;ll just have to use your imagination to picture the original tabing in the code sample above.

  6. #6
    Join Date
    May 2004
    Posts
    7
    I have some framework code for this, but I&#39;m away on holiday for the next week. If no-one else beats me to it, I&#39;ll put a plugin together for the HD44780 when I get back.

  7. #7
    Join Date
    Apr 2004
    Location
    The Netherlands
    Posts
    50
    John,

    Have you made any progress on the plugin for the HD44780 yet? If not, would you be willing to share the code you have so far?

    I tried jaLCDs, but it&#39;s been a frustrating experience...

    Regards,

    Jan

  8. #8
    Join Date
    Apr 2004
    Location
    The Netherlands
    Posts
    50
    Sub,

    Since there appear to be no takers, and I have a VFD idling in my HTPC case, I decided to make a very simple LCD plugin. To not restrict it to my particular VFD, I have chosen an existing &#39;LCD driver&#39; to base this plugin on. Despite my reservations about jaLCDs, it&#39;s the only thing out there that somewhat meets my requirements.

    Anyway, I have something very simple going now (my first venture into the world of C#...), but I quickly noticed that I would like more events:

    - can you add an event to indicate playback has stopped?
    - can you add the full path of the audio track, so I can extract ID3 info (if you already have this info, you could also pass that in stead of just the track name)?
    - you list the track duration, but have not actually included it in EventTypes

    I&#39;m afraid I have very little time to spend on this, but as soon as I have something worth sharing, I&#39;ll let you know.

    Regards,

    Jan

  9. #9
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,817
    whats the status of VFD/LCD in GBPVR (i just got one), does gbpvr show info on them yet?
    if not, sub i know your busy, but could you put this near the top of your massive todo list. nice to show (&quot;Recording [tvshowname]&quot or something

  10. #10
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    76,337
    Everything I needed to do is in place, now its up to someone with a VFD/LCD to write a plugin using the IEventNotification interface described above. I dont own one, so cant write this plugin myself.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •