background image

Appendix

CRC calculation example: Visual Studio .NET C#

byte crc_8(byte[] msg, int len)

{

byte

 crc = 0x00;

byte

 data;

bool

 flag;

byte

 polynom = 0xD5;

for

 (

int

 i = 0; i < len; i++)

    {
     data = msg[i];
              
     

for

 (

int

 bit = 0; bit < 8; bit++)

          {
          flag = (crc & 0x80) == 0x80 ? 

true

 : 

false

          crc <<= 1;                                  
          crc |= (data & 0x80) == 0x80 ? (

byte

)1 : (

byte

)0;

 

          data <<= 1;
          

if

 (flag) crc ^= polynom;

          }
      }

return

 crc;

}

Pin Assignment DATA Port

View on the backside of device.

1=TxD
4=RxD
2=GND

Summary of Contents for WavePlayer8

Page 1: ...TC Timecode 4 RS232 Protocol 5 Command Format 5 KEY Command 5 PLAY STOP Command 5 SET VOLUME Command 5 CHANGE VOLUME Command 5 SAVE VOLUME Command 6 GET TRACK COUNT Command 6 GET TRACK NAME Command 6...

Page 2: ...mono files all the time SD Cards Cards of any size can be used The only requirement is to format the card to FAT FAT32 with the minimal cluster size of 32kB Cards bigger than 32GB will be supplied wit...

Page 3: ...5min 4800 song loop auto off 15min 9600 album loop on 14400 19200 28800 38400 56000 57600 115200 128000 256000 LCD contrast 1 10 Start Mode Manual Songs will be played by hand Auto If this parameter...

Page 4: ...Play will be forwarded via broadcast to the other devices This way you can use more than one device via one keypad When Start Mode is auto then the device will simulate a play command at power on to...

Page 5: ...mbers need to have two digits 01 first song 02 second song 03 third Start Value fix Device ID Command Parameter 1 Parameter 2 Checksum 0x86 0 255 1 00 STOP 0 CRC 8 01 PLAY 01 99 PLAY 99 SET VOLUME Com...

Page 6: ...hecksum 0x86 0 255 6 character cout 0 CRC 8 SET TIME Command The parameters are hexadecimal values The command must be send only if the player is in stop or pause mode Otherwise unpredictable events c...

Page 7: ...pdate 1 Copy the file with the name wp3image bin to a SD card 2 Insert the card in a running device 3 If more than one file on card use the keys and go to the file 4 The player will recognize the upda...

Page 8: ...e crc 0x00 byte data bool flag byte polynom 0xD5 for int i 0 i len i data msg i for int bit 0 bit 8 bit flag crc 0x80 0x80 true false crc 1 crc data 0x80 0x80 byte 1 byte 0 data 1 if flag crc polynom...

Page 9: ...Device Mode changed to Data Port Mode Broadcast Wave Format can be played File names starts to rotate if they longer 16 chars Repeat function on buttons for files aktive 19 04 16 3 3 5 6 inputs for di...

Reviews: