LCD plugin supporting more than 70 display types (now with full graphics support!!!) (1 Viewer)

Status
Not open for further replies.

mfo

Portal Member
February 24, 2005
40
0
FRANCE
I'm jumping in the topic !

I've been watching your progress Joe and I can say that I'm impressed.
I own a LIS 2 Premium VFD display and I'm wondering if you could add support for it in the near future.
It has a USB connection and uses a USB Serial converter driver.
It has 2 lines x 20 characters and is Hitachi HD44780 compatible.

Here's a few URLs pointing to resources on this display:
http://www.vlsys.co.kr/English/product_lis2pre.php
http://www.vlsys.co.kr/pds/driver/USB1002154.zip
FTDI is making the USB Serial converter driver (creates a virtual COM port on the machine).
http://www.ftdichip.com/FTDrivers.htm

Tell me what kind of additional information you would need to support this display.

Best regards,

Marc
 

JoeDalton

Retired Team Member
  • Premium Supporter
  • September 27, 2004
    425
    18
    55
    Belgium
    Home Country
    Belgium Belgium
    Version 1.3 is now online.
    With iMON scrolling support,
    a display type to copy the generated lines to the system clipboard
    and some bug fixes (thanks to ArnaudCoco for the testing)

    As always, read the included documentation.

    mfo,
    I'll definitely have a look at it (after all, the most difficult part - the HD44780 commands - are already implemented). But you see this is a busy topic with a lot of requests, and I'm still alone to do all the work.

    So, please have some patience. I'm still hoping someone will join in to help (hint... hint... :wink: ), because there is still a lot on my todo list.
    Most of all a GUI to edit the message rules.

    @everybody,
    Please send me your configuration file, if you tweaked it yourself.
    I'm very interested in your work, and I need some extra test material :wink:

    Joe
     

    no_idea

    Portal Member
    September 19, 2004
    15
    0
    Germany
    Hi JoeDalton,

    Still fiddling around with your plugin and the only way to get it work is using the "None" option and LCDSmartie.

    I can live with that and thank you a lot for your work Perhaps you have an idea of what is going wrong cause I can´t use your plugin standalone.

    My case is a Dign HV5 (iuneed.com) and has a SASEM USB IR/VFD combo display. Now they take the IMON one, but before they took the SASEM, which is a standard Samsung HD44780 compatible parallel VFD hooked onto a parallel2usb (non-FTDI) converter with an onboard IR receiver.

    It works fine with Girder/LCD32 and SASEM OnAir Plugin or LCDSmartie/dlportio after I rewired the VFD back to parallel because it was really slow and flashing.

    Why isn´t it running using your plugin? Parallel is parallel, isn´t it?

    Of course it would be better to get it working in native usb mode, but there´s no api on their page.

    Thanks,
    no_idea.
     
    A

    Anonymous

    Guest
    i also using Samsung VFD comes with Ahanix case
    but it is using USB.. and i dun think it will work with ur plugin
    i really hope this vfd is going to be supported in future..
    good job anyway! :D
     

    mfo

    Portal Member
    February 24, 2005
    40
    0
    FRANCE
    Thank you Joe, I understand that you must have a lot to do supporting different LCD/VFD and making your pluggin able to display all kind of info coming from MP.
    Correct me if I'm wrong but to support my serial-USB VFD you only have to send your data on the COM and not on the LPT or am I missing something ?

    I'll be patient ...

    Again thank you,

    Marc
     

    Thomas

    Portal Member
    September 20, 2004
    21
    0
    Germany
    SED133xTest results

    Hi JoeDalton,

    here my testresults.

    1. start LCD panel and bootscreen is shown.
    2. start SED133xTest.exe and there is your menue
    3. press initialize LCD and the panel is cleared (blank panel)
    4. press clear and i got an error :
    Code:
    ************** Ausnametext **************
    System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
       at SED133xTest.SED133x.SetText(Int32 _devNum, Int32 _x, Int32 _y, Int32 _width, Int32 _height, Byte _transparency, String _fontFileName, Byte _fontWidthSpace, Byte _fontHeightSpace, String _text)
       at SED133xTest.SED133x.Clear() in c:\projects\sed133xtest\sed133x.cs:line 46
       at SED133xTest.Form1.button3_Click(Object sender, EventArgs e) in c:\projects\sed133xtest\form1.cs:line 143
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Geladene Assemblys **************
    mscorlib
        Assembly-Version: 1.0.5000.0
        Win32-Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
    ----------------------------------------
    SED133xTest
        Assembly-Version: 1.0.1914.23862
        Win32-Version: 1.0.1914.23862
        CodeBase: file:///E:/SED133xTest/SED133xTest.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly-Version: 1.0.5000.0
        Win32-Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
    ----------------------------------------
    System
        Assembly-Version: 1.0.5000.0
        Win32-Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Drawing
        Assembly-Version: 1.0.5000.0
        Win32-Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
    ----------------------------------------
    mscorlib.resources
        Assembly-Version: 1.0.5000.0
        Win32-Version: 1.1.4322.573
        CodeBase: file:///c:/windows/assembly/gac/mscorlib.resources/1.0.5000.0_de_b77a5c561934e089/mscorlib.resources.dll
    ----------------------------------------
    System.Windows.Forms.resources
        Assembly-Version: 1.0.5000.0
        Win32-Version: 1.1.4322.573
        CodeBase: file:///c:/windows/assembly/gac/system.windows.forms.resources/1.0.5000.0_de_b77a5c561934e089/system.windows.forms.resources.dll
    ----------------------------------------
    5. press Send Text and i got an error "Faulty file"
    6. press Shutdown LCD and the backlight of the LCD is off
    7. press initialize LCD and the backlight is on again

    I think something is wrong.

    Thomas


    EDIT

    I found a short demo in purebasic, maybe it helps :

    Code:
    ;###########################################
    
    #LUIse104=100
    #devnum= 0
    Procedure OpenLUIse()
    Protected result.l
    result = OpenLibrary(#LUIse104, "LUIse.dll")
    Debug "open LUIse.dll "+Str(result)
    If result = #False
    MessageRequester("ERROR", "LUIse.dll wurde nicht gefunden oder ist korrupt.", #MB_ICONERROR)
    End
    EndIf
    ProcedureReturn result
    EndProcedure
    
    Procedure closeluise()
    result = CloseLibrary(#LUIse104)
    ProcedureReturn result
    EndProcedure
    
    OpenLUIse()
    
    
    
    xLUI_Bitmap  = IsFunction(#LUIse104,"LUI_Bitmap")
    
    Procedure xt_LUI_Bitmap(scrnr,sposx,sposy,bmpxs,bmpys,bmpxe,bmpye,bmpw,bmph,*bmpdata)
    Shared xLUI_Bitmap
    CallFunctionFast(xLUI_Bitmap,#devnum,scrnr,sposx,sposy,bmpxs,bmpys,bmpxe,bmpye,bmpw,bmph,*bmpdata)
    EndProcedure
    
    
    xLUI_CloseDevice  = IsFunction(#LUIse104,"LUI_CloseDevice")
    
    Procedure XT_LUI_CloseDevice()
    Shared xLUI_CloseDevice
    CallFunctionFast(xLUI_CloseDevice,#devnum)
    EndProcedure
    
    
    
    xLUI_LCDmode  = IsFunction(#LUIse104,"LUI_LCDmode")
    
    Procedure XT_LUI_LCDmode(gfxmode,gfxinvert,screenrotation,iorefresh)
    Shared xLUI_LCDmode
    CallFunctionFast(xLUI_LCDmode,#devnum,gfxmode,gfxinvert,screenrotation,iorefresh)
    EndProcedure
    
    xLUI_OpenDevice  = IsFunction(#LUIse104,"LUI_OpenDevice")
    
    Procedure XT_LUI_OpenDevice()
    Shared xLUI_OpenDevice
    CallFunctionFast(xLUI_OpenDevice,#devnum)
    EndProcedure
    
    
    xLUI_ScreenRefreshControl  = IsFunction(#LUIse104,"LUI_ScreenRefreshControl")
    
    Procedure XT_LUI_ScreenRefreshControl(gfxscreen0,gfxscreen1,txtscreen)
    Shared xLUI_ScreenRefreshControl
    CallFunctionFast(xLUI_ScreenRefreshControl,#devnum,gfxscreen0,gfxscreen1,txtscreen)
    EndProcedure
    
    Dim TS(2)
    xLUI_TouchScreen  = IsFunction(#LUIse104,"LUI_TouchScreen")
    Procedure XT_LUI_TouchScreen()
    Shared xLUI_TouchScreen
    ProcedureReturn CallFunctionFast(xLUI_TouchScreen,#devnum,@TS())
    EndProcedure
    
    Procedure lcdswap ()
    
    XT_LUI_ScreenRefreshControl(1,1,1)
    XT_LUI_ScreenRefreshControl(0,0,0)
    EndProcedure
    
    ;###########################################
    
    XT_LUI_OpenDevice ()
    XT_LUI_ScreenRefreshControl(0,0,0)
    XT_LUI_LCDmode(0,0,2,11)
    Dim pic(104)
    For i =1 To 84
      file$ ="image"+Str(i)+".bmp" ; Berechnung des dateinamens ergebnis: image1.bmp - image84.bmp
      *mem=VBin("anim",file$,"") ; PB packlib  Vbin
      pic(i)=*mem ; speicheradresse der einzellnen bilder in einem array speichern
    Next
    P=0
    For i =83 To 64 Step-1
      pic(85+P)=pic(i)
      P=P+1
      Next
    bild=1
    Repeat
    
      xt_LUI_Bitmap(1,0,0,175,0,320,236,320,236,pic(bild)) ; bild auf lcd ausgeben
      lcdswap()
      If bild>=78 And bild<82
        Delay(250) ; delays für die animation
      EndIf
      If bild>0 And bild <= 77
        Delay(100)
      EndIf
      If bild>=82 And bild<85
        Delay(550)
      EndIf 
      If bild>=86 And bild<90
        Delay(250)
      EndIf
      If bild>89 
        Delay(100)
      EndIf  
      XT_LUI_TouchScreen()
      bild=bild+1:If bild>104:bild=1:EndIf
    Until TS(0)=1
    XT_LUI_CloseDevice ()
    closeluise()  
    End

    Thomas
     

    Flipit

    Portal Pro
    February 19, 2005
    100
    0
    Well, got the hardware last night...

    Now the proud owner of a Silverstone-M case and £600 quids worth of toys :lol:

    Built it all last night.. but no OS yet, will do that tonight. Looks like -neo- beat me to testing the iMon support though :wink: So I won't send any feedback, unless you want me to.

    -neo- Of issue but, does the iMon VFD activate before you install an OS in the Silverstone or is it reliant on the USB driver to activate (see something)... just curious, cause I didn't see any lights or anyhting come on on power up ? When I get home I'll find out anyway........

    Joe.

    You rock.

    Flipit
     

    JoeDalton

    Retired Team Member
  • Premium Supporter
  • September 27, 2004
    425
    18
    55
    Belgium
    Home Country
    Belgium Belgium
    Re: SED133xTest results

    Thomas said:
    here my testresults.

    1. start LCD panel and bootscreen is shown.
    2. start SED133xTest.exe and there is your menue
    3. press initialize LCD and the panel is cleared (blank panel)
    4. press clear and i got an error :
    <<snip>>
    5. press Send Text and i got an error "Faulty file"
    6. press Shutdown LCD and the backlight of the LCD is off
    7. press initialize LCD and the backlight is on again

    I think something is wrong.

    Thomas,

    I didn't expect everything to work well :wink:
    The clear method crashed here too.
    But SendText crashes here too, and you get nice error message. That is much better. Certainly when you know I passed an invalid "font filename".

    I have put a new test version online that passes an empty string as font filename. The driver should then use its internal font.

    Can you test again with that version?

    I had a very quick look at the code you sent me, but I can't detect the lines to put some text on the display. Only graphics...

    Joe
     

    -neo-

    Portal Member
    January 27, 2005
    6
    0
    Flipit said:
    -neo- Of issue but, does the iMon VFD activate before you install an OS in the Silverstone or is it reliant on the USB driver to activate (see something)... just curious, cause I didn't see any lights or anyhting come on on power up ? When I get home I'll find out anyway........

    Flipit

    My display works right away when putting power on. There is text in the display (something like "Welcome iMON"). Good luck.
     

    JoeDalton

    Retired Team Member
  • Premium Supporter
  • September 27, 2004
    425
    18
    55
    Belgium
    Home Country
    Belgium Belgium
    Version 1.4 is now online.
    See topic start message for version info.

    Going to sleep now.
    Yes, I DO need some rest now and then... :lol:

    Joe
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom