Moving message display

Forum about LEDS, LED lights, DMX and other lights.

Moderator: Mversluis

Post Reply
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

Moving message display

Post by Verkenner »

Bought a Moving message 7x50 display from http://www.mampa.nl (This Post is not intended as a commercial !).
http://www.mampa.nl/lichtkranten/lichtk ... ers--68-cm

In the attached .ZIP there is a program to directly send a messsage from a PC-RS232-port to this display (lichtkrant).

This Moving message display is compatible with:
- Skytronic MSB-67
- Velleman MML16R
- AM-03127

Who knows how to send characters from Homeseer to this display?
Or how to send a tekst from a HTML-page to this display?

Thanks
Attachments
aansturing LED display.zip
(96.84 KiB) Downloaded 608 times
Best regards, Verkenner
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

Re: Moving message display

Post by Verkenner »

Oké, let's start :-)

&hs.OpenComport(37, "9600,N,8,1", 1, "", "")
Best regards, Verkenner
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Moving message display

Post by Digit »

Hier: http://www.conrad.nl/goto/?product=590996
staat een link naar
http://www.produktinfo.conrad.com/daten ... _Board.pdf
en in die PDF staat:
AM004 -03128/03127 LED Display Board Communication
Nou zeg ... dat is dezelfde PDF als in je ZIPje, maar dan heb je alles toch eigenlijk al.

Ken je deze al trouwens: http://www.domoticaforum.eu/viewtopic.p ... 38&start=0
Je mag de 5 pagina's met posts zelf even doornemen of er misschien een scriptje in voorkomt.

En anders heb ik nog wel wat NodeJS code voor je; vertalen naar een script lijkt me dan een leuke uitdaging... er zijn hier al zoveel scripts gepost dat daar uit te komen moet zijn, toch? :wink:
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

Moving Message Display (MMD)

Post by Verkenner »

HI, hi...... Tip for those who are going to order one: another EUR 5 discount. :D

Thanks Robert, appreciated.

I found the files somewhere deep downunder a German website and I tested and posted it in .ZIP to share with other Domoticans.
==>> The challenge is the Checksum (only sending some asci-characters to the LED BAR will not work).
On the German website: Ich selbst scheitere daran, das ich die Checksumme nicht errechnen kann. :lol:

And I did some investigation to find out the compatability from the SAME led bars (Is the 'Conrad' the same).
When having new MMD-info I'll share.

My Velleman MK158 mini Serial LCD is working fine with HomeSeer (No checksum). Its tells me to put the garbage can outside :roll:
https://www.quasarelectronics.co.uk/Ite ... klight-box
In HomeSeer: ' init COM8 from Serial MK158-display Velleman
hs.OpenComPort 8,"2400,N,8,1",1,"",""
hs.writelog "COM8", "Displayport COM8 opened"
hs.SendToComPort 8,CHR(13)
------------------------------------------------------------------

I am not a sloppy programmer so perhaps I can send text from a HomeSeer-event to the LED BAR with RS232display.exe with a qualifier (=text to display).
With the RS232display.exe the problem with the Checksum is past with a big bow ( Van Gaal english :lol: ).

To be cont.
Best regards, Verkenner
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Moving message display

Post by Digit »

My ledbar script only supports a very small part of the features (color & speed, that's all I need) but this is how I calculate the checksum, maybe this will help.
It's very simple actually, just a few lines of Javascript. So if your ledbar is truly compatible with AM03127 this should work.

Code: Select all

  ....
  var cmdpara = JSON.parse(cmd);
  var cmnd = "<L1><PA><FE><M" + cmdpara.speed + "><WA><FE><C" + cmdpara.color + ">" + cmdpara.text;
  
  // calculate checksum by XOR-ing all bytes
  var cs = 0;
  for(i=0;i<cmnd.length;i++){
    cs = (cs ^ cmnd[i].charCodeAt(0));
  }
  cs = tools.padLeft(cs.toString(16).toUpperCase(), '0', 2);

  txdata = '<ID01>'+cmnd+cs+'<E>';

  ....

txdata is the string that's being sent to the ledbar.
Oh and the tools.padLeft() call does what its name and parameters suggest: it adds '0' characters so that the resulting string has a length of 2. (e.g. '3' becomes '03').
Post Reply

Return to “LEDS, DMX & Lights Forum”