Untitled
unknown
plain_text
a year ago
7.5 kB
6
Indexable
Never
package com.boncare.massagechair.util; public class CmdData { public static final String CMD_START = "AA55"; public static final String CMD_END = "00000000000000C33C"; //type public static final String DATA1_KEY_DOWN = "E8"; //所有手控器按键按下,都发命令码1: 0XE8 和命令码2 public static final String DATA1_KEY_UP = "E9"; //当以下命令按键松开以后发命令码1: 0XE9 和命令码2 //value public static final String DATA2_AUTO_TRANSF = "01"; //自动程序转换 public static final String DATA2_MANUAL_TRANSF = "02"; //手动手法转换 public static final String DATA2_SPEED = "03"; //速度 public static final String DATA2_ROLLER = "04"; //脚底滚轮 public static final String DATA2_FEET_OK = "05"; //小腿检测ok public static final String DATA2_CRUS_UP = "06"; //小腿升 public static final String DATA2_SWITCH = "07"; //开关 public static final String DATA2_POWER_ADD = "08"; //机芯力度增加 //public static final String DATA2_TIME_ADD20 = "09"; //时间加20 public static final String DATA2_GASPAG_SUB = "09"; //气囊强度减少 public static final String DATA2_EMERGY_STOP = "0a"; //紧急停止 public static final String DATA2_POWER_SUB = "0b"; //机芯力度降低 public static final String DATA2_BACK_UP = "0c"; //靠背升 public static final String DATA2_ADJUST_UP = "0d"; //向上调节 public static final String DATA2_ADJUST_DOWN = "0e"; //向下调节 public static final String DATA2_GASPAG_ADD = "0f"; //气囊强度增加 public static final String DATA2_LIGHT = "10"; //氛围灯开关 public static final String DATA2_WEIGHT = "11"; //宽度 public static final String DATA2_BACK_HEATING = "12"; //加热 public static final String DATA2_CRUS_DOWN = "13"; //小腿降 public static final String DATA2_BACK_DOWN = "14"; //靠背降 public static final String DATA2_ALL_DOWN = "15"; //联动降 public static final String DATA2_ALL_UP = "16"; //联动升 //自动程序 public static final String DATA2_AUTO_P1 = "18"; //零重力 //肩颈按摩 public static final String DATA2_AUTO_P2 = "19"; //睡眠改善 //腰背按摩 public static final String DATA2_AUTO_P3 = "1a"; //体型瘦身 //腿脚按摩 public static final String DATA2_AUTO_P4 = "1b"; //脊椎护理 //手臂按摩 public static final String DATA2_AUTO_P5 = "1c"; //肩颈放松 //全身放松 public static final String DATA2_AUTO_P6 = "1d"; //腰背 //泰式拉伸 public static final String DATA2_AUTO_P7 = "1e"; //开背 //零重力 public static final String DATA2_AUTO_P8 = "1f"; //护腰养肾 //助睡眠 //手动程序 public static final String DATA2_MAN_P1 = "20"; //正揉捏 public static final String DATA2_MAN_P2 = "21"; //反揉捏 public static final String DATA2_MAN_P3 = "22"; //正敲揉 public static final String DATA2_MAN_P4 = "23"; //反敲揉 public static final String DATA2_MAN_P5 = "24"; //窄敲 public static final String DATA2_MAN_P6 = "25"; //中敲 public static final String DATA2_MAN_P7 = "26"; //宽敲 public static final String DATA2_MAN_P8 = "27"; //中窄揉 public static final String DATA2_MAN_P9 = "28"; //宽中揉 public static final String DATA2_MAN_P10 = "29"; //宽窄揉 public static final String DATA2_MAN_P11 = "2a"; //中窄敲 public static final String DATA2_MAN_P12 = "2b"; //宽窄敲 public static final String DATA2_MAN_P13 = "2c"; //宽中敲 public static final String DATA2_MAN_P14 = "2d"; //宽拍打 public static final String DATA2_MAN_P15 = "2e"; //窄拍打 public static final String DATA2_MAN_P16 = "2f"; //中拍打 //type public static final int BYTE_DATA1_KEY_DOWN = 0xE8; //所有手控器按键按下,都发命令码1: 0XE8 和命令码2 public static final int BYTE_DATA1_KEY_UP = 0xE9; //当以下命令按键松开以后发命令码1: 0XE9 和命令码2 //value public static final int BYTE_DATA2_AUTO_TRANSF = 0x01; //自动程序转换 public static final int BYTE_DATA2_MANUAL_TRANSF = 0x02; //手动手法转换 public static final int BYTE_DATA2_SPEED = 0x03; //速度 public static final int BYTE_DATA2_ROLLER = 0x04; //脚底滚轮 public static final int BYTE_DATA2_FEET_OK = 0x05; //小腿检测ok public static final int BYTE_DATA2_CRUS_UP = 0x06; //小腿升 public static final int BYTE_DATA2_SWITCH = 0x07; //开关 public static final int BYTE_DATA2_POWER_ADD = 0x08; //机芯力度增加 public static final int BYTE_DATA2_GASPAG_SUB = 0x09; //气囊强度减弱 public static final int BYTE_DATA2_EMERGY_STOP = 0x0a; //紧急停止 public static final int BYTE_DATA2_POWER_SUB = 0x0b; //机芯力度降低 public static final int BYTE_DATA2_BACK_UP = 0x0c; //靠背升 public static final int BYTE_DATA2_ADJUST_UP = 0x0d; //向上调节 public static final int BYTE_DATA2_ADJUST_DOWN = 0x0e; //向下调节 public static final int BYTE_DATA2_GASPAG_ADD = 0x0f; //气囊强度增加 public static final int BYTE_DATA2_LIGHT = 0x10; //开关氛围灯 public static final int BYTE_DATA2_WEIGHT = 0x11; //宽度 public static final int BYTE_DATA2_BACK_HEATING = 0x12; //背部加热 public static final int BYTE_DATA2_CRUS_DOWN = 0x13; //小腿降 public static final int BYTE_DATA2_BACK_DOWN = 0x14; //靠背降 public static final int BYTE_DATA2_ALL_DOWN = 0x15; //小腿伸 public static final int BYTE_DATA2_ALL_UP = 0x16; //小腿缩 //机芯力度操作手动模式需要再发一个0xe9 //自动程序 public static final int BYTE_DATA2_AUTO_P1 = 0x18; //零重力 //肩颈按摩 public static final int BYTE_DATA2_AUTO_P2 = 0x19; //睡眠改善 //腰背按摩 public static final int BYTE_DATA2_AUTO_P3 = 0x1a; //体型瘦身 //腿脚按摩 public static final int BYTE_DATA2_AUTO_P4 = 0x1b; //脊椎护理 //手臂按摩 public static final int BYTE_DATA2_AUTO_P5 = 0x1c; //肩颈放松 //全身放松 public static final int BYTE_DATA2_AUTO_P6 = 0x1d; //腰背 //泰式拉伸 public static final int BYTE_DATA2_AUTO_P7 = 0x1e; //开背 //零重力 public static final int BYTE_DATA2_AUTO_P8 = 0x1f; //护腰养肾 //助睡眠 //手动程序 public static final int BYTE_DATA2_MAN_P1 = 0x20; //正揉捏 public static final int BYTE_DATA2_MAN_P2 = 0x21; //反揉捏 public static final int BYTE_DATA2_MAN_P3 = 0x22; //正敲揉 public static final int BYTE_DATA2_MAN_P4 = 0x23; //反敲揉 public static final int BYTE_DATA2_MAN_P5 = 0x24; //窄敲 public static final int BYTE_DATA2_MAN_P6 = 0x25; //中敲 public static final int BYTE_DATA2_MAN_P7 = 0x26; //宽敲 public static final int BYTE_DATA2_MAN_P8 = 0x27; //中窄揉 public static final int BYTE_DATA2_MAN_P9 = 0x28; //宽中揉 public static final int BYTE_DATA2_MAN_P10 = 0x29; //宽窄揉 public static final int BYTE_DATA2_MAN_P11 = 0x2a; //中窄敲 public static final int BYTE_DATA2_MAN_P12 = 0x2b; //宽窄敲 public static final int BYTE_DATA2_MAN_P13 = 0x2c; //宽中敲 public static final int BYTE_DATA2_MAN_P14 = 0x2d; //宽拍打 public static final int BYTE_DATA2_MAN_P15 = 0x2e; //窄拍打 public static final int BYTE_DATA2_MAN_P16 = 0x2f; //中拍打 public static final int BYTE_DATA2_JIANWEI = 0x11; //肩位确认 }