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

    LCDproc driver for LCD made by GI FAR TECHNOLOGY CO.,LTD

    Scheduled Pinned Locked Moved pfSense Packages
    13 Posts 2 Posters 1.5k Views
    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 @ozlecz
      last edited by

      @ozlecz said in LCDproc driver for LCD made by GI FAR TECHNOLOGY CO.,LTD:

      will this LCD work with pfsense using package lcdproc? exact model is GIR2002P-FPFFJPA.

      If you are willing to do the research and locate a set of specifications, I am willing to take a look. I have contributed drivers to the lcdproc project before. This LCD model is not immediately familiar. Is this in an appliance? Details please.

      LCD devices are typically built in 2 parts. The LCD screen and its controller chip are one one board, then there is a second board for interface to the host (serial, parallel, etc.) and power. You might have to somehow disassemble these and take detailed pictures, front and back. The idea is to discover controller chips and somehow locate specifications.

      Other option is to reach out to the manufacturer of your device and ask them for a spec. Sometimes they are willing to help if the question is easy to them, sometimes they require a current support contract to even talk to you.

      If you are desperate with nothing but time, the HD44780 driver is a sort of super-driver that supports MANY different connection types.

      Keep us posted.

      1 Reply Last reply Reply Quote 0
      • O
        ozlecz
        last edited by

        Hi,
        This is the device
        https://www.ibase.com.tw/english/ProductDetail/NetworkAppliance/FWA8506

        I do have the complete documentation of the LCM

        [0_1563508484932_ibase lcd.pdf](Uploading 100%)

        1 Reply Last reply Reply Quote 0
        • F
          fmertz
          last edited by

          The PDF document above is not working for me. It may have to be uploaded as a zip file instead. Thanks.

          1 Reply Last reply Reply Quote 0
          • O
            ozlecz
            last edited by

            ok here it is siribase lcd.zip

            1 Reply Last reply Reply Quote 0
            • F
              fmertz
              last edited by

              I went through the spec, and this particular command set does not seem supported by lcdproc yet. The more direct path seems to develop another connection type for the HD44780 serial driver. This is actual development work, but with a good head start in the existing code base. I did similar work for the EZIO devices here: EZIO Driver for LCDproc

              The spec is good, but not terribly complete. One would assume that sending raw text to the device just prints it, wherever the "cursor" is. There is also nothing said about what happens when the 4 keypad keys are pressed/released. Likely, text comes back to the host, with the encoding left as an exercise. On the other hand, there is support for custom characters, which opens the device to use the nicer lcdproc features, like the clock with big numbers, and vertical/horizontal bars.

              7-19-2019 12-59-09 PM.png

              A superficial read of the hardware sheet shows both a serial port (with a plug) and USB (solder points?) interfaces are potentially available. Might be worth opening your box to confirm this is in fact using the serial interface.

              1 Reply Last reply Reply Quote 0
              • F
                fmertz
                last edited by

                After reaching out, the folks at iBase shared an archive of code and documentation for several models. A sample shell script hints at the data returned by the keypad:

                #!/bin/bash
                
                #read key input
                
                stty -F /dev/ttyS1 cs8 19200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
                
                sleep 1
                
                while (true) do cat -A  /dev/ttyS1 ; done
                #while read -r S < /dev/ttyS1 ; do 
                #echo "$S"
                #case "$S" in
                # "A")
                #   echo "esc";;
                # "B")
                #   echo "up";;
                # "C")
                #   echo "down";;
                # "D")
                #   echo "enter";;
                #   *)
                #   echo "$S";;
                #esac
                #done
                

                Next step is to try and get the hardware to develop the driver...

                1 Reply Last reply Reply Quote 0
                • O
                  ozlecz
                  last edited by

                  thanks and i will be getting the hardware end of this month...will do this and will update you as well...many thanks for the effort

                  1 Reply Last reply Reply Quote 0
                  • O
                    ozlecz
                    last edited by

                    i now have the hardware with me but unsure of what
                    =com port
                    =connection type to use

                    1 Reply Last reply Reply Quote 0
                    • O
                      ozlecz
                      last edited by

                      Update: it works with DRIVER:CwLnx
                      Getting all the 15 2*row parameters

                      1 Reply Last reply Reply Quote 0
                      • F
                        fmertz
                        last edited by

                        This is a nice surprise. So, in short, these iBase appliances feature an LCD module compatible with Cwlinux, long supported by lcdproc. No new driver code necessary. Thanks for the update.

                        CW1602 LCD Module

                        1 Reply Last reply Reply Quote 0
                        • O
                          ozlecz
                          last edited by

                          I just realized the buttons UP DOWN ENTER ESC arent working at all...otherwise its perfect

                          1 Reply Last reply Reply Quote 0
                          • F
                            fmertz
                            last edited by

                            There are details here on the content of the LCDd.conf file. You can do some manual edits and see how it goes:

                            CwLnx-howto

                            Double check the KeyMap(s) and try to line them up with the script above. You might have to run the script alone to double check the mapping. It looks like this iBase device did not implement the same keypad mapping as the Cwlinux device.

                            Also check the [server] and [menu] sections. The keypad should let you navigate the built-in menu system and manually change the backlight and a few other options.

                            Best of luck, keep us posted.

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