鼎鼎知识库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2020淮安替换模块.md 3.0KB

пре 4 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. > 1700C替换成242FC
  2. - 寻找新模块:
  3. ```
  4. ifconfig
  5. sudo arp-scan -I enp3s0 --localnet
  6. ```
  7. - 修改模块的新的服务器指向
  8. ```
  9. root abc123
  10. mandun_url
  11. 192.168.8.1:8080/ebx-bishop/data/carry
  12. ```
  13. - 查看242FC是否已经到达服务器
  14. - 删除局域网旧模块
  15. ```
  16. 查找模块的所有开关:
  17. select * from KaiGuan where Mac='187ED531700C'
  18. 记录开关编号:
  19. 97,98,99,100,101
  20. 记录开关位置:
  21. select * from DianXiang where Id=7
  22. 6层西箱
  23. 确认并删除SceneItem
  24. select * from SceneItem where KaiGuanId in ('97','98','99','100','101')
  25. delete from SceneItem where KaiGuanId in ('97','98','99','100','101')
  26. 确认并删除SceneDetails
  27. select * from sceneDetails where mac='187ed531700c'
  28. delete from sceneDetails where mac='187ed531700c'
  29. 确认并删除warningHistories
  30. select * from warningHistories where KaiGuanId in ('97','98','99','100','101')
  31. delete from warningHistories where KaiGuanId in ('97','98','99','100','101')
  32. 确认并删除kaiguanwarning
  33. select * from KaiGuanWarning where KaiGuanId in ('97','98','99','100','101')
  34. delete from KaiGuanWarning where KaiGuanId in ('97','98','99','100','101')
  35. 删除开关:
  36. delete from KaiGuan where Mac='187ed531700c'
  37. 删除缓存中的该模块:
  38. 界面中删除模块:13800000000 TecheFwd2018
  39. TaiHe187ED531700C,macss
  40. TaiHeQuYuKSH187ED531700C
  41. ```
  42. - 删除云端旧模块
  43. ```
  44. 查看和删除
  45. select * from realtimedatas where mac='187ED531700C'
  46. select * from warninghistories where mac='187ED531700C'
  47. select * from realwarnings where mac='187ED531700C'
  48. select * from notis where KaiGuanId in ('65','66','67','68','69')
  49. delete from realtimedatas where mac='187ED531700C'
  50. delete from warninghistories where mac='187ED531700C'
  51. delete from realwarnings where mac='187ED531700C'
  52. delete from notis where KaiGuanId in ('65','66','67','68','69')
  53. ```
  54. - 添加局域网新模块和开关
  55. ```
  56. 选择电箱:6层西箱
  57. 242FC
  58. 查看是否有区域可视化缓存,如果有并且为空就删除
  59. 来到可视化界面查看
  60. ```
  61. - 添加时序确认查询局域网时序数据库
  62. ```
  63. 192.168.18.54 dingding teche123
  64. 187ED53242FC
  65. use rlq_huaian_7_10;
  66. 确认电量
  67. describe dl_187ed53242fc_0_m;
  68. describe dl_187ed53242fc_5_m;
  69. describe dl_187ed53242fc_0_h;
  70. describe dl_187ed53242fc_5_h;
  71. describe dl_187ed53242fc_0_d;
  72. describe dl_187ed53242fc_5_d;
  73. select * from dl_187ed53242fc_0_m;没有数据
  74. select * from dl_187ed53242fc_0_h;
  75. select * from dl_187ed53242fc_1_h;
  76. 确认实时
  77. describe real_187ed53242fc;
  78. select * from real_187ed53242fc;
  79. 确认统计
  80. describe tj_187ed53242fc_m;
  81. describe tj_187ed53242fc_h;
  82. describe tj_187ed53242fc_d;
  83. select * from tj_187ed53242fc_m; 有
  84. ```
  85. -- 确认局域网关系数据库是否有数据
  86. ```
  87. select * from devicedls where mac='187ED53242FC'
  88. ```
  89. - 添加时序确认查询云端时序数据库
  90. ```
  91. 187ED53242FC
  92. 47.102.145.164 root Teche7208
  93. taos
  94. show databases;
  95. use rlq_huaian_7_10;
  96. 确认统计
  97. describe tj_187ed53242fc_m;
  98. describe tj_187ed53242fc_h;
  99. describe tj_187ed53242fc_d;
  100. 确认实时
  101. describe real_187ed53242fc;
  102. ```