Command Line Tool

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
mfergusson
LCD?
Posts: 5
Joined: Mon Jul 24, 2006 9:27 am

Command Line Tool

Post 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
Jon
Matrix Orbital
Matrix Orbital
Posts: 231
Joined: Mon Oct 24, 2005 10:38 am
Location: Calgary, AB, Canada
Contact:

Post 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
mfergusson
LCD?
Posts: 5
Joined: Mon Jul 24, 2006 9:27 am

Post 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.
Jon
Matrix Orbital
Matrix Orbital
Posts: 231
Joined: Mon Oct 24, 2005 10:38 am
Location: Calgary, AB, Canada
Contact:

Post 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.
mfergusson
LCD?
Posts: 5
Joined: Mon Jul 24, 2006 9:27 am

Post by mfergusson »

By command line tool I mean it's not dependant on any form of GUI/windows use
Jon
Matrix Orbital
Matrix Orbital
Posts: 231
Joined: Mon Oct 24, 2005 10:38 am
Location: Calgary, AB, Canada
Contact:

Post by Jon »

Are you looking to run it in the windows console?
mfergusson
LCD?
Posts: 5
Joined: Mon Jul 24, 2006 9:27 am

Post 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
Jeroen Vonk
LCD Guru
Posts: 55
Joined: Tue Apr 12, 2005 2:31 am

Re: Command Line Tool

Post 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 :)
mfergusson
LCD?
Posts: 5
Joined: Mon Jul 24, 2006 9:27 am

Post by mfergusson »

Hi Jeroen,

Many thanks for this :)

Will try it out soon.

Exactly what I've beem looking for.

Cheers,

Mark
Jon
Matrix Orbital
Matrix Orbital
Posts: 231
Joined: Mon Oct 24, 2005 10:38 am
Location: Calgary, AB, Canada
Contact:

Post by Jon »

Thank You Jeroen!
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

Jeroen, mind if we post that on the website?

Cheers.
Henry J.
President
Matrix Orbital
Jeroen Vonk
LCD Guru
Posts: 55
Joined: Tue Apr 12, 2005 2:31 am

Post 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? :))
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

heh, funny how that works...
Henry J.
President
Matrix Orbital
Post Reply