Page 1 of 1

Command Line Tool

Posted: Mon Jul 24, 2006 9:48 am
by mfergusson
Hi,

I've recently purchased a LK204 and looking for a command line tool to perform some basic functions. I don't need test software but I need a means for example to dim the display and has to be done using this, as the software I'm using (Girder) + pluggin, doesn't appear to support this type of functionality (and I'm not a programmer, but can work with some very basic scripting/perl).

Any suggestions?

Thanks,

Mark

Posted: Mon Jul 24, 2006 10:03 am
by Jon
Hi Mark,

You can use uProject to dim the display. Simply open it up, select the COM port, and baud rate, then go to the remember panel, click the remember button (so that the changes that you make will be permanent) then go to the main panel and move the brightness slider to the desired brightness, and thats it.

Let me know how this works.

--
Jon

Posted: Mon Jul 24, 2006 4:21 pm
by mfergusson
Yes I know, but I'm specifically looking for a command line tool. There must be something available? The guide refers a bit to using BASIC program or C, neither of which are that practical for me.

Thanks.

Posted: Mon Jul 24, 2006 4:50 pm
by Jon
Hyper terminal is another method of talking with the display. To use it, just pick the COM port, 8 bits, no parity, no flow control.

Posted: Mon Jul 24, 2006 5:07 pm
by mfergusson
By command line tool I mean it's not dependant on any form of GUI/windows use

Posted: Tue Jul 25, 2006 3:56 pm
by Jon
Are you looking to run it in the windows console?

Posted: Tue Jul 25, 2006 4:16 pm
by mfergusson
Hi,

To be run by a 3rd party program (girder), so I just need something that can be included as part of a script and would run in the background (or from windows cmd).

So some form of .exe that I can pass arguments to for the LCD would be ideal.

Thanks,

Mark

Re: Command Line Tool

Posted: Sun Jul 30, 2006 6:06 pm
by Jeroen Vonk
mfergusson wrote:Hi,

I've recently purchased a LK204 and looking for a command line tool to perform some basic functions.
Not really difficult, here is a small command line tool (wrote it in a few minutes, so don't expect it will always run without any errors :P) And you need the .NET framework 2.0 for this. If you don't like that, bad luck ;)

http://www.jvonk.info/mosdk/SerialCLT.zip (7 Kb)

Usage is quite easy,

SerialCLT.exe /Port:<portname> /Baudrate:<baudrate> text-to-send

Portname defaults to COM1
Baudrate defaults to 19200

Code: Select all

SerialCLT.exe /Port:COM3 Hello
Would simple display "Hello" on COM3

If you want to send special characters, use [254] to send the byte 254 to the display.

Code: Select all

SerialCLT.exe /Port:COM3 [254][88]Hello
Will clear the screen, and display "Hello" on COM3

Code: Select all

SerialCLT.exe /Port:COM3 "SerialCLT.exe" /Port:COM3 [254][88][254][118][254][61][1][10]
Clear screen, init bar graph, draw bar.

etc :)

Posted: Sun Jul 30, 2006 6:32 pm
by mfergusson
Hi Jeroen,

Many thanks for this :)

Will try it out soon.

Exactly what I've beem looking for.

Cheers,

Mark

Posted: Mon Jul 31, 2006 9:22 am
by Jon
Thank You Jeroen!

Posted: Mon Jul 31, 2006 2:17 pm
by Henry
Jeroen, mind if we post that on the website?

Cheers.

Posted: Tue Aug 01, 2006 12:03 am
by Jeroen Vonk
Henry wrote:Jeroen, mind if we post that on the website?
No, not at all. Please keep in mind that it's not completely fool-proof. Also please don't forget to mention that you need the .NET Framework 2.0. (does that make sense, a 22MB download for a 7KB tool? :))

Posted: Tue Aug 01, 2006 3:17 pm
by Henry
heh, funny how that works...