QNAP TS-439 Pro LCD documentation available?

Interested in our products? Post your questions here. Let us answer before you buy.

QNAP TS-439 Pro LCD documentation available?

Postby Alphix » Sat Sep 19, 2009 5:25 am

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
Alphix
New here
 
Posts: 3
Joined: Sat Sep 19, 2009 4:41 am
NAS Model: TS-419U

Re: QNAP TS-439 Pro LCD documentation available?

Postby QNAPFrances » Mon Sep 21, 2009 7:58 pm

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.


Hi David,

You may refer to our "Debian on QNAP" section on this forum:
viewforum.php?f=147


BR,
Frances
QNAPFrances
 

Re: QNAP TS-439 Pro LCD documentation available?

Postby Alphix » Fri Sep 25, 2009 4:29 pm

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
Alphix
New here
 
Posts: 3
Joined: Sat Sep 19, 2009 4:41 am
NAS Model: TS-419U

Re: QNAP TS-439 Pro LCD documentation available?

Postby MausFan » Mon Nov 09, 2009 6:37 pm

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.
MausFan
Starting out
 
Posts: 31
Joined: Tue Aug 25, 2009 9:39 pm
NAS Model: TS-239 Pro

Re: QNAP TS-439 Pro LCD documentation available?

Postby Alphix » Mon Nov 09, 2009 8:43 pm

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) ;)


Unfortunately it turned out that QNAP couldn't, or wouldn't, provide me with the docs...perhaps you'll have better luck...
Alphix
New here
 
Posts: 3
Joined: Sat Sep 19, 2009 4:41 am
NAS Model: TS-419U

Re: QNAP TS-439 Pro LCD documentation available?

Postby pcfe » Wed Nov 11, 2009 5:53 am

QNAPFrances wrote:2. Yes, we have these documents available and can send it to you when you need.


I would also be interested in that documentation.
pcfe
Starting out
 
Posts: 10
Joined: Fri Oct 30, 2009 5:33 am
NAS Model: TS-239 Pro

Re: QNAP TS-439 Pro LCD documentation available?

Postby QNAPFrances » Wed Nov 11, 2009 3:13 pm

Hi All,

We don't plan to release these documents for x86 models in this stage.
Sorry for the inconvenient.

BR,
Frances
QNAPFrances
 

Re: QNAP TS-439 Pro LCD documentation available?

Postby feri » Sun Feb 14, 2010 4:17 am

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.
feri
First post
 
Posts: 1
Joined: Wed Nov 25, 2009 7:55 pm
NAS Model: TS-239 Pro

Re: QNAP TS-439 Pro LCD documentation available?

Postby pcfe » Wed Feb 17, 2010 4:22 pm

for those wanting to extract these themselves;

  • 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)

from sbin of the initrd, copy these to /sbin/ on the target
  • 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)

from lib (ldd tells us, oh and ignore linux-gate.so.1), tar up these (including symlinks) and extract to /usr/lib/qnap/ on the target
  • 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


create /etc/ld.so.conf.d/qnap-lcd.conf (on Red Hat distributions, yours may have a different path name) containing
Code: Select all
/usr/lib/qnap


remember to run
Code: Select all
ldconfig
after configuring it to also look in /usr/lib/qnap

Code: Select all
[root@qnap]# lcd_tool -h

is self-explanatory.

If someone has input on the other two binaries, please share.
pcfe
Starting out
 
Posts: 10
Joined: Fri Oct 30, 2009 5:33 am
NAS Model: TS-239 Pro

Re: QNAP TS-439 Pro LCD documentation available?

Postby gr8boy » Tue Nov 02, 2010 9:48 pm

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.
gr8boy
New here
 
Posts: 2
Joined: Sat Jan 16, 2010 9:54 pm
NAS Model: TS-509 Pro

Re: QNAP TS-439 Pro LCD documentation available?

Postby StylusPilot » Thu Jan 06, 2011 5:44 pm

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.


feri,

Is this how you did it?

1. Setup ttyS1

Code: Select all
stty -F /dev/ttyS1 1200


2. echo command to LCD

Code: Select all
echo "Hello World!" > /dev/ttyS1


Where am I going wrong? it's definetly doing something, as when I boot up the QNAP the LCD has that ">>> Booting" but once I run the echo command the screen goes blank but I am unable to get anything to display untill after a reboot.
User avatar
StylusPilot
Starting out
 
Posts: 15
Joined: Mon Sep 21, 2009 3:56 pm
NAS Model: TS-239 Pro

Re: QNAP TS-439 Pro LCD documentation available?

Postby paulvanleest » Tue Jan 10, 2012 2:51 pm

Almost. You can set the baud like you did:
Code: Select all
stty -F /dev/ttyS1 1200


And then execute these commands to control the LCD (Switch on, Switch off, Set text in line 1, Set text in line 2):
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


Text length in the last 2 commands must be exactly 16!
paulvanleest
New here
 
Posts: 4
Joined: Mon Oct 26, 2009 7:18 am
NAS Model: TS-239 Pro


Return to Presales

Who is online

Users browsing this forum: No registered users and 5 guests