Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Pertelian X2040

Discussion about LCD's and other related hardware

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351, hydrolisk1792

Post Reply
glastonburyian
Posts: 4
Joined: October 8th, 2007, 9:48 pm
Location: Macclesfield, UK

Pertelian X2040

Post by glastonburyian »

Hello All!

I've been playing around with LCD Smartie on my laptop in preparation for getting my Pertelian X2040 for use with my main PC, and I'm very impressed.

Today the X2040 arrived, and I've spent all day trying to get it working... eventually I succeeded, by using the HD44780 Serial Display DLL v1.1 instead of the Pertelian driver :? And I'm happy to report that this works just fine - scrolling, flashing, custom characters the lot... I can even turn the backlight on (although first you have to turn it off from the command menu, even though it's already off :? )

One quick question about the backlight, is it possible to turn it on by issuing instructions on a screen, rather than the command menu? And will you be either removing the Pertelian driver, or adding a note that the HD44780 driver works much, much better for this device?

Thanks for all the good work that's gone into LCD Smartie so far...

Ian
glastonburyian
Posts: 4
Joined: October 8th, 2007, 9:48 pm
Location: Macclesfield, UK

Post by glastonburyian »

OK... found a way to turn the backlight on when LCD Smartie starts up:
I've used an action that looks something like

1 > 0 THEN BACKLIGHT(1)

Must admit the ACTIONS are still a little confusing, is there an explaination of them anywhere - I mean some are obvious, but I'm having problems with finding a list of possible conditions, and the meaning of GPOxxxxx?
mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Post by mattcro »

Not sure about the backlight issue, as I have no experience with Pertelian LCDs or the driver...

Try setting the backlight slider on the Screen tab under Display Settings to maximum. That might make the backlight come on automatically when Smartie starts. If you've already tried that, then I don't know...

Did the Pertelian driver not work at all (nothing on the display) or did it sort-of work, with perhaps corrupted displays? Did you use the HD44780-serial driver to do the backlight control? I understand the pertelian.dll is out of date and HD44780S generally works better.

As for actions, these generally respond to a change of input condition, and the conditions are checked at regular intervals, I think specified by the DLL check interval setting. As far as I know, there's no official documentation for various Smartie features like actions... high time we got some good user guides written up.

At startup, all the conditions are new, so things like "IF 1>0" will trigger the associated action - "backlight ON" in your case. After that, I don't think the action will be retriggered, because the condition hasn't changed.

Actions are generally triggered by pushbuttons on a compatible LCD unit, media player status (playing/stopped), network conditions (do something if an email arrives)... lots of things. In fact, so many things that it's easy to get confused. :?

For example, I have some actions that switch screens/themes depending on what I'm doing. If Winamp is running, I show the Winamp info screen, otherwise I show general system info. If I press the play button on my LCD, Smartie triggers an action to make Winamp start playing.

The GPO command in the action output choices controls General Purpose Outputs that are a feature of some LCDs, like Matrix Orbital and Crystalfontz units. The GPOs are basically electrical switches that can control alarm beepers (think of an action for CPU over-temp), LED indicators and even case fans. Some LCDs even offer dedicated fan control outputs, hence the Fan() command.

For example, to turn on GPO2 (there are usually several GPOs), you would put GPO(2,1) as the action. To turn the GPO off again, you would put GPO(2,0).

Hope that clears up your questions about actions!
glastonburyian
Posts: 4
Joined: October 8th, 2007, 9:48 pm
Location: Macclesfield, UK

Post by glastonburyian »

mattcro wrote:Not sure about the backlight issue, as I have no experience with Pertelian LCDs or the driver...

Try setting the backlight slider on the Screen tab under Display Settings to maximum. That might make the backlight come on automatically when Smartie starts. If you've already tried that, then I don't know...

Did the Pertelian driver not work at all (nothing on the display) or did it sort-of work, with perhaps corrupted displays? Did you use the HD44780-serial driver to do the backlight control? I understand the pertelian.dll is out of date and HD44780S generally works better.

As for actions, these generally respond to a change of input condition, and the conditions are checked at regular intervals, I think specified by the DLL check interval setting. As far as I know, there's no official documentation for various Smartie features like actions... high time we got some good user guides written up.
At startup, all the conditions are new, so things like "IF 1>0" will trigger the associated action - "backlight ON" in your case. After that, I don't think the action will be retriggered, because the condition hasn't changed.

Actions are generally triggered by pushbuttons on a compatible LCD unit, media player status (playing/stopped), network conditions (do something if an email arrives)... lots of things. In fact, so many things that it's easy to get confused. :?

For example, I have some actions that switch screens/themes depending on what I'm doing. If Winamp is running, I show the Winamp info screen, otherwise I show general system info. If I press the play button on my LCD, Smartie triggers an action to make Winamp start playing.

The GPO command in the action output choices controls General Purpose Outputs that are a feature of some LCDs, like Matrix Orbital and Crystalfontz units.


Using the 1>0 method seems to do what I need when it comes to setting the backlight - neither the contrast nor brightness settings on the display settings panel seem to have any effect...

The Pertelian driver sent only a "scrambled" output to the screen - about 25% of the output was missing, whereas the HD44780S works perfectly.

It looks as though I need to do some more playing with actions, although on the Pertelian display it seems the GPOs won't be of much use as it doesn't control anything :lol:

As I say, my immediate problems seem to be resolved, but thanks for getting back to me about actions - definately something I should investigate for screen display control. It would be good to see some user guides, but playing around in the dark is kind of fun!
mhillmer
Posts: 1
Joined: December 28th, 2007, 5:51 am

Post by mhillmer »

Can you share how you get the HD44780 driver to work? I can get the pertelian.dll driver to work a bit, but the display is quite messed up. The HD44780, with the same options (COM4,9600) doesn't work at all for me.

Thanks,
Matt
grantb3
Posts: 50
Joined: February 10th, 2008, 4:27 pm

Post by grantb3 »

Post Reply