// photo
        public CMD_PAIR[] GET_CMD_CARD_PHOTO()
        {
            CMD_PAIR[] cmds = new CMD_PAIR[21];
            for (int i = 0; i <= 20; i++)
            {
                int xwd;
                int xof = i * 254 + 379;
                if (i == 20)
                {
                    xwd = 38;
                }
                else
                {
                    xwd = 254;
                }

                int sp2 = (xof >> 8) & 0xff;
                int sp3 = xof & 0xff;
                int sp6 = xwd & 0xff;
                int spx = xwd & 0xff;

                cmds[i].CMD1 = new byte[] { 0x80, 0xb0, (byte)sp2, (byte)sp3, 0x02, 0x00, (byte)sp6 };
                cmds[i].CMD2 = new byte[] { 0x00, 0xc0, 0x00, 0x00, (byte)spx };
            }

            return(cmds);
        }
        // photo
        public CMD_PAIR[] GET_CMD_CARD_PHOTO()
        {
            CMD_PAIR[] cmds = new CMD_PAIR[21];
            for (int i = 0; i <= 20; i++)
            {
                int xwd;
                int xof = i * 254 + 379;
                if (i == 20)
                    xwd = 38;
                else
                    xwd = 254;

                int sp2 = (xof >> 8) & 0xff;
                int sp3 = xof & 0xff;
                int sp6 = xwd & 0xff;
                int spx = xwd & 0xff;

                cmds[i].CMD1 = new byte[] { 0x80, 0xb0, (byte)sp2, (byte)sp3, 0x02, 0x00, (byte)sp6 };
                cmds[i].CMD2 = new byte[] { 0x00, 0xc0, 0x00, 0x00, (byte)spx };
            }

            return cmds;
        }