devices.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. const getDeviceList = function() {
  2. let deviceList = [{
  3. id: 0,
  4. cname: "CL806",
  5. ename: "CL806_Bandage",
  6. icon: "/static/devicesIcon/bandage.png",
  7. mIcon: "/static/devicesIcon/bandage.png",
  8. bRatio: false,
  9. usageMode: 'CL806',
  10. describe: '胸口绑带',
  11. limitType: 'rebound', //限制回弹版本
  12. deviceType: 'Hardware', //指的是使用手机本身加速计计算
  13. deviceName: 'CL806', //连接硬件名称
  14. limitDis: 0.5,
  15. /**
  16. * 主服务的 uuid Cofing
  17. */
  18. primaryUUID: '', //蓝牙主服务id
  19. PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
  20. PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
  21. PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
  22. /***********/
  23. currentVersion: '', //当前固件版本
  24. latestVersion: '' //服务器最新固件版本
  25. },
  26. {
  27. id: 1,
  28. cname: "CL831",
  29. ename: "CL831_Bandage",
  30. icon: "/static/devicesIcon/bandage.png",
  31. mIcon: "/static/devicesIcon/bandage.png",
  32. bRatio: false,
  33. usageMode: 'CL831',
  34. describe: '手部绑带',
  35. limitType: 'rebound', //限制回弹版本
  36. deviceType: 'Hardware', //指的是使用手机本身加速计计算
  37. deviceName: 'CL831', //连接硬件名称
  38. limitDis: 0.5,
  39. /**
  40. * 主服务的 uuid Cofing
  41. */
  42. primaryUUID: '', //蓝牙主服务id
  43. PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
  44. PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
  45. PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
  46. /***********/
  47. currentVersion: '', //当前固件版本
  48. latestVersion: '' //服务器最新固件版本
  49. },
  50. {
  51. id: 2,
  52. cname: "CL809",
  53. ename: "CL809_Bandage",
  54. icon: "/static/devicesIcon/bandage.png",
  55. mIcon: "/static/devicesIcon/bandage.png",
  56. bRatio: false,
  57. usageMode: 'CL809',
  58. describe: '胸口绑带',
  59. limitType: 'rebound', //限制回弹版本
  60. deviceType: 'Hardware', //指的是使用手机本身加速计计算
  61. deviceName: 'CL809', //连接硬件名称
  62. limitDis: 0.5,
  63. /**
  64. * 主服务的 uuid Cofing
  65. */
  66. primaryUUID: '', //蓝牙主服务id
  67. PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
  68. PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
  69. PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
  70. /***********/
  71. currentVersion: '', //当前固件版本
  72. latestVersion: '' //服务器最新固件版本
  73. },
  74. {
  75. id: 3,
  76. cname: "心率带", //CL838
  77. ename: "CL_Bandage", //CL838_Bandage
  78. icon: "/static/heart/device838@2x.png",
  79. mIcon: "/static/heart/device838@2x.png",
  80. bRatio: false,
  81. usageMode: 'CL', //CL838
  82. describe: '心率带',
  83. limitType: 'rebound', //限制回弹版本
  84. deviceType: 'Hardware', //指的是使用手机本身加速计计算
  85. deviceName: 'CL', //连接硬件名称 CL838
  86. limitDis: 0.5,
  87. /**
  88. * 主服务的 uuid Cofing
  89. */
  90. primaryUUID: '', //蓝牙主服务id
  91. PRIMARY_SERVICE: '0000180D-0000-1000-8000-00805f9b34fb',
  92. PRIMARY_WRITE: '00002A38-0000-1000-8000-00805f9b34fb',
  93. PRIMARY_NOTIFY: '00002A37-0000-1000-8000-00805f9b34fb',
  94. //电量
  95. BATTERY_SERVICE_UUID: '0000180F-0000-1000-8000-00805f9b34fb',
  96. BATTERY_LEVEL_CHARACTERISTIC_UUID: '00002A19-0000-1000-8000-00805f9b34fb',
  97. /***********/
  98. currentVersion: '', //当前固件版本
  99. latestVersion: '' //服务器最新固件版本
  100. }
  101. ];
  102. return deviceList;
  103. }
  104. export default {
  105. getDeviceList
  106. }