• 168网官方开奖结果

    YW_G2_SetProtected
    超高频读写器G2标签设置保护

    参数列表:

    int stdcall YW_G2_SetProtected 

    (

    int ReaderID, 

    int EPCLen, 

    unsigned char *EPC,

    unsigned char Protect, 

    unsigned char ProtectMode, 

    unsigned int Password

    );


    参数含义:

    参数

    类型

    含义

    ReaderID

    int

    老的设备标示ID,范围0x00-0xFF,0xFF为广播地址

    EPCLen

    int

    要操作的EPC标签EPC长度,字节数,必须为偶数

    EPC

    unsigned char *

    要操作的EPC

    Protect

    unsigned char

    0x00时,控制销毁密码读写保护设定。

    0x01时,控制访问密码读写保护设定。

    0x02时,控制EPC存储区读写保护设定。

    0x03时,控制TID存储区读写保护设定。

    0x04时,控制用户存储区读写保护设定。

     

    ProtectMode

    unsigned char

    Protect0x000x01,即当设置Kill密码区或访问密码区的时候,ProtectMode的值代表的意义如下:

    0x00:设置为无保护下的可读可写

    0x01:设置为永远可读可写

    0x02:设置为带密码可读可写

    0x03:设置为永远不可读不可写

     

    Protect0x020x030x04的时候,即当设置EPC区、TID区及用户区的时候,ProtectMode的值代表的意义如下:

    0x00:设置为无保护下的可写

    0x01:设置为永远可写

    0x02:设置为带密码可写

    0x03:设置为永远不可写

     

    Password

    unsigned int

    标签操作的密码,默认为0

    返 回 值:大于0为成功,小于0为错误


    C++声明(VC++和C++ Builder):

    int stdcall YW_G2_ SetProtected (int ReaderID, int EPCLen, unsigned char *EPC,unsigned char Protect, unsigned char ProtectMode, unsigned int Password);


    Delphi声明:

    function  YW_G2_SetProtected(ReaderID: Integer; EPCLen: Integer; EPC: PChar;

                    Protect: Byte; ProtectMode: Byte;

                    Password: Integer): Integer;stdcall;external YW602DLL;


    VB声明:

    Public Declare Function YW_G2_SetProtected Lib "YW602.dll" (ByVal ReaderID As Long, ByVal EPCLen As Integer, EPC As Byte, _

                    ByVal Protect As Byte, ByVal ProtectMode As Byte, _

                    ByVal Password As Long) As Long


    JAVA声明:

    C#声明:

    Power Builder 9 声明:

    支持的RFID读写器:
    YW-602-R, YW-602-U, YW-602-3, YW-602-8