PhychipsCommand

com.ad.rfid.phychips

## 类 PhychipsCommand

- java.lang.Object
- - com.ad.rfid.phychips.PhychipsCommand

-     public class PhychipsCommand
      extends Object

  Phychips Command Static Class(just send)

- - ### 构造器概要

    构造器
    构造器和说明
    `PhychipsCommand()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static boolean` | `BlockErase6C(ADRcp adr, byte[] ap, short ul, byte[] epc, byte mb, short sa, short dl)` Block erases type C tag data.
    `static boolean` | `BlockWrite6C(ADRcp adr, byte[] ap, short ul, byte[] epc, byte mb, short sa, short dl, byte[] dt)` Block write type C tag data.
    `static String` | `CalcTagRssi(byte[] data, int length)` Calc Tag Rssi
    `static boolean` | `ClsCustomData(ADRcp adr)` Cls CustomData Status
    `static boolean` | `EraseRegistry(ADRcp adr)` Registry Erase
    `static boolean` | `GetAddress(ADRcp adr)` Get Device Address
    `static boolean` | `GetBaudrate(ADRcp adr)` Get Uart Baudrate
    `static boolean` | `GetChannel(ADRcp adr)` Get the current region. this uses individual channel table that depends on region.
    `static boolean` | `GetConfig(ADRcp adr)` Get Basic Parameters - 鑾峰彇鍩烘湰鍙傛暟
    `static boolean` | `GetCustomData(ADRcp adr)` Get CustomData Status
    `static boolean` | `GetFhLbt(ADRcp adr)` Get FH and LBT Parameters
    `static boolean` | `GetFrequencyTable(ADRcp adr)` Get current frequency hopping table.
    `static boolean` | `GetInformation(ADRcp adr)` Get base information - 鑾峰彇鍩烘湰淇℃伅
    `static boolean` | `GetIOOut(ADRcp adr)` Get IOOut Status
    `static boolean` | `GetOutCard(ADRcp adr)` Get Auto Output Card Parameters
    `static boolean` | `GetRegion(ADRcp adr)` Get the current region. this uses individual channel table that depends on region.
    `static boolean` | `GetRssi(ADRcp adr)` Get current Rssi.
    `static boolean` | `GetTemperature(ADRcp adr)` Get DeviceTemperature.
    `static boolean` | `GetTxPower(ADRcp adr)` Get current Tx power level.
    `static boolean` | `Identify6C(ADRcp adr)` Identify card from ISO18000-6C(EPC) tag - 璇嗗埆ISO18000-6C(EPC)鏍囩鍗″彿
    `static boolean` | `IsAliveRssi(byte[] Data, int length)` Check data is have alive rssi
    `static boolean` | `Kill6C(ADRcp adr, byte[] kp, short ul, byte[] epc, byte recom)` Kill a Tag.
    `static boolean` | `Lock6C(ADRcp adr, byte[] ap, short ul, byte[] epc, byte[] ld)` Lock an indicated memory bank in the tag.
    `static boolean` | `Read6C(ADRcp adr, byte[] ap, short ul, byte[] epc, byte mb, short sa, short dl)` Read data from ISO18000-6C(EPC) tag - 璇诲彇ISO18000-6C(EPC)鏍囩鏁版嵁
    `static boolean` | `RemoteIO(ADRcp adr, int index, int status)` Remote IO
    `static boolean` | `ResetSystem(ADRcp adr)` Reset System.
    `static boolean` | `SecretTag(ADRcp adr)` Secret Tag.
    `static boolean` | `SetAddress(ADRcp adr, int address)` Set Device Address
    `static boolean` | `SetBaudrate(ADRcp adr, int type, int baudrate)` Set Uart Baudrate (USB version prohibits modification.)
    `static boolean` | `SetChannel(ADRcp adr, byte cn, byte cno)` Set the current region. this uses individual channel table that depends on region.
    `static boolean` | `SetConfig(ADRcp adr, byte[] dt)` Set Basic Parameters - 璁剧疆鍩烘湰鍙傛暟
    `static boolean` | `SetCustomData(ADRcp adr, byte[] dt)` Set CustomData Status
    `static boolean` | `SetFhLbt(ADRcp adr, short rt, short it, short cst, short rfl, byte rh, byte lbt, byte cw)` Set FH and LBT Parameters
    `static boolean` | `SetFrequencyTable(ADRcp adr, short ts, byte[] cn)` Set current frequency hopping table.
    `static boolean` | `SetIOOut(ADRcp adr, int type, int delay)` Set IOOut Status
    `static boolean` | `SetOutCard(ADRcp adr, byte[] dt)` Set Auto Output Card Parameters
    `static boolean` | `SetRegion(ADRcp adr, byte type)` Set the current region. this uses individual channel table that depends on region.
    `static boolean` | `SetTxPower(ADRcp adr, short pwr)` Set current Tx power level.
    `static boolean` | `StartAutoRead(ADRcp adr, int type, int mtnu, int mtime, int cycle)` OutStart Auto Read
    `static boolean` | `StopAutoRead(ADRcp adr)` Stop Auto Read
    `static boolean` | `UpdateRegistry(ADRcp adr)` Registry Update
    `static boolean` | `Write6C(ADRcp adr, byte[] ap, short ul, byte[] epc, byte mb, byte[] sa, short dl, byte[] dt)` Write Data to ISO18000-6C(EPC) tag - 鍐欏叆ISO18000-6C(EPC)鏍囩鏁版嵁
    `static boolean` | `Write6C(ADRcp adr, byte[] ap, short ul, byte[] epc, byte mb, short sa, short dl, byte[] dt)` Write Data to ISO18000-6C(EPC) tag - 鍐欏叆ISO18000-6C(EPC)鏍囩鏁版嵁

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### PhychipsCommand

          public PhychipsCommand()

  - ### 方法详细资料

    - #### IsAliveRssi

          public static boolean IsAliveRssi(byte[] Data,
                                            int length)

      Check data is have alive rssi
      参数:
        `Data` -
        `length` -
      返回:

    - #### CalcTagRssi

          public static String CalcTagRssi(byte[] data,
                                           int length)

      Calc Tag Rssi
      参数:
        `data` - rssi data buff, just 4 byte
        `length` -
      返回:

    - #### GetInformation

          public static boolean GetInformation(ADRcp adr)

      Get base information - 鑾峰彇鍩烘湰淇℃伅
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### GetConfig

          public static boolean GetConfig(ADRcp adr)

      Get Basic Parameters - 鑾峰彇鍩烘湰鍙傛暟
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetConfig

          public static boolean SetConfig(ADRcp adr,
                                          byte[] dt)

      Set Basic Parameters - 璁剧疆鍩烘湰鍙傛暟
      参数:
        `adr` - Communication Data Managed Base Class
        `dt` - base parameters byte array
      返回:

    - #### GetAddress

          public static boolean GetAddress(ADRcp adr)

      Get Device Address
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetAddress

          public static boolean SetAddress(ADRcp adr,
                                           int address)

      Set Device Address
      参数:
        `adr` - Communication Data Managed Base Class
        `address` - New Address
      返回:

    - #### GetIOOut

          public static boolean GetIOOut(ADRcp adr)

      Get IOOut Status
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetIOOut

          public static boolean SetIOOut(ADRcp adr,
                                         int type,
                                         int delay)

      Set IOOut Status
      参数:
        `adr` - Communication Data Managed Base Class
        `type` - type of IOOut
        `delay` - Reset delay, unit per second
      返回:

    - #### GetOutCard

          public static boolean GetOutCard(ADRcp adr)

      Get Auto Output Card Parameters
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### ClsCustomData

          public static boolean ClsCustomData(ADRcp adr)

      Cls CustomData Status
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetCustomData

          public static boolean SetCustomData(ADRcp adr,
                                              byte[] dt)

      Set CustomData Status
      参数:
        `adr` - Communication Data Managed Base Class
        `dt` - type of IOOut
      返回:

    - #### GetCustomData

          public static boolean GetCustomData(ADRcp adr)

      Get CustomData Status
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetOutCard

          public static boolean SetOutCard(ADRcp adr,
                                           byte[] dt)

      Set Auto Output Card Parameters
      参数:
        `adr` - Communication Data Managed Base Class
        `dt` - Auto Output Card Parameters Struct
      返回:

    - #### RemoteIO

          public static boolean RemoteIO(ADRcp adr,
                                         int index,
                                         int status)

      Remote IO
      参数:
        `adr` - Communication Data Managed Base Class
        `index` - remote point 1-IO,2-BEEP
        `status` - remote status, 0-close,1-open
      返回:

    - #### SecretTag

          public static boolean SecretTag(ADRcp adr)

      Secret Tag.(the base paramaters must set KeyWord)
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### GetBaudrate

          public static boolean GetBaudrate(ADRcp adr)

      Get Uart Baudrate
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetBaudrate

          public static boolean SetBaudrate(ADRcp adr,
                                            int type,
                                            int baudrate)

      Set Uart Baudrate (USB version prohibits modification.)
      参数:
        `adr` - Communication Data Managed Base Class
        `type` - TYPE SEL,1-232,2-485
        `baudrate` - Baudrate,1-115200,2-57600,3-38400,4-9600,5-1200
      返回:

    - #### Identify6C

          public static boolean Identify6C(ADRcp adr)

      Identify card from ISO18000-6C(EPC) tag - 璇嗗埆ISO18000-6C(EPC)鏍囩鍗″彿
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### Read6C

          public static boolean Read6C(ADRcp adr,
                                       byte[] ap,
                                       short ul,
                                       byte[] epc,
                                       byte mb,
                                       short sa,
                                       short dl)

      Read data from ISO18000-6C(EPC) tag - 璇诲彇ISO18000-6C(EPC)鏍囩鏁版嵁
      参数:
        `adr` - Communication Data Managed Base Class
        `ap` - AP (32-bit): Access Password if memory bank was password protected. Otherwise, set AP filed to 0x00000000.
        `ul` - UL (16-bit): Target tag鈥檚 EPC length
        `epc` - EPC (variable): Target tag鈥檚 EPC
        `mb` - MB (8-bit): Target memory bank; 0x00 RFU, 0x01 EPC, 0x02 TID, 0x03 User.
        `sa` - SA (16-bit): Starting Address word pointer.
        `dl` - DL (16-bit): Data Length (OutByte Count).
      返回:

    - #### Write6C

          public static boolean Write6C(ADRcp adr,
                                        byte[] ap,
                                        short ul,
                                        byte[] epc,
                                        byte mb,
                                        short sa,
                                        short dl,
                                        byte[] dt)

      Write Data to ISO18000-6C(EPC) tag - 鍐欏叆ISO18000-6C(EPC)鏍囩鏁版嵁
      参数:
        `adr` - Communication Data Managed Base Class
        `ap` - AP (32-bit): Access Password if memory bank was password protected. Otherwise, set AP filed to 0x00000000.
        `ul` - UL (16-bit): Target tag鈥檚 EPC length
        `epc` - EPC (variable): Target tag鈥檚 EPC
        `mb` - MB (8-bit): Target memory bank; 0x00 RFU, 0x01 EPC, 0x02 TID, 0x03 User.
        `sa` - SA (16-bit): Starting Address word pointer.
        `dl` - DL (16-bit): Data Length (OutByte Count).
        `dt` - DT (variable): Data to write.
      返回:

    - #### Write6C

          public static boolean Write6C(ADRcp adr,
                                        byte[] ap,
                                        short ul,
                                        byte[] epc,
                                        byte mb,
                                        byte[] sa,
                                        short dl,
                                        byte[] dt)

      Write Data to ISO18000-6C(EPC) tag - 鍐欏叆ISO18000-6C(EPC)鏍囩鏁版嵁
      参数:
        `adr` - Communication Data Managed Base Class
        `ap` - AP (32-bit): Access Password if memory bank was password protected. Otherwise, set AP filed to 0x00000000.
        `ul` - UL (16-bit): Target tag鈥檚 EPC length
        `epc` - EPC (variable): Target tag鈥檚 EPC
        `mb` - MB (8-bit): Target memory bank; 0x00 RFU, 0x01 EPC, 0x02 TID, 0x03 User.
        `sa` - SA (16-bit): Starting Address word pointer.
        `dl` - DL (16-bit): Data Length (OutByte Count).
        `dt` - DT (variable): Data to write.
      返回:

    - #### StartAutoRead

          public static boolean StartAutoRead(ADRcp adr,
                                              int type,
                                              int mtnu,
                                              int mtime,
                                              int cycle)

      OutStart Auto Read
      参数:
        `adr` - Communication Data Managed Base Class
        `type` - Reserve: type B tag (0x01), type C Tag (0x02)
        `mtnu` - MTNU: maximum number of tag to read
        `mtime` - MTIME: maximum elapsed time to tagging (sec)
        `cycle` - Repeat cycle (how many times reader perform inventory round)
      返回:

    - #### StopAutoRead

          public static boolean StopAutoRead(ADRcp adr)

      Stop Auto Read
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### BlockErase6C

          public static boolean BlockErase6C(ADRcp adr,
                                             byte[] ap,
                                             short ul,
                                             byte[] epc,
                                             byte mb,
                                             short sa,
                                             short dl)

      Block erases type C tag data.
      参数:
        `adr` - Communication Data Managed Base Class
        `ap` - AP (32-bit): Access Password if memory bank was password protected. Otherwise, set AP filed to 0x00000000.
        `ul` - UL (16-bit): Target tag鈥檚 EPC length
        `epc` - EPC (variable): Target tag鈥檚 EPC
        `mb` - MB (8-bit): Target memory bank; 0x00 RFU, 0x01 EPC, 0x02 TID, 0x03 User.
        `sa` - SA (16-bit): Starting Address word pointer.
        `dl` - DL (16-bit): Data Length (OutByte Count).
      返回:

    - #### BlockWrite6C

          public static boolean BlockWrite6C(ADRcp adr,
                                             byte[] ap,
                                             short ul,
                                             byte[] epc,
                                             byte mb,
                                             short sa,
                                             short dl,
                                             byte[] dt)

      Block write type C tag data.
      参数:
        `adr` - Communication Data Managed Base Class
        `ap` - AP (32-bit): Access Password if memory bank was password protected. Otherwise, set AP filed to 0x00000000.
        `ul` - UL (16-bit): Target tag鈥檚 EPC length
        `epc` - EPC (variable): Target tag鈥檚 EPC
        `mb` - MB (8-bit): Target memory bank; 0x00 RFU, 0x01 EPC, 0x02 TID, 0x03 User.
        `sa` - SA (16-bit): Starting Address word pointer.
        `dl` - DL (16-bit): Data Length (OutByte Count).
        `dt` - DT (variable): Data to write.
      返回:

    - #### Lock6C

          public static boolean Lock6C(ADRcp adr,
                                       byte[] ap,
                                       short ul,
                                       byte[] epc,
                                       byte[] ld)

      Lock an indicated memory bank in the tag.
      参数:
        `adr` - Communication Data Managed Base Class
        `ap` - AP (32-bit): Access Password if memory bank was password protected. Otherwise, set AP filed to 0x00000000.
        `ul` - UL (16-bit): Target tag鈥檚 EPC length
        `epc` - EPC (variable): Target tag鈥檚 EPC
        `ld` - LD (24-bit): Lock mask and action flags. Pad 4-bit zeros (dummy) to the left of 20-bit lock mask and associated action flags.
      返回:

    - #### Kill6C

          public static boolean Kill6C(ADRcp adr,
                                       byte[] kp,
                                       short ul,
                                       byte[] epc,
                                       byte recom)

      Kill a Tag.
      参数:
        `adr` - Communication Data Managed Base Class
        `kp` - KP (32-bit): Kill Password. If KP filed set to 0x00000000, "Kill Type C Tag" command do not work. The target tag ignores it.
        `ul` - UL (16-bit): Target tag鈥檚 EPC length
        `epc` - EPC (variable): Target tag鈥檚 EPC
        `recom` - Recom (8-bit): Recommissioning bits
      返回:

    - #### GetFhLbt

          public static boolean GetFhLbt(ADRcp adr)

      Get FH and LBT Parameters
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetFhLbt

          public static boolean SetFhLbt(ADRcp adr,
                                         short rt,
                                         short it,
                                         short cst,
                                         short rfl,
                                         byte rh,
                                         byte lbt,
                                         byte cw)

      Set FH and LBT Parameters
      参数:
        `adr` - Communication Data Managed Base Class
        `rt` - RT (16-bit): Read Time (1 = 1ms)
        `it` - IT (16-bit): Idle Time (1 = 1ms)
        `cst` - CST (16-bit): Carrier Sense Time (1 = 1ms)
        `rfl` - RFL (16-bit): Target RF power level (-dBm x 10) example:RFL -630 = 0xFD8A = -63.0 dBm
        `rh` - FH (8-bit): enable (0x01 or over) / disable (0x00)
        `lbt` - LBT (8-bit): enable (0x01 or over) / disable (0x00)
        `cw` - CW (8-bit): enable (0x01) / disable (0x00)
      返回:

    - #### GetRegion

          public static boolean GetRegion(ADRcp adr)

      Get the current region. this uses individual channel table that depends on region. List of region code follows below.
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetRegion

          public static boolean SetRegion(ADRcp adr,
                                          byte type)

      Set the current region. this uses individual channel table that depends on region. List of region code follows below.
      参数:
        `adr` - Communication Data Managed Base Class
        `type` - - Korea (0x11) - US(0x21) - US2(0x22) - Europe(0x31) - Japan(0x41) - China1(0x51) - China2(0x52)
      返回:

    - #### GetChannel

          public static boolean GetChannel(ADRcp adr)

      Get the current region. this uses individual channel table that depends on region. List of region code follows below.
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetChannel

          public static boolean SetChannel(ADRcp adr,
                                           byte cn,
                                           byte cno)

      Set the current region. this uses individual channel table that depends on region. List of region code follows below.
      参数:
        `adr` - Communication Data Managed Base Class
        `cn` - CN (8-bit): Channel Number. The range of channel number depends on regional settings - Korea (value 1~32)-(area 917.1~923.3, step 0.2) - US (value 1~50)-(area 902.75~927.25, step 0.5) - US2 (value 1~50)-(area 917.10~926.9, step 0.2) - Europe (value 1~15)-(area 865.1~867.9, step 0.2) - Japan (value 1~38)-(area 916.0~923.4, step 0.2) - China1 (value 0~19)-(area 840.125~844.875, step 0.25) - China2 (value 0~19)-(area 920.125~924.875, step 0.25)
        `cno` - CNO (8-bit): Channel number offset for miller subcarrier.default =0
      返回:

    - #### GetFrequencyTable

          public static boolean GetFrequencyTable(ADRcp adr)

      Get current frequency hopping table.
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetFrequencyTable

          public static boolean SetFrequencyTable(ADRcp adr,
                                                  short ts,
                                                  byte[] cn)

      Set current frequency hopping table.
      参数:
        `adr` - Communication Data Managed Base Class
        `ts` - Table Size (8-bit)
        `cn` - Channel Numbers (variable)
      返回:

    - #### GetTxPower

          public static boolean GetTxPower(ADRcp adr)

      Get current Tx power level.
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### SetTxPower

          public static boolean SetTxPower(ADRcp adr,
                                           short pwr)

      Set current Tx power level.
      参数:
        `adr` - Communication Data Managed Base Class
        `pwr` - PWR (16-bit): Tx Power(dBm x 10) Example) PWR = 200 (20.0 dBm)
      返回:

    - #### GetTemperature

          public static boolean GetTemperature(ADRcp adr)

      Get DeviceTemperature.
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### GetRssi

          public static boolean GetRssi(ADRcp adr)

      Get current Rssi.
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### ResetSystem

          public static boolean ResetSystem(ADRcp adr)

      Reset System.
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### UpdateRegistry

          public static boolean UpdateRegistry(ADRcp adr)

      Registry Update
      参数:
        `adr` - Communication Data Managed Base Class
      返回:

    - #### EraseRegistry

          public static boolean EraseRegistry(ADRcp adr)

      Registry Erase
      参数:
        `adr` - Communication Data Managed Base Class
      返回: