devices.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. const getDeviceList = function() {
  2. let deviceList = [
  3. {
  4. id: 0,
  5. cname: "手机绑带",
  6. ename: "mobilePhoneBandage",
  7. icon: "/static/devicesIcon/bandage.png",
  8. mIcon: "/static/devicesIcon/bandage.png",
  9. bRatio: false,
  10. usageMode: 'phone',
  11. describe: '手机情景下使用',
  12. limitType: 'rebound', //限制回弹版本
  13. deviceType: 'mySelf', //指的是使用手机本身加速计计算
  14. deviceName: 'ITAG', //连接硬件名称
  15. limitDis: 0.5,
  16. /**
  17. * 主服务的 uuid Cofing
  18. */
  19. primaryUUID: '', //蓝牙主服务id
  20. PRIMARY_SERVICE: '',
  21. PRIMARY_WRITE: '',
  22. PRIMARY_NOTIFY: '',
  23. /***********/
  24. currentVersion: '', //当前固件版本
  25. latestVersion: '' //服务器最新固件版本
  26. },
  27. {
  28. id: 1,
  29. cname: "拳击模式",
  30. ename: "hotman",
  31. icon: "/static/devicesIcon/hotman.png",
  32. mIcon: "/static/devicesIconSimple/hotman.png",
  33. bRatio: false,
  34. usageMode: "hotman", //使用模式,在hotman情景下使用
  35. describe: '拳击模式情景下使用,快速打击模式',
  36. limitType: 'noRebound', //不限制回弹版本
  37. deviceType: 'BLEHandle', //使用设备,蓝牙手柄
  38. deviceName: 'BGBox', // 使用设备名称:PBox-000000b BGBox_202012
  39. limitDis: 100, //限制距离 米
  40. /**
  41. * 主服务的 uuid Cofing
  42. */
  43. primaryUUID: 'FFF0', //蓝牙主服务id
  44. PRIMARY_SERVICE: '0000FFF0-0000-1000-8000-00805F9B34FB',
  45. PRIMARY_WRITE: '0000FFF2-0000-1000-8000-00805F9B34FB',
  46. PRIMARY_NOTIFY: '0000FFF1-0000-1000-8000-00805F9B34FB',
  47. /***********/
  48. currentVersion: '', //当前固件版本
  49. latestVersion: '' //服务器最新固件版本
  50. },
  51. {
  52. id: 2,
  53. cname: "普通模式",
  54. ename: "BLEHandle",
  55. icon: "/static/devicesIcon/handle.png",
  56. mIcon: "/static/devicesIconSimple/handle.png",
  57. bRatio: false,
  58. usageMode: "general", //通用情况,根据需求处理
  59. describe: '自由情景下使用',
  60. limitType: 'rebound', //app处理蓝牙发送的数据
  61. deviceType: 'BLEHandle', //指的是外部蓝牙,目前定义为BLEHandle
  62. deviceName: 'BGBox', //连接的设备名称
  63. limitDis: 100, //
  64. /**
  65. * 主服务的 uuid Cofing
  66. */
  67. primaryUUID: 'FFF0', //蓝牙主服务id
  68. PRIMARY_SERVICE: '0000FFF0-0000-1000-8000-00805F9B34FB',
  69. PRIMARY_WRITE: '0000FFF2-0000-1000-8000-00805F9B34FB',
  70. PRIMARY_NOTIFY: '0000FFF1-0000-1000-8000-00805F9B34FB',
  71. /***********/
  72. currentVersion: '1.2.0', //当前固件版本
  73. latestVersion: '1.2.0' //服务器最新固件版本
  74. },
  75. {
  76. id: 3,
  77. cname: "跳绳模式",
  78. ename: "rope",
  79. icon: "/static/devicesIcon/rope.png",
  80. mIcon: "/static/devicesIconSimple/rope_icon@2x.png",
  81. bRatio: false,
  82. usageMode: "ropeSkipping", //通用情况,根据需求处理
  83. describe: '*长按开机键至蓝灯正常闪烁\n*蓝灯正常闪烁后,点击灰色选中按钮匹配手柄',
  84. limitType: 'rebound', //app处理蓝牙发送的数据
  85. deviceType: 'BLERope', //指的是外部蓝牙,目前定义为BLERope
  86. deviceName: 'Rope', //连接的设备名称
  87. limitDis: 100, //
  88. /**
  89. * 主服务的 uuid Cofing
  90. */
  91. primaryUUID: 'FFF0', //蓝牙主服务id
  92. PRIMARY_SERVICE: '0000FFF0-0000-1000-8000-00805F9B34FB',
  93. PRIMARY_WRITE: '0000FFF2-0000-1000-8000-00805F9B34FB',
  94. PRIMARY_NOTIFY: '0000FFF1-0000-1000-8000-00805F9B34FB',
  95. /***********/
  96. currentVersion: '1.2.0', //当前固件版本
  97. latestVersion: '1.2.0' //服务器最新固件版本
  98. },
  99. {
  100. id: 4,
  101. cname: "智能沙袋模式",
  102. ename: "intelligent",
  103. icon: "/static/devicesIcon/BLEIntelligent.jpg",
  104. mIcon: "/static/devicesIconSimple/BLEIntelligent.jpg",
  105. bRatio: false,
  106. usageMode: "hotman", //使用模式,在hotman情景下使用
  107. describe: '闪光蓝牙设备的拳击模式情景下使用,快速打击模式',
  108. limitType: 'noRebound', //不限制回弹版本
  109. deviceType: 'BLEIntelligent', //使用设备,蓝牙手柄
  110. deviceName: 'BGBox', // 使用设备名称:PBox-000000b BGBox_202012
  111. limitDis: 100, //限制距离 米
  112. /**
  113. * 主服务的 uuid Cofing
  114. */
  115. primaryUUID: 'FFF0', //蓝牙主服务id
  116. PRIMARY_SERVICE: '0000FFF0-0000-1000-8000-00805F9B34FB',
  117. PRIMARY_WRITE: '0000FFF2-0000-1000-8000-00805F9B34FB',
  118. PRIMARY_NOTIFY: '0000FFF1-0000-1000-8000-00805F9B34FB',
  119. /***********/
  120. currentVersion: '', //当前固件版本
  121. latestVersion: '' //服务器最新固件版本
  122. }
  123. ];
  124. return deviceList;
  125. }
  126. export default {
  127. getDeviceList
  128. }