结构体说明

1.1

deviceinfo:

  typedef struct {
        uint16 version;
        uint16 device_type;
        uint8 mac[6];
        uint8 did[6];
    } device_info_t;
    
deviceinfo为以上16byte的结构体以16进制编码的字符串

1.2

deviceToken/tokeninfo

hex.encode后的字符串
前4个byte为aeskeyid
后16个byte是aeskey和md5(mac)的异或值

1.3

devicePairedInfo.cookie

base64(`{
        "ircode":{
            "ircodeid":"15746",
            "ircodedata":ircodedata, //自学习的码
            "channeldata":channeldata //频道数据
        },
        "device":{
            "did":"0000000000000000000034ea34b3060e",
            "mac":"34:ea:34:b3:06:0e",
            "pid":"00000000000000000000000037270000",
            "aeskey":"0da0d67143134d617a86c350b0f93940",
            "id":1,
            "lanaddr":"192.168.31.242@80"
        }
    }`)

其中channeldata和ircodedata结构

channeldata:{
               "tvchannel":[
                {
                    "name":"xxx",
                    "famousstatus":0,
                    "channelid":11,
                    "serialnum":123
                }
            ]
    }
    
"ircodedata":{
              "brand":"长虹电视13",
              "functionList":[{
                                  "code":"26003816546165316546136546164546",
                                  "function":"1",
                                  "name":"1",
                  }]
    }

1.4

subDeviceInfo

base64(`
        {
            "ircode":{
                "ircodeid":"1543",
                "allfunction":["up","down"],
                "ircodedata":{
                      "brand":"长虹电视13",
                      "functionList":[{
                                      "code":"26003816546165316546136546164546",
                                      "function":"1",
                                      "name":"1",
                      }]
                  },
                 "channeldata":channeldata,
                "pid":"电视的pid"
            }
        }
`)

base64(`
            {
                "ircodeid":"1543",
                "allfunction":["up","down"],
                "ircodedata":{
                      "brand":"长虹电视13",
                      "functionList":[{
                                      "code":"26003816546165316546136546164546",
                                      "function":"1",
                                      "name":"1",
                      }]
                  },
                 "channeldata":channeldata,
                "pid":"电视的pid"
            }
`)


//其中ircodedata数据是面板学习所得,未学习,选取云端面板时只需要ircodeid和pid
//面板pid固定为
000000000000000000000000c2050100  空调
000000000000000000000000c4050100 机顶盒
000000000000000000000000c3050100 电视