vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
SEPA-Dateien erstellen inkl. IBAN-, BLZ-/Kontonummernprüfung  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Fortgeschrittene Programmierung
LED Laufschrift Programmierung - über serielle Schnittstelle 
Autor: scholzsg
Datum: 13.04.05 22:25

Hallo zusammen ich habe ein "kleines" Problem...
ich habe eine LED LAUFSCHRIFT und habe vom Herstelle das Protokoll bekommen um dieses Gerät an zu steueren. Leider komme ich mit dem Code nicht so ganz zurecht da ich noch nie mit byte binary zu tun hatte. Die LED Laufschrift wird per serieller Schnittstelle angesprochen....soweit habe ich das auch schon hinbekommen.

MSComm1.CommPort = 1
MSComm1.Settings = "2400,N,8,1"
MSComm1.PortOpen = True
'MSComm1.Output = "1,'01'"
MSComm1.Output = "1,'TESTTESTTEST'"
'MSComm1.Output = "0xff"
'MSComm1.Output = "0"
MSComm1.PortOpen = False
Label1.Caption = "Datei gesendet"

Folgende Seiten an Protokoll habe ich bekommen :

wobei der Protokollcode am Ende (Beispiel in C fett) am wichtigsten ist....

ich weiß leider nicht wie die Umsetzung von Binary funktioniert bzw. welche Umsetzung

ich machen muß !!!

Kann mir jemand helfen !?!?!?!?!?

Danke im vorraus !!

Gruß Micha

P.S.: Das Orginal Protokollheft (6 Seiten) hab ich als PDF...bitte kurze Mail unter grisu112gl@yahoo.de.



- 1 -
COM port setting
2400-baud, 8 data bits, 1 stop bit, no verify.
NOTE: The signs count is no more than 128 in one network.

Frame format
Frame is the basic communication unit. One frame consists of one or more data packets. Serial
Address Packet must be the first packet of every frame. When there are no more packets, use a
binary 0x00 to end the frame. The size of a frame is limited to 8190 bytes.
Packet 1 Packet 2 … Packet N 0x00
NOTE: Packet 1 must be Serial Address Packet

Packet types and formats
Serial Address Packet
0x00 Serial address Clear Memory
Serial Address Packet begins with one byte binary 0x00. Field “Serial address” is a word (16 bits)
represents the combinations of the 16 signs in the network. For example, Serial address 0x8003 is
the combination of sign #0, sign #1 and sign #15. Field “Clear Memory” is one byte, binary 1 to
clear all memory on the sign; any other value will not take effect.
NOTE: when signs number is greater than 16, set the “Serial address” field to 0xFFFF, and append
an Expanded Serial Address Packet.
Expanded Serial Address Packet
0x0B Serial address list 0xFF

Expanded Serial Address Packet begins with one byte binary 0x0B. Field “Serial address list” is a
list of serial address, every serial address occupy one byte from 0x00 to 0x7F. Expanded Serial
Address Packet ends with one byte binary 0xFF.
NOTE: this packet is use for 128 signs network only, and must be the second packet of the frame,
and the “Serial address” field in the first Serial Address Packet must be 0xFFFF.
Text File Packet
0x01 File Number File Data


COMMUNICATION PROTOCOL FOR SDV111/SDV888
- 2 -
Text File Packet begins with one byte binary 0x01. Field “File Number” is two ASCII characters
‘00’~’99’. Field “File Data” refer to “Text File Data Format”.
Sequence File Packet
0x02 Sequence File Number Run Day Begin Time End Time File Numbers
Sequence File Packet begins with one byte binary 0x02. Field “Sequence File Number” is one ASCII character ‘0’~’9’. Field “Run Day” is one byte, bit 0 to bit 6 represent Sunday to Saturday.
Field “Begin Time” and “End Time” is four ASCII characters represent hour and minute, for example, 08:30 is ‘0830’. Field “File Numbers” is a list of file numbers, which end with one byte binary 0xFF. File number is two ASCII characters ‘00’~’99’. No separator is needed between file numbers. The amount of text files in one sequence file is limited to 100.
.
WICHTIG SIND FOLGENDE ZEILEN :

Communication Examples
All Examples are decrypted in C style with explanations on the right side.
Text File Transmission
0,0xff,0xff,1 Frame begins with Serial Address Packet.
Serial address 0xFFFF indicate that all 16
signs in the network will receive this frame.
All memory will be cleared.
1,’01’ Text File Packet begins. File number is ‘01’.
1,0xef,0xb0,’SDV111 User\’s Guide’,0xff The first paragraph of file ‘01’. Display
method is ‘CYCLIC’ (1). Color is bright red
(0xef,0xb0).
8,0xef,0xb5,’easy to use’,0xff The second paragraph of file ‘01’.
15,0xef,0xb5,’give you power’,0xff The third paragraph of file ‘01’.
20,0xef,0xb5,’moving sign’,0xff The fourth paragraph of file ‘01’.
5,0xef,0xb7,’Your wise choice’,0xff The last paragraph of file ‘01’.
0xff File ‘01’ ends.
0 Frame ends.


[u]diesen Code (oben) müßte ich in einer Form in VB gebracht bekommen !!!!!!!!!
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
LED Laufschrift Programmierung - über serielle Schnittstelle2.775scholzsg13.04.05 22:25
Re: LED Laufschrift Programmierung - über serielle Schnittst...1.857BasTler14.04.05 09:48

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel