自动化立体仓库 - WCS系统
#
18516761980
2022-08-18 f46a8c26ec22377ecb4d777b0a72b6cac48cb879
#
1个文件已修改
16 ■■■■■ 已修改文件
src/main/java/com/zy/core/netty/handle/PackageServerHandler.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/netty/handle/PackageServerHandler.java
@@ -103,6 +103,22 @@
    /**************************************** 测试专用 *****************************************/
    public static void main(String[] args){
        byte[] rfidBytes = new byte[]{(byte)0xA0, 0x13, 0x01, (byte)0x8A, (byte)0xB6, 0x30, 0x00,
                0x38, 0x30, 0x33, 0x34, 0x35, 0x36, 0x37, (byte)0x38, 0x28, (byte)0xC3, (byte)0x81, 0x2D, (byte)0xB0, 0x2F };
        if(rfidBytes.length > 15) {
            byte[] dataBytes = new byte[8];
            dataBytes[0] = rfidBytes[7];
            dataBytes[1] = rfidBytes[8];
            dataBytes[2] = rfidBytes[9];
            dataBytes[3] = rfidBytes[10];
            dataBytes[4] = rfidBytes[11];
            dataBytes[5] = rfidBytes[12];
            dataBytes[6] = rfidBytes[13];
            dataBytes[7] = rfidBytes[14];
            String str = new String(dataBytes);
            System.out.println(str);
        }
        byte[] bytes = new byte[]{(byte)0x82, 0x38, 0x30, 0x32, 0x34, 0x30, 0x38, 0x39, 0x3B, 0x30, 0x31, 0x31, 0x31,
                                    0x30, 0x33, 0x30, 0x38, 0x31, 0x30, 0x30, 0x34, 0x30, 0x38, 0x38, 0x30, (byte)0x83};
        Fire_3030 fire3030 = new Fire_3030().readFromBytes(bytes);