EasyManuals Logo

Megmeet MV200 Series User Manual

Default Icon
235 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #225 background imageLoading...
Page #225 background image
225
6) The host device gets the authority to access to the function code after “decryption”. If there is no
communication within 5 minutes, the access authority is invalid. To access to this function code, please
re-enter the user password.
7) When the host device has gotten the access authority (no user password or decrypted already), if the user
password is set or changed through the operation panel, the host device still has current access authority with
no need to re-encrypt. If the access authority becomes invalid, it needs to re-encrypt (write new password) to
get the access authority.
9. CRC verification
For the purpose of improving speed, CRC-16 is often realized through the table. The following is the C
language source code for realizing CRC-16. Please note: the final results have exchanged high and low bytes,
that is, the result is the CRC checksum to be sent.
unsigned short CRC16
unsigned char *msg, unsigned char
length
/* The function returns the CRC as a
unsigned short type */
{
unsigned char uchCRCHi = 0xFF ; /* high byte of CRC initialized */
unsigned char uchCRCLo = 0xFF ; /* low byte of CRC initialized */
unsigned uIndex ; /* index into CRC lookup table */
while
length-- /* pass through message buffer */
{
uIndex = uchCRCLo ^ *msg++ ; /* calculate the CRC */
uchCRCLo = uchCRCHi ^
crcvalue[uIndex] >>8;
uchCRCHi =crcvalue[uIndex]&0xff;
}
return
uchCRCHi | uchCRCLo<<8 ;
}
/* Table of CRC values */
const unsigned int crcvalue[ ] = {
0x0000,0xC1C0,0x81C1,0x4001,0x01C3,0xC003,0x8002,0x41C2,0x01C6,0xC006,0x8007,0x41C7,
0x0005,0xC1C5,0x81C4,0x4004,0x01CC,0xC00C,0x800D,0x41CD,0x000F,0xC1CF,0x81CE,0x400E,
0x000A,0xC1CA,0x81CB,0x400B,0x01C9,0xC009,0x8008,0x41C8,0x01D8,0xC018,0x8019,0x41D9,
0x001B,0xC1DB,0x81DA,0x401A,0x001E,0xC1DE,0x81DF,0x401F,0x01DD,0xC01D,0x801C,0x41DC,
0x0014,0xC1D4,0x81D5,0x4015,0x01D7,0xC017,0x8016,0x41D6,0x01D2,0xC012,0x8013,0x41D3,
0x0011,0xC1D1,0x81D0,0x4010,0x01F0,0xC030,0x8031,0x41F1,0x0033,0xC1F3,0x81F2,0x4032,
0x0036,0xC1F6,0x81F7,0x4037,0x01F5,0xC035,0x8034,0x41F4,0x003C,0xC1FC,0x81FD,0x403D,
0x01FF,0xC03F,0x803E,0x41FE,0x01FA,0xC03A,0x803B,0x41FB,0x0039,0xC1F9,0x81F8,0x4038,

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Megmeet MV200 Series and is the answer not in the manual?

Megmeet MV200 Series Specifications

General IconGeneral
BrandMegmeet
ModelMV200 Series
CategoryDC Drives
LanguageEnglish

Related product manuals