• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

LCDProc 0.5.4-dev

pfSense Packages
68
587
597.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    fmertz
    last edited by Jun 2, 2012, 1:29 AM

    @Brak:

    Yes, I meant one location with 2 LEDs like the Firebox. I have the sample source code from Lanner themselves that powers the LEDs apparently, do you want me to send you them so you can reverse engineer it?

    Sure, I'll have a look.

    1 Reply Last reply Reply Quote 0
    • F
      fmertz
      last edited by Jun 2, 2012, 1:38 AM

      @Brak:

      That 64bit driver appears to work well, awesome!

      Just testing things right now, only issue I see is that it's still 16x4 screens instead of 20x2, but I know you didn't change any code

      Good news!

      When you say 16 instead of 20, do you mean that it uses the first 16 characters out of 20, or that each character is wider so that only 16 show on the whole width? If 16 out of 20, maybe lcdproc (the client) thinks this is only 16 wide, somehow. You can test with the binary lcdproc that comes with the project (even running on another machine) to be sure…

      1 Reply Last reply Reply Quote 0
      • B
        Brak
        last edited by Jun 2, 2012, 7:52 PM Jun 2, 2012, 7:50 PM

        @fmertz:

        @Brak:

        That 64bit driver appears to work well, awesome!

        Just testing things right now, only issue I see is that it's still 16x4 screens instead of 20x2, but I know you didn't change any code

        Good news!

        When you say 16 instead of 20, do you mean that it uses the first 16 characters out of 20, or that each character is wider so that only 16 show on the whole width? If 16 out of 20, maybe lcdproc (the client) thinks this is only 16 wide, somehow. You can test with the binary lcdproc that comes with the project (even running on another machine) to be sure…

        Code from Lanner (includes LED, LCM, the software reset button (a pin hole on the units), and the physical LAN bypass feature):

        http://mc.zsnnet.org/hosted/LannerLCMsamples.zip

        As for what I mean on the character stuff, the LCD is 20x2, but the lcdproc status screens only use it like it's a 16x2 LCD. Something is writing to the 8 extra characters tho, since I sometimes see "Next" or "Prev" pop up in the extra spaces when i press a key button. LCDexec with my menu system also seems to be limited to writing to a 16x2. The Lanner-LCM driver you compiled for me a while back does use the full 20x2. Maybe there is some left over hard-coded 16x2 left in SDECLCD?

        1 Reply Last reply Reply Quote 0
        • F
          fmertz
          last edited by Jun 4, 2012, 3:07 PM

          @Brak:

          Code from Lanner (includes LED, LCM, the software reset button (a pin hole on the units), and the physical LAN bypass feature):

          http://mc.zsnnet.org/hosted/LannerLCMsamples.zip

          Does this work (as root)?

          https://github.com/downloads/fmertz/sdeclcd/a.out

          It should cycle the LEDs (Green, Yellow, then Dark as per the code). I ported the code to FreeBSD (seems to be DOS and Linux initially).

          In short, it looks like the LEDs are interfaces off of the SuperIO. The code mentions the board number. Is it this?

          http://www.scribd.com/doc/39794230/Spec-FW-7565

          Looks like there is an ICH8 Southbridge, and a Winbond W83627THG SuperIO…

          1 Reply Last reply Reply Quote 0
          • B
            Brak
            last edited by Jun 4, 2012, 3:25 PM Jun 4, 2012, 3:23 PM

            I'll have to try it when I get home from work, but yeah, that is the proper board/unit number I believe.

            I had no clue they were board specific, what lanner sent me seemed generic. I guess there really won't be an easy way of getting the LEDs working for all models until we get the samples from everything - if it's even worth it.

            Why can't these LEDs be easy and be part of the LCD/button stuff.  :-\

            1 Reply Last reply Reply Quote 0
            • F
              fmertz
              last edited by Jun 4, 2012, 3:38 PM

              @Brak:

              Why can't these LEDs be easy and be part of the LCD/button stuff.  :-\

              That is what I am working on. This way, at least, the interface to the LEDs is captured in code as part of the driver. Now, whether we will have a client to turn them on/off is another matter…

              1 Reply Last reply Reply Quote 0
              • A
                acro-ii
                last edited by Jun 4, 2012, 7:01 PM

                Nobody has an idea about my cfa633 and the alternate rs232 pinout issue???

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Jun 4, 2012, 8:55 PM

                  It seems very odd that it isn't wired in a standard manner. But if that is the case it would be a hardware only solution. I don't believe you can change the serial port pins in software (like you can with a parallel connected display).
                  If it is working under windows then it should be possible to have it function under lcdproc - with the correct driver.  ;)

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • R
                    robi
                    last edited by Jun 5, 2012, 1:05 PM

                    Is there any chance to have the glcdlib driver also included with the LCDproc package?

                    It would allow us to use this very good priced graphic LCD screen with pfSense. This is a small digital photo frame which has an open alternative firmware called dpf-ax, allowing it to be used as graphical USB display. LCDProc's glcdlib driver actually translates the textual info in graphical format for displays like this.

                    linkdelight1.jpg
                    linkdelight1.jpg_thumb

                    1 Reply Last reply Reply Quote 0
                    • B
                      Brak
                      last edited by Jun 5, 2012, 9:37 PM

                      @fmertz:

                      @Brak:

                      Code from Lanner (includes LED, LCM, the software reset button (a pin hole on the units), and the physical LAN bypass feature):

                      http://mc.zsnnet.org/hosted/LannerLCMsamples.zip

                      Does this work (as root)?

                      https://github.com/downloads/fmertz/sdeclcd/a.out

                      It should cycle the LEDs (Green, Yellow, then Dark as per the code). I ported the code to FreeBSD (seems to be DOS and Linux initially).

                      In short, it looks like the LEDs are interfaces off of the SuperIO. The code mentions the board number. Is it this?

                      http://www.scribd.com/doc/39794230/Spec-FW-7565

                      Looks like there is an ICH8 Southbridge, and a Winbond W83627THG SuperIO…

                      Tried the a.out file, I keep getting "/a.out: Exec format error. Binary file not executable." Am I doing something stupid here, or is it not working?

                      1 Reply Last reply Reply Quote 0
                      • F
                        fmertz
                        last edited by Jun 6, 2012, 3:13 PM

                        @Brak:

                        Tried the a.out file, I keep getting "/a.out: Exec format error. Binary file not executable." Am I doing something stupid here, or is it not working?

                        Strange, this a.out file works for me (in the Virtualbox VM) both in 32 bit and 64 bit. I re-downloaded it from github to be sure, with wget, directly from within the VM. Are you using ASCII ftp with Windows? Also, this is compiled for FreeBSD 8.2 i386, not sure what version of FreeBSD your install of pfSense is based off of. Run "chmod 755 a.out" to be sure.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Brak
                          last edited by Jun 7, 2012, 1:20 AM

                          @fmertz:

                          @Brak:

                          Tried the a.out file, I keep getting "/a.out: Exec format error. Binary file not executable." Am I doing something stupid here, or is it not working?

                          Strange, this a.out file works for me (in the Virtualbox VM) both in 32 bit and 64 bit. I re-downloaded it from github to be sure, with wget, directly from within the VM. Are you using ASCII ftp with Windows? Also, this is compiled for FreeBSD 8.2 i386, not sure what version of FreeBSD your install of pfSense is based off of. Run "chmod 755 a.out" to be sure.

                          Okay, tried fetching it, no change on the 64bit pfsense install… But then I tried it on my 32bit install on the same hardware and the program works in the sense that it ran, but the LED does not do anything at all. That's probably not much help tho. :/

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Jun 7, 2012, 1:40 AM

                            But it prints to the console: "Status LED: Green" etc?

                            Steve

                            1 Reply Last reply Reply Quote 0
                            • B
                              Brak
                              last edited by Jun 7, 2012, 1:45 AM

                              Yep, then Yellow, then Dark. Doesn't actually flip the LEDs tho.  :-\

                              1 Reply Last reply Reply Quote 0
                              • F
                                fmertz
                                last edited by Jun 7, 2012, 3:01 AM

                                @Brak:

                                Okay, tried fetching it, no change on the 64bit pfsense install… But then I tried it on my 32bit install on the same hardware and the program works in the sense that it ran, but the LED does not do anything at all. That's probably not much help tho. :/

                                That is what I figured. That code doesn't reconcile with any of the SuperIO documentation I have seen, or even the code's own comments. Hopefully, the code comments will be enough to be able to come up with something…

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Jun 7, 2012, 11:15 AM

                                  I think we should take this to a separate thread. This one is already massive and LED control on a particular Lanner box is not helpful for most people reading it.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    Brak
                                    last edited by Jun 8, 2012, 1:45 PM

                                    @stephenw10:

                                    I think we should take this to a separate thread. This one is already massive and LED control on a particular Lanner box is not helpful for most people reading it.

                                    Steve

                                    Agreed, but honestly, it's probably not worth worrying about the LED in it at all.

                                    Only thing I think we can keep from this side-tracking is that the 64-bit SDECLCD works, but it is hard-coded as 16x2 status screens still.

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      fmertz
                                      last edited by Jun 8, 2012, 4:01 PM

                                      @Brak:

                                      Only thing I think we can keep from this side-tracking is that the 64-bit SDECLCD works, but it is hard-coded as 16x2 status screens still.

                                      You can ask LCDd what it thinks the width is:

                                      
                                      telnet <pfsense host="" ip="" or="" name="">13666
                                      hello
                                      connect LCDproc 0.5.4 protocol 0.3 lcd wid 20 hgt 2 cellwid 5 cellhgt 8</pfsense> 
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        Brak
                                        last edited by Jun 9, 2012, 2:02 AM

                                        @fmertz:

                                        @Brak:

                                        Only thing I think we can keep from this side-tracking is that the 64-bit SDECLCD works, but it is hard-coded as 16x2 status screens still.

                                        You can ask LCDd what it thinks the width is:

                                        
                                        telnet <pfsense host="" ip="" or="" name="">13666
                                        hello
                                        connect LCDproc 0.5.4 protocol 0.3 lcd wid 20 hgt 2 cellwid 5 cellhgt 8</pfsense> 
                                        

                                        Output:

                                        
                                        [2.0.1-RELEASE][root@fringebox.blizzard]/root(4): telnet 127.0.0.1 13666
                                        Trying 127.0.0.1...
                                        Connected to localhost.
                                        Escape character is '^]'.
                                        hello
                                        connect LCDproc 0.5.5 protocol 0.3 lcd wid 20 hgt 2 cellwid 5 cellhgt 8
                                        
                                        

                                        Examples: (Kinda bad example, but it at least shows the screens are shortened. I know things are getting cut off since I can't change the "pfsense shutting down" to be any bigger without losing the extra 8 characters on the end. The Lanner-LCM hacked driver can write the shutdown line on all the 20x2 characters just fine)

                                        Off center, not showing screens to be big enough:

                                        Clearly addresses the extra characters with other displays:

                                        1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by Jun 9, 2012, 2:13 AM Jun 9, 2012, 2:10 AM

                                          Not a driver problem then.
                                          Are you sure it ever shows more characters than that? The screens are always drawn from the left side.
                                          E.g.

                                          Steve

                                          1 Reply Last reply Reply Quote 0
                                          420 out of 587
                                          • First post
                                            420/587
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.