Bael Posted March 18, 2023 Share Posted March 18, 2023 1 hour ago, SimonF said: Are you able to post diagnostics so I can review logs etc? sure: qnap-diagnostics-20230318-1250.zip Quote Link to comment
SimonF Posted March 18, 2023 Share Posted March 18, 2023 Thanks for all the help so far, So for QNAP lcdproc will just need to have serial support, I will continue to research the driver/kernal modules required to support once I have the basis of a plugin ready. Quote Link to comment
Bael Posted March 18, 2023 Share Posted March 18, 2023 6 minutes ago, SimonF said: Thanks for all the help so far, So for QNAP lcdproc will just need to have serial support, I will continue to research the driver/kernal modules required to support once I have the basis of a plugin ready. If you need any further information or testing i would be happy to assist. 1 Quote Link to comment
SimonF Posted March 18, 2023 Share Posted March 18, 2023 2 hours ago, [email protected] said: If you need any further information or testing i would be happy to assist. So does you LCD just show Booting? Quote Link to comment
Bael Posted March 18, 2023 Share Posted March 18, 2023 Yeah it says "System booting" in line1 and an endless cycle of filling chevrons in line2. Quote Link to comment
SimonF Posted March 18, 2023 Share Posted March 18, 2023 (edited) 1 hour ago, [email protected] said: Yeah it says "System booting" in line1 and an endless cycle of filling chevrons in line2. I cannot think why your are not seeing S1 unless default s0 is no longer connected and S1 would become S0. Did or could you try these commands to see if they have an effect? stty -F /dev/ttyS0 1200 And then execute these commands to control the LCD (Switch on, Switch off, Set text in line 1, Set text in line 2): echo -e "M^\x1" > /dev/ttyS0 echo -e "M^\x0" > /dev/ttyS0 echo -e "M\f\x0 HELLO WORLD 1234" > /dev/ttyS0 echo -e "M\f\x1 HELLO WORLD 1234" > /dev/ttyS0 Edited March 18, 2023 by SimonF Quote Link to comment
SimonF Posted March 18, 2023 Share Posted March 18, 2023 looks like LCDproc has support for the screens used in QNAP devices. /** \file server/drivers/icp_a106.c * LCDd \c icp_a106 for ICP Peripheral Communication Protocol devices */ /* * This is the LCDproc driver for the ICP Peripheral Communication Protocol * used by the ICP A106 and A125 LCD boards. The A125 is used in QNAP devices * * Both LCD and alarm functions are accessed via one serial port, using * separate commands. Unfortunately, the device runs at slow 1200bps and the * LCD does not allow user-defined characters, so the bargraphs do not look * very nice. * * Copyright (C) 2002 Michael Schwingen <[email protected]> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., 51 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 * * This driver is mostly based on the HD44780 and the LCDM001 driver. * (Hopefully I have NOT forgotten any file I have stolen code from. If so * send me an e-mail or add your copyright here!) * * - changes to support A125 and buttons made by Sam Bingner <[email protected]> * */ Quote Link to comment
Bael Posted March 19, 2023 Share Posted March 19, 2023 16 hours ago, SimonF said: I cannot think why your are not seeing S1 unless default s0 is no longer connected and S1 would become S0. Did or could you try these commands to see if they have an effect? stty -F /dev/ttyS0 1200 And then execute these commands to control the LCD (Switch on, Switch off, Set text in line 1, Set text in line 2): echo -e "M^\x1" > /dev/ttyS0 echo -e "M^\x0" > /dev/ttyS0 echo -e "M\f\x0 HELLO WORLD 1234" > /dev/ttyS0 echo -e "M\f\x1 HELLO WORLD 1234" > /dev/ttyS0 yes I tried that, multiple times still only system booting. I have no idea why. Quote Link to comment
SimonF Posted March 19, 2023 Share Posted March 19, 2023 3 minutes ago, [email protected] said: yes I tried that, multiple times still only system booting. I have no idea why. ok thanks. Quote Link to comment
SimonF Posted March 29, 2023 Share Posted March 29, 2023 On 3/19/2023 at 8:13 AM, [email protected] said: yes I tried that, multiple times still only system booting. I have no idea why. Got a TS-859U-RP+ to use for testing. I can get the screen to work using a USB Serial to breakout cable plugged into the LCD Display with lcdproc. But waiting on some memory to see if I can load UnRaid as only as 1Gb at present which is not enough for Unraid. 1 Quote Link to comment
ricostuart Posted March 31, 2023 Share Posted March 31, 2023 I got my qnap device running really well and would like to get my lcd to run properly. What cable did you use? Quote Link to comment
SimonF Posted March 31, 2023 Share Posted March 31, 2023 3 minutes ago, ricostuart said: I got my qnap device running really well and would like to get my lcd to run properly. What cable did you use? https://www.amazon.co.uk/dp/B0B24NF84Y?psc=1&ref=ppx_yo2ov_dt_b_product_details just to see if I can get the LCD to work as cannot boot unraid on the box yet. Do you see /dev/ttys0 and s1 on your server. Quote Link to comment
ricostuart Posted March 31, 2023 Share Posted March 31, 2023 thats with the qnap plugin installed, but the screen is disconnected Quote Link to comment
SimonF Posted March 31, 2023 Share Posted March 31, 2023 (edited) 5 hours ago, ricostuart said: thats with the qnap plugin installed, but the screen is disconnected is that the QNAP EC pluging to allow fan control by ich777? Here is a copy of the lcdproc package and a config for icp_a106 lcd used in QNAP. I have the serial port set to /dev/ttyUSB0 your could try /dev/ttyS0 find this section in the config. [icp_a106] Device=/dev/ttyUSB0 change to /dev/ttyS0 # Display dimensions Size=20x2 Port should be S1 but your dont have one so may not be correct so try S0. put package in /tmp or somewhere installpkg /tmp/lcdproc.txz LCDd -c /tmp/LCDd.conf will start the background process. And text should be on the screen if it works. lcdproc N will display a clock lcdproc.txz LCDd.conf Edited March 31, 2023 by SimonF Quote Link to comment
SimonF Posted April 2, 2023 Share Posted April 2, 2023 On 3/19/2023 at 8:13 AM, [email protected] said: yes I tried that, multiple times still only system booting. I have no idea why. @Lavoslav Are you able to provide output of the following. cat /proc/tty/driver/serial udevadm info -q property -n /dev/ttyS* Quote Link to comment
hardy73 Posted April 4, 2023 Share Posted April 4, 2023 I use a USB to serial adapter with a ch340 chip. I pluged it to the internal USB connector and make a UDEV-rule for safety connection to the right USB. SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="1a86", SYMLINK+="LCD" Then I use the User Scripts Plugin to display some informations: At Startup of Array: #!/bin/bash hostname=$(hostname) ip=$(hostname -I | cut -d' ' -f1) stty -F /dev/LCD 1200 echo -e "M\x5E\x1" > /dev/LCD echo -e "M\x0C\x0 $hostname " > /dev/LCD sleep 2 echo -e "M\x0C\x1 $ip " > /dev/LCD At Stopping of Array: #!/bin/bash stty -F /dev/LCD 1200 echo -e "M\x5E\x1" > /dev/LCD echo -e "M\x0C\x1 reboot/shutdown " > /dev/LCD It is a quick and dirty job, but it works. 1 Quote Link to comment
SimonF Posted April 6, 2023 Share Posted April 6, 2023 On 3/19/2023 at 8:13 AM, [email protected] said: yes I tried that, multiple times still only system booting. I have no idea why. We have found the number of UARTS is set to one, I have asked for it be increased in 6.12. Quote Link to comment
SimonF Posted April 7, 2023 Share Posted April 7, 2023 On 3/31/2023 at 12:08 PM, ricostuart said: ttyS1 will show up in the next 6.12 release. Quote Link to comment
SimonF Posted April 14, 2023 Share Posted April 14, 2023 6.12rc3 addss in additional serial ports so lcd is accessable, 6,12 also has a smaller memory footprint. it will boot on a 1gb qnap. Quote Link to comment
Funsh Posted April 15, 2023 Share Posted April 15, 2023 With 6.12 RC3 i can confirm that not only ttyS0 but also ttyS1/ttyS2/ttyS3 show up on my Qnap TVS-882. With the commands above i am able to control my display on ttyS1 (i.e. turn off, turn on, put a hello world text to the display) Quote Link to comment
SimonF Posted April 16, 2023 Share Posted April 16, 2023 6 hours ago, Funsh said: With 6.12 RC3 i can confirm that not only ttyS0 but also ttyS1/ttyS2/ttyS3 show up on my Qnap TVS-882. With the commands above i am able to control my display on ttyS1 (i.e. turn off, turn on, put a hello world text to the display) I have started creating LCD_Manager which will have a specific Unraid Client but currently just support lcdproc options. You can install from CA. 1 Quote Link to comment
Funsh Posted April 16, 2023 Share Posted April 16, 2023 Thanks. Can confirm that it works. With just the lcdproc option some options are not really usefull due to how it is displayed (i.e. the display has simply too less characters to display), but the "N C M" options work quite well. Since the Qnap is anyway just my backup NAS, which is just on for a few hours every few weeks, i am perfectly fine with anything other on the display that is not "booting ..." Quote Link to comment
TechBLT Posted June 23, 2023 Share Posted June 23, 2023 I read through this entire thread with bated breath. I am excited to give this a whirl. I purchased a TVS-874 recently and migrated my environment to it from unraid. I moved to higher capacity drives and wanted more performance as well as stability. My unraid environment would randomly become non-responsive. After working with QNAP container station, I am annoyed and missing a unraid. I will copy my data to another Nas and so I can re-purpose the QNAP NAS as an unraid NAS. Quote Link to comment
pras1011 Posted October 22, 2023 Share Posted October 22, 2023 I have a qnap 473 and I have added a tp link tx401 2.5gbe card but it's not recognised in unraid. I assume I have to disable the 1gbe ethernet ports but I have checked the bios and I cant find the settings to disable them. Does anyone know how to do this? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.