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
Moving message display
Moderator: Mversluis
Moving message display
- Attachments
-
- aansturing LED display.zip
- (96.84 KiB) Downloaded 627 times
Best regards, Verkenner
Re: Moving message display
Oké, let's start
&hs.OpenComport(37, "9600,N,8,1", 1, "", "")
&hs.OpenComport(37, "9600,N,8,1", 1, "", "")
Best regards, Verkenner
Re: Moving message display
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?
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?
Moving Message Display (MMD)
HI, hi...... Tip for those who are going to order one: another EUR 5 discount.
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.
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
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 ).
To be cont.
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.
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
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 ).
To be cont.
Best regards, Verkenner
Re: Moving message display
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.
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').
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>';
....
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').