1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Updated iMON (Soundgraph) LCD Driver | Page 5

Discussion in 'Mini Display' started by ralphy, August 16, 2007.

Thread Status:
Not open for further replies.
  1. Johan

    Johan Portal Pro

    Joined:
    April 19, 2006
    Messages:
    443
    Likes Received:
    11
    Ratings:
    +11 / 0
    Home Country:
    Sweden Sweden
    Isn't the graphical version of iMON driver limited to one row display only?

    Can you btw release just the imon plug-in here? I don't feel like installing the complete SVN since I am so satisfied with the version I have now. My g/f gets so pissed on me all the time for installing new versions and that nothing is working as she is used to :)




     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. cybrmage

    cybrmage Portal Pro

    Joined:
    May 30, 2007
    Messages:
    498
    Likes Received:
    86
    Ratings:
    +86 / 0
    Home Country:
    Canada Canada
    no... the LCD driver does 2x16 text... just don't select "force graphical text"..

    I've attached the compiled processplugin.dll for your convenience... it's for 0.2.3... If you need it for 0.2.2 you'll have to wait for someone else to post it... I don't have the source for 0.2.2.
     
    • Like Like x 1
  4. Johan

    Johan Portal Pro

    Joined:
    April 19, 2006
    Messages:
    443
    Likes Received:
    11
    Ratings:
    +11 / 0
    Home Country:
    Sweden Sweden
    Thanks cybrmage!
    Unfortunately I only get unhandled exception when I try to configure and the display is not working.
    I am using 0.2.3 RC1 (dont know which SVN).
     
  5. ralphy

    ralphy Portal Pro

    Joined:
    June 15, 2007
    Messages:
    52
    Likes Received:
    6
    Ratings:
    +6 / 0
    Home Country:
    Swedish Characters Updated

    The new driver set excludes iMONLCD, so you need to either (1) delete externaldisplay.xml and rerun config, or (2) edit the second line in externaldisplay.xml and change iMonLCD to iMONLCDg.


    Thanks cybrmage and Joe for their changes. It's good to see the collaborate work, but causes havok trying to keep up to date.

    The attachments have fixed (I hope, but cannot guarantee) the non-english characters and used the last source in the SVN store. The 8x5 bitmap has some limitations, but hopefully they are ok, if not, they can be changed easily.

    They are for MP 2.2, and MP 2.3 RC1, and source code for the driver is attached for loading to the SVN.

    If you do not want the clock to display in shutdown, check the backlight box in config.
     
  6. Johan

    Johan Portal Pro

    Joined:
    April 19, 2006
    Messages:
    443
    Likes Received:
    11
    Ratings:
    +11 / 0
    Home Country:
    Sweden Sweden
    Thanks to all programmers for making this possible!

    I get åäö and I can now change contrast. :)

    However I don't get it to turn off or show time in standby.
    I have tried either have Backlight checked or unchecked, but no difference.

    It is however working if i exits MP.

    Is it possible for turn off with MP running when going to standby?
    It was when using imon frontview and MCEdisplay plug-in.
     
  7. iSP

    iSP Portal Pro

    Joined:
    January 2, 2007
    Messages:
    90
    Likes Received:
    11
    Ratings:
    +11 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    The new plugin keeps crashing for me, just like the old one.
    It seems every time I update the driver I have to uninstal mp 2.3, install 2.2 to overwrite all the settings in the register, uninstall it and install 2.3 again... at least this worked last time.
    And yes it's that exception error... it only happens to this plugin, not to the rest of mp, which runs fine.
    Any clue what it is? Might just stick to 2.2 if I get it working right this time.


    2.2 keeps crashing now too, can't get either of them, even an older version of the plugin, working anymore :(

    The error I get:


    Zie het einde van dit bericht voor meer informatie over het aanroepen
    van JIT-foutopsporing (Just In Time) in plaats van dit dialoogvenster.

    ************** Tekst van uitzondering **************
    System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
    bij ProcessPlugins.ExternalDisplay.SetupForm.VerifyLCDType()
    bij ProcessPlugins.ExternalDisplay.SetupForm..ctor()
    bij ProcessPlugins.ExternalDisplay.ExternalDisplay.ShowPlugin()
    bij MediaPortal.Configuration.Sections.PluginsNew.itemConfigure_Click(Object sender, EventArgs e)
    bij System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    bij System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    bij System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    bij System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    bij System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    bij System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    bij System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    bij System.Windows.Forms.Control.WndProc(Message& m)
    bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    bij System.Windows.Forms.ToolStrip.WndProc(Message& m)
    bij System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Geladen assembly's **************
    *cut*


    Got the version from the start post working again, but as soo nas I overwrite ProcessPlugins.dll with the latest one I get this error again...

    Again a edit,sigh... after like an hour of installing mp/uninstalling mp/enabling the plugin/disabling it again, I got it working.
    Totally randomly, and I can't tell what fixed it this time.
    It's exactly what happened to me last time, took me many hours of trying and then suddenly it worked.


    Well the contrast does seem to work, but only for the text, not the backlight I want to dimm, asI want blue on black and not blue on darker blue.
    No icons light up yet, but that's not the most important thing for now.
    What I do wonder is why do I get this error every time I overwrite the dll with a newer one, nad why can't I just get it to work by a reinstall of mp? this is absolutely crazy and doesn't make an ysense at all.
    Might it be I'm running a x64 version of vista?
     
  8. Johan

    Johan Portal Pro

    Joined:
    April 19, 2006
    Messages:
    443
    Likes Received:
    11
    Ratings:
    +11 / 0
    Home Country:
    Sweden Sweden
    Maybe you made the same mistake as I did?
    Forgot to delete the old externaldisplay.xml?
     
  9. iSP

    iSP Portal Pro

    Joined:
    January 2, 2007
    Messages:
    90
    Likes Received:
    11
    Ratings:
    +11 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Nope, I did this, in the end I got it working, no idea how.
     
  10. JoeDalton
    • Team MediaPortal

    JoeDalton Retired Team Member

    Joined:
    September 27, 2004
    Messages:
    425
    Likes Received:
    18
    Gender:
    Male
    Occupation:
    IT Architect
    Location:
    Belgium
    Ratings:
    +18 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    ralphy:
    I committed your new version to SVN.

    Can you also please check the following:
    The declaration of the iMONLCD_SendData method is now as follows:
    Code (Text):
    1. public static extern unsafe bool iMONLCD_SendData(Int64* bitMap);
    can you try to update it like this:
    Code (Text):
    1. public static extern bool iMONLCD_SendData(ref ulong bitMap);
    next relace all Int64 with ulong and change the SendData method as follows:
    Code (Text):
    1. private void SendData(ulong data)
    2. {
    3.   iMONLCD_SendData(ref data);
    4.   Thread.Sleep(_delay);
    5. }
    Maybe you'll need to add a few casts here and there, but then the driver should still work without any unsafe code.

    To get some of the icons working you can check the SetLines method of the ScaleoEV driver for a hint on how to determine what their status should be.
     
  11. cybrmage

    cybrmage Portal Pro

    Joined:
    May 30, 2007
    Messages:
    498
    Likes Received:
    86
    Ratings:
    +86 / 0
    Home Country:
    Canada Canada
    JoeDalton: Wow... pretty quick with the SVN commits....

    I have a new version almost ready... I found a logic error in the initialization code, added icon control and shutdown on power mode change.

    I'm testing the SendData changes you suggested now... i'll report back soon...


    Update: Yes, the changes to SendData work correctly and eliminate the unsafe method... but please don't commit the changes... I have a series of changes to correct some logic errors in the initialization code and additional code for icon control... I'll have them ready later today...
     
Loading...
Thread Status:
Not open for further replies.

Users Viewing Thread (Users: 0, Guests: 0)

  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Like Us On Facebook

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!