QNAP TS-439 Pro LCD documentation available?
-
- New here
- Posts: 3
- Joined: Sat Sep 19, 2009 4:41 am
QNAP TS-439 Pro LCD documentation available?
Hi,
I'm considering buying a QNAP TS-439 Pro and I'm planning to install Debian on it.
However, I'd still like to be able to use the LCD screen on front of the device. I have no problems writing code, but I'd like to know if the specs for the protocol to communicate with the LCD screen are (or can be made) available?
Oh, and the same question goes for the front-panel USB-copy-button.
Regards,
David
I'm considering buying a QNAP TS-439 Pro and I'm planning to install Debian on it.
However, I'd still like to be able to use the LCD screen on front of the device. I have no problems writing code, but I'd like to know if the specs for the protocol to communicate with the LCD screen are (or can be made) available?
Oh, and the same question goes for the front-panel USB-copy-button.
Regards,
David
Re: QNAP TS-439 Pro LCD documentation available?
Hi David,Alphix wrote: I'm considering buying a QNAP TS-439 Pro and I'm planning to install Debian on it.
if the specs for the protocol to communicate with the LCD screen are (or can be made) available?
and the same question goes for the front-panel USB-copy-button.
You may refer to our "Debian on QNAP" section on this forum:
http://forum.qnap.com/viewforum.php?f=147
BR,
Frances
-
- New here
- Posts: 3
- Joined: Sat Sep 19, 2009 4:41 am
Re: QNAP TS-439 Pro LCD documentation available?
Thanks,
I've already bought the TS-439 Pro and I've successfully installed Debian.
Could you please send the documentation you mentioned to my email address (should be available from my profile, right?)
Regards,
David
I've already bought the TS-439 Pro and I've successfully installed Debian.
Could you please send the documentation you mentioned to my email address (should be available from my profile, right?)
Regards,
David
-
- Starting out
- Posts: 31
- Joined: Tue Aug 25, 2009 9:39 pm
Re: QNAP TS-439 Pro LCD documentation available?
Hi Frances,
hi David,
I got exactly the same "problem". I run ubuntu on my TS 439 Pro and my LCD is freezed with the "Booting system" message.
Could you also provide me the documentation please? Or David, if you have already implemented something in C maybe even the source (if it is open source)
Thanks a lot in advance
Goran
P.S.: I PM you my email address.
hi David,
I got exactly the same "problem". I run ubuntu on my TS 439 Pro and my LCD is freezed with the "Booting system" message.
Could you also provide me the documentation please? Or David, if you have already implemented something in C maybe even the source (if it is open source)
Thanks a lot in advance
Goran
P.S.: I PM you my email address.
-
- New here
- Posts: 3
- Joined: Sat Sep 19, 2009 4:41 am
Re: QNAP TS-439 Pro LCD documentation available?
Unfortunately it turned out that QNAP couldn't, or wouldn't, provide me with the docs...perhaps you'll have better luck...MausFan wrote: I got exactly the same "problem". I run ubuntu on my TS 439 Pro and my LCD is freezed with the "Booting system" message.
Could you also provide me the documentation please? Or David, if you have already implemented something in C maybe even the source (if it is open source)
-
- Starting out
- Posts: 10
- Joined: Fri Oct 30, 2009 5:33 am
Re: QNAP TS-439 Pro LCD documentation available?
I would also be interested in that documentation.QNAPFrances wrote:2. Yes, we have these documents available and can send it to you when you need.
Re: QNAP TS-439 Pro LCD documentation available?
Hi All,
We don't plan to release these documents for x86 models in this stage.
Sorry for the inconvenient.
BR,
Frances
We don't plan to release these documents for x86 models in this stage.
Sorry for the inconvenient.
BR,
Frances
-
- First post
- Posts: 1
- Joined: Wed Nov 25, 2009 7:55 pm
Re: QNAP TS-439 Pro LCD documentation available?
I have Debian installed on my TS439. I was able to get the LCD working. All that was required was to set the baud rate of /dev/ttyS1 to 1200 using stty. Now I can "echo" commands to the LCD. I have also found some documentation about this type of LCD. If anyone needs it, send me a private message.
-
- Starting out
- Posts: 10
- Joined: Fri Oct 30, 2009 5:33 am
Re: QNAP TS-439 Pro LCD documentation available?
for those wanting to extract these themselves;
create /etc/ld.so.conf.d/qnap-lcd.conf (on Red Hat distributions, yours may have a different path name) containing
remember to run after configuring it to also look in /usr/lib/qnap
is self-explanatory.
If someone has input on the other two binaries, please share.
- image your DOM as per this post.
- copy the image to another box.
- mount one of the two boot partitions as per this, I used the second partition, YMMV.
- copy boot/initrd.boot to some place ([user@PC]# cp boot/initrd.boot /tmp/initrd.boot.gz)
- copy boot/rootfs2.bz to some place ([user@PC]# cp boot/rootfs2.bz /tmp/)
- extract the initrd ([user@PC]# cd /tmp && gunzip initrd.boot.gz)
- loop mount the initrd ([user@PC]# mkdir /tmp/initrd ; sudo mount -o loop,ro initrd.boot /tmp/initrd)
- copy out files (see below)
- unmount the initrd ([user@PC]# sudo unmount -d /tmp/initrd)
- extract the rootfs ([user@PC]# mkdir /tmp/rootfs ; cd /tmp/rootfs && tar xvjf ../rootfs2.bz)
- lcd_hwtest (I'm not yet sure if this is useful when not using the QNAP distribution)
- lcdmond (I'm not yet sure if this is useful when not using the QNAP distribution)
- lcd_tool (used to write to the LCD)
- get_time (used by lcd_tool)
- libuLinux_config.so*
- libuLinux_naslog.so*
- libuLinux_NAS.so*
- libuLinux_PDC.so*
- libuLinux_quota.so*
- libuLinux_Storage.so*
- libuLinux_Util.so*
Code: Select all
[user@PC]# cd /tmp/rootfs/usr/lib/
[user@PC]# tar cvjf /tmp/libs.tar.bz2 libuLinux_config.so* libuLinux_naslog.so* libuLinux_NAS.so* libuLinux_PDC.so* libuLinux_quota.so* libuLinux_Storage.so* libuLinux_Util.so*
[user@PC]# scp /tmp/libs.tar.bz2 root@qnap:/tmp/
[root@qnap]# mkdir /usr/lib/qnap
[root@qnap]# cd /usr/lib/qnap
[root@qnap]# tar xfjv /tmp/usr_lib.tar.bz2
Code: Select all
/usr/lib/qnap
Code: Select all
ldconfig
Code: Select all
[root@qnap]# lcd_tool -h
If someone has input on the other two binaries, please share.
-
- New here
- Posts: 2
- Joined: Sat Jan 16, 2010 9:54 pm
Re: QNAP TS-439 Pro LCD documentation available?
Hi,
I've successfully managed to install Ubuntu 10.10 Server on my QNAP TS-659 Pro. I've also extracted lcd_tool and the libraries as described in the previous post.
Upon running lcd_tool I received the following error:
sudo: unable to execute /sbin/lcd_tool: No such file or directory
A bit of digging around led me to realize that the problem lies in my Ubuntu version being 64-bit and the lcd_tool being 32-bit. So I installed the 32-bit version of libc like this:
sudo apt-get install ia32-libs
... and I was up and running.
I've successfully managed to install Ubuntu 10.10 Server on my QNAP TS-659 Pro. I've also extracted lcd_tool and the libraries as described in the previous post.
Upon running lcd_tool I received the following error:
sudo: unable to execute /sbin/lcd_tool: No such file or directory
A bit of digging around led me to realize that the problem lies in my Ubuntu version being 64-bit and the lcd_tool being 32-bit. So I installed the 32-bit version of libc like this:
sudo apt-get install ia32-libs
... and I was up and running.
- StylusPilot
- Starting out
- Posts: 16
- Joined: Mon Sep 21, 2009 3:56 pm
Re: QNAP TS-439 Pro LCD documentation available?
feri,feri wrote:I have Debian installed on my TS439. I was able to get the LCD working. All that was required was to set the baud rate of /dev/ttyS1 to 1200 using stty. Now I can "echo" commands to the LCD. I have also found some documentation about this type of LCD. If anyone needs it, send me a private message.
Is this how you did it?
1. Setup ttyS1
Code: Select all
stty -F /dev/ttyS1 1200
Code: Select all
echo "Hello World!" > /dev/ttyS1
Re: QNAP TS-439 Pro LCD documentation available?
Almost. You can set the baud like you did:
And then execute these commands to control the LCD (Switch on, Switch off, Set text in line 1, Set text in line 2):
Text length in the last 2 commands must be exactly 16!
Code: Select all
stty -F /dev/ttyS1 1200
Code: Select all
echo -e "M^\x1" > /dev/ttyS1
echo -e "M^\x0" > /dev/ttyS1
echo -e "M\f\x0 HELLO WORLD 1234" > /dev/ttyS1
echo -e "M\f\x1 HELLO WORLD 1234" > /dev/ttyS1
-
- Starting out
- Posts: 14
- Joined: Sat Mar 31, 2012 3:44 am
Re: QNAP TS-439 Pro LCD documentation available?
Here is a script to set it. Save the content between the ===== lines in to a file set_qnap_lcd
Then make the file executable with chmod +x set_qnap_lcd
Then just do "set_qnap_lcd on" to turn it on and "set_qnap_lcd 2 Hello World" to set text of second line
====================================================================
#!/bin/bash
TEXT="${@:2:$#}"
function printUsage() {
echo "Usage: $0 <off|on>"
echo "Usage: $0 <1|2> Text Message"
exit 0
}
function setDisplay() {
if [ ${#2} -gt 15 ]; then
echo "String to set can be max 16 characters!"
exit 1
fi
printf "Setting line $1 on display to \"%s\"\n" "$2"
# Text we print must be padded to exactly 16 characters to wipe old text
printf "M\f\x`expr $1 - 1` %-16s" "$2" > /dev/ttyS1
}
if [ $# -eq 0 ]; then
printUsage
fi
stty -F /dev/ttyS1 1200
if [ $1 = "off" ]; then
echo "Turning display off"
echo -e "M^\x0" > /dev/ttyS1
exit 0
fi
if [ $1 = "on" ]; then
echo "Turning display on"
echo -e "M^\x1" > /dev/ttyS1
exit 0
fi
if [ $1 = "1" ] || [ $1 = "2" ]; then
setDisplay $1 "$TEXT"
exit 0
fi
printUsage
====================================================================
Then make the file executable with chmod +x set_qnap_lcd
Then just do "set_qnap_lcd on" to turn it on and "set_qnap_lcd 2 Hello World" to set text of second line
====================================================================
#!/bin/bash
TEXT="${@:2:$#}"
function printUsage() {
echo "Usage: $0 <off|on>"
echo "Usage: $0 <1|2> Text Message"
exit 0
}
function setDisplay() {
if [ ${#2} -gt 15 ]; then
echo "String to set can be max 16 characters!"
exit 1
fi
printf "Setting line $1 on display to \"%s\"\n" "$2"
# Text we print must be padded to exactly 16 characters to wipe old text
printf "M\f\x`expr $1 - 1` %-16s" "$2" > /dev/ttyS1
}
if [ $# -eq 0 ]; then
printUsage
fi
stty -F /dev/ttyS1 1200
if [ $1 = "off" ]; then
echo "Turning display off"
echo -e "M^\x0" > /dev/ttyS1
exit 0
fi
if [ $1 = "on" ]; then
echo "Turning display on"
echo -e "M^\x1" > /dev/ttyS1
exit 0
fi
if [ $1 = "1" ] || [ $1 = "2" ]; then
setDisplay $1 "$TEXT"
exit 0
fi
printUsage
====================================================================
-
- First post
- Posts: 1
- Joined: Mon Oct 06, 2014 3:10 pm
Re: QNAP TS-439 Pro LCD documentation available?
Hi,
I have written a python module to control the LCD Display and read out the buttons.
https://github.com/bkram/mytoolbox/tree ... napdisplay
Maybe this is useful for some other people as well.
I have started to write a display daemon as well but that is very much WIP.
Good luck
I have written a python module to control the LCD Display and read out the buttons.
https://github.com/bkram/mytoolbox/tree ... napdisplay
Maybe this is useful for some other people as well.
I have started to write a display daemon as well but that is very much WIP.
Good luck
-
- New here
- Posts: 9
- Joined: Tue Feb 14, 2017 7:25 am
Re: QNAP TS-439 Pro LCD documentation available?
Any idea if this could be adapted for use on Windows? I currently have Windows as my base OS on a TS-453a (not as a VM), and I am unable to find drivers/software to control both my LCD display and the unit fans. I would be curious to find out if I could somehow use your script on Windows!bkram wrote:Hi,
I have written a python module to control the LCD Display and read out the buttons.
https://github.com/bkram/mytoolbox/tree ... napdisplay
Maybe this is useful for some other people as well.
I have started to write a display daemon as well but that is very much WIP.
Good luck