CmdMap.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Mead
  5. * Date: 2019/9/2
  6. * Time: 9:00 PM
  7. */
  8. namespace App\Maps;
  9. class CmdMap
  10. {
  11. const CMD_LOGIN = '01';
  12. const CMD_LOCATION = '02';
  13. const CMD_BATTERY_STATUS = '03';
  14. const CMD_WARNING = '04';
  15. const CMD_HEARTBEAT = '05';
  16. const CMD_REMOTE_CONTROL = '06';
  17. const CMD_REMOTE_SELECT = '07';
  18. const CMD_REMOTE_CONFIG = '08';
  19. const CMD_STATUS_SYNC = '09';
  20. const CMD_MSG_UP = '0A';
  21. const CMD_MSG_FORWARD = '0B';
  22. const CMD_REMOTE_VOICE = '0C';
  23. const CMD_BOX_UPGRADE = '0D';
  24. const CMD_BOX_ACTIVE_REPORTING = '0E';
  25. const CMD_BOX_STATUS_CHANGE_UP = '17';
  26. const CMD_REMOTE_CONTROLLER_RESPONSE = '86';
  27. const CMD_REMOTE_SELECT_CMD_BOX_UP_DATA = '87';
  28. const CMD_REMOTE_SETTING_CMD_BOX_UP_DATA = '88';
  29. const CMD_BOX_UP_NEW_BIKE_DATA = '94';
  30. const CMD_ADMIN_MSG_FORWARD = '8B';
  31. const CMD_REMOTE_VOICE_DATA = '8C';
  32. const CMD_BOX_REPORTING_NEW_BIKE = '14';
  33. const CMD_RESPONSE_LOGIN = '81';
  34. const CMD_RESPONSE_LOCATION = '82';
  35. const CMD_RESPONSE_BATTERY = '83';
  36. const CMD_RESPONSE_WARNING = '84';
  37. const CMD_RESPONSE_HEARTBEAT = '85';
  38. const CMD_RESPONSE_STATUS_SYNC = '89';
  39. const CMD_RESPONSE_MSG_UP = '8A';
  40. const CMD_RESPONSE_BOX_UPGRADE = '8D';
  41. const CMD_RESPONSE_BOX_ACTIVE_REPORTING = '8E';
  42. const CMD_RESPONSE_BOX_UP_NEW_BIKE_DATA = '94';
  43. const CMD_RESPONSE_REMOTE_CMD = '96';
  44. const CMD_RESPONSE_BOX_STATUS_CHANGE_UP = '97';
  45. public static $cmdMaps = [
  46. self::CMD_LOGIN => '登录数据包',
  47. self::CMD_LOCATION => '定位数据包',
  48. ];
  49. }