
Cybertech WD24 Lichtkrant
Bovenstaande lichtkrant kwam ik tegen op marktplaats.
INHOUD: WD24 A
ART. NR.: C03005
NLNR.: 25-6845
SERIE-NR.: C0103-xxxx
Communicatie met de lichtkrant verloopt via RS-232 of RS-485.
De instellingen voor RS-232 zijn: 2400,8,N,1
In eerste instantie kwam de RS-232 communicatie niet verder dan de volgende melding bij het aanzetten:
WD display software
Cybertech Thu Nov 9 13:52:53 GMT 1995, mf
WDD.224 1*24
checksum: C640 moet zijn: 14A5
Na wat spelen met de dipswitch en de jumper kwam er op den duur reactie van de lichtkrant.

Dipswitch
Jumper:
- 1-2: Select RS-485 Communication
- 2-3: Select RS-232 Communication
DIP-Switch
- 1: Display Address 1
- 2: Display Address 2
- 3: Display Address 4
- 4: Display Address 8
- 5: Display Address 16
- 6: Software selection
- 7: RS-485 220 Ohm termination resistor
Reactie van de lichtkrant:
WD display software
Cybertech Thu Nov 9 13:52:53 GMT 1995, mf
WDD.224 1*24
checksum: C640 moet zijn: 14A5
?
Help info WDD
? : shows this message
help : shows this message
version : shows the version of the firmware
address <number> : program the display address
address : shows the display address
alloff : switches all leds off
allon : switches all leds on
allflash : makes all leds flashing
echo : shows input characters
noecho : shows no input characters
init : shows initialisation message
noinit : shows no initialisation message
output : shows output
nooutput : shows no output
" <message> CR : puts this message on the display
CR message LF : displays BE1 protocol message
Nu reageert de lichtkrant ook op input.
Intoetsen van:
"1x24 Lichtkrant RS-232 <CR>
geeft het volgende resultaat:

Sturen van de volgende HEX codes geeft een knipperend woord 'test':
22 02 74 65 73 74 0D [ " <STX> T E S T <CR> ]
Foto's:














Schema's:
Schema van het communicatiecircuit:

Bovenstaand schema is niet geverifieerd. Het schema is mogelijk incompleet of bevat incorrectheden.
Schema van het displaycircuit (incompleet):

Bovenstaand schema is niet geverifieerd. Het schema is mogelijk incompleet of bevat incorrectheden.
Aansluitkabel:
Kleur | Sub-d-9 | RJ12/6P6C |
Zwart |
5 |
6 |
Wit |
2 |
1 |
Groen |
3 |
2 |


Voorbeeld code:
Onderstaande PHP code is een voorbeeld om elke 60 seconden de huidige datum en tijd naar de lichtkrant te sturen. In het voorbeeld is de lichtkrant aangesloten op ttyS1 (COM2) op een Linux computer.
De code maakt gebruik van de Serial port control class geschreven door Rémy Sanchez. Deze class is te vinden op github.
<?php
include("php_serial.class.php");
$serial = new phpSerial;
$serial->deviceSet("/dev/ttyS1");
$serial->confBaudRate("2400");
$serial->confCharacterLength("8");
$serial->confParity("none");
$serial->confStopBits("1");
$serial->confFlowControl("none");
$serial->deviceOpen();
$serial->sendMessage("\r");
while(true)
{
$serial->
sendMessage("\"".
strftime('%d %B %Y %H:%M',
time()).
"\r");
}
?>
Filmpjes:
Lichtkrant opstarten
Lichtkrant geeft datum & tijd weer.
Lichtkrant geeft Nu.nl RSS feed weer.
Lichtkrant geeft Nu.nl RSS feed weer (scrollend).
Downloads:
Microcontroller: MC68HC11F1FN
EPROM: M27C256B
Watchdog: SP690ACP
RS-232 Transceiver: ICL232CPE
RS-485 Transceiver: ADM485