鼎鼎知识库
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2020智能照明安装指南.md 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. # TeamViewer
  2. ```
  3. --TeamViewer注册邮箱
  4. https://exmail.qq.com/login
  5. darren@ddingsafe.com
  6. TecheDing2019
  7. --TeamViewer账号
  8. 激活码:09-32504-807106-224267
  9. 邮箱:darren@ddingsafe.com
  10. 密码:DingTeam2019
  11. --诺德
  12. 伙伴ID: 1274815081
  13. 密码:teche
  14. --展厅
  15. 伙伴ID:1 724 163 309
  16. 密码:75s4tn
  17. ```
  18. # 服务器
  19. ```
  20. --诺德
  21. 用户名:Administrator
  22. 密码:TecheFwd123
  23. --展厅
  24. 服务器IP:192.168.9.108
  25. 用户名:Administrator
  26. 密码:teche123
  27. 187ED5314E0C: 192.168.9.118
  28. 187ED53159E4: 192.168.9.126
  29. --云端
  30. 服务器地址: 47.103.61.198
  31. 用户名:administrator
  32. 密码:Teche123
  33. 云端智能照明接口文档:http://47.103.61.198:5001/swagger/index.html
  34. ```
  35. # 网站
  36. ```
  37. --诺德
  38. 管理员:DrrnFwd2018
  39. 设备管理员:shebei 888888
  40. --展厅
  41. 管理员用户名:13800000000
  42. 密码:TecheFwd2018
  43. ```
  44. # 安装文件
  45. ```
  46. dd-dist_v...:各个版本的程序源代码
  47. dd-env: 运行环境
  48. dd-tools:其它工具,比如局域网内查找IP
  49. ```
  50. # 版本
  51. ```
  52. --v1.1.5.3和nuode_stable:利群诺德使用稳定的版本,以nuode_stable为准。使用的是.NET Core 2.0
  53. --v1.1.5.3,在诺德的基础上加了时序数据库以及和上传数据给云端,但没有严格测试过。使用的是.NET Core 2.0
  54. --v1.0.0.0,使用的是.NET Core 3.0和云端关系数据库和时序数据库连接
  55. ```
  56. # 给开关编地址
  57. - 手机直联:手机直联模块,密码88888888
  58. - 添加模块:手机APP添加电线,密码admin
  59. - 组装:把电源、模块、开关组装好,所有保持分断状态
  60. - 进入设置状态:在手机APP设置线路里让所有开关进入设置状态,设置状态的标志是开关橙色指示灯闪烁
  61. - 从左到右依次按下开关上的橙色按钮
  62. - 结束设置状态:在手机APP按结束设置按钮
  63. - 手动编写地址: 按12秒进入设置状态,按几下就是地址编号,再按12秒退出设置状态
  64. # 修改模块指向
  65. - 如果指向云端,先连接本地局域网,在APP内设置
  66. - 进入模块管理后台设置指向:192.168.0.131:82 root abc123 mandun_url 192.168.0.252:8080/ebx-biship/data/carry
  67. # .NET Core运行时环境
  68. # MySQL
  69. - 安装:NT-mysql-Install.bat, 在服务中多出MySql服务
  70. - 配置:my.ini, bind-address=0.0.0.0 port=3306 skip_grant_tables
  71. - 启动:NT-mysql-start.bat, 在进程中多了mysqld.exe
  72. - 安装客户端:Navicat
  73. - 连接MySQL: 主机名或IP地址:localhost;端口:3306;用户名:root;密码:lcDb_!@34%^_Mantunsci
  74. # Redis
  75. - 安装:NT-redis-Install.bat
  76. - 启动:NT-redis-Start.bat
  77. - 安装客户端:RedisDesktopManager
  78. - 连接Redis: 地址:127.0.0.1;端口:6321;验证:_ebx_cnto_r_srv;安全:无
  79. # teche数据库
  80. ```
  81. 数据库名:teche
  82. 字符集:utf8mb4--UTF-8 Unicode
  83. 排序规则:utf8mbs_general_ci
  84. ```
  85. # techeusr数据库
  86. ```
  87. 数据库名:techeusr
  88. 字符集:utf8mb4--UTF-8 Unicode
  89. 排序规则:utf8mbs_general_ci
  90. ```
  91. # quartznet数据库
  92. ```
  93. 数据库名:quartznet
  94. 字符集:utf8mb4--UTF-8 Unicode
  95. 排序规则:utf8mbs_general_ci
  96. # By: Ron Cordell - roncordell
  97. # I didn't see this anywhere, so I thought I'd post it here. This is the script from Quartz to create the tables in a MySQL database, modified to use INNODB instead of MYISAM.
  98. # make sure you have UTF-8 collaction for best .NET interoperability
  99. # CREATE DATABASE quartznet CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
  100. DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS;
  101. DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
  102. DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE;
  103. DROP TABLE IF EXISTS QRTZ_LOCKS;
  104. DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS;
  105. DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS;
  106. DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS;
  107. DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS;
  108. DROP TABLE IF EXISTS QRTZ_TRIGGERS;
  109. DROP TABLE IF EXISTS QRTZ_JOB_DETAILS;
  110. DROP TABLE IF EXISTS QRTZ_CALENDARS;
  111. CREATE TABLE QRTZ_JOB_DETAILS(
  112. SCHED_NAME VARCHAR(60) NOT NULL,
  113. JOB_NAME VARCHAR(60) NOT NULL,
  114. JOB_GROUP VARCHAR(60) NOT NULL,
  115. DESCRIPTION VARCHAR(250) NULL,
  116. JOB_CLASS_NAME VARCHAR(250) NOT NULL,
  117. IS_DURABLE BOOLEAN NOT NULL,
  118. IS_NONCONCURRENT BOOLEAN NOT NULL,
  119. IS_UPDATE_DATA BOOLEAN NOT NULL,
  120. REQUESTS_RECOVERY BOOLEAN NOT NULL,
  121. JOB_DATA BLOB NULL,
  122. PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP))
  123. ENGINE=InnoDB;
  124. CREATE TABLE QRTZ_TRIGGERS (
  125. SCHED_NAME VARCHAR(60) NOT NULL,
  126. TRIGGER_NAME VARCHAR(60) NOT NULL,
  127. TRIGGER_GROUP VARCHAR(60) NOT NULL,
  128. JOB_NAME VARCHAR(60) NOT NULL,
  129. JOB_GROUP VARCHAR(60) NOT NULL,
  130. DESCRIPTION VARCHAR(250) NULL,
  131. NEXT_FIRE_TIME BIGINT(19) NULL,
  132. PREV_FIRE_TIME BIGINT(19) NULL,
  133. PRIORITY INTEGER NULL,
  134. TRIGGER_STATE VARCHAR(16) NOT NULL,
  135. TRIGGER_TYPE VARCHAR(8) NOT NULL,
  136. START_TIME BIGINT(19) NOT NULL,
  137. END_TIME BIGINT(19) NULL,
  138. CALENDAR_NAME VARCHAR(60) NULL,
  139. MISFIRE_INSTR SMALLINT(2) NULL,
  140. JOB_DATA BLOB NULL,
  141. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  142. FOREIGN KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
  143. REFERENCES QRTZ_JOB_DETAILS(SCHED_NAME,JOB_NAME,JOB_GROUP))
  144. ENGINE=InnoDB;
  145. CREATE TABLE QRTZ_SIMPLE_TRIGGERS (
  146. SCHED_NAME VARCHAR(60) NOT NULL,
  147. TRIGGER_NAME VARCHAR(60) NOT NULL,
  148. TRIGGER_GROUP VARCHAR(60) NOT NULL,
  149. REPEAT_COUNT BIGINT(7) NOT NULL,
  150. REPEAT_INTERVAL BIGINT(12) NOT NULL,
  151. TIMES_TRIGGERED BIGINT(10) NOT NULL,
  152. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  153. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  154. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
  155. ENGINE=InnoDB;
  156. CREATE TABLE QRTZ_CRON_TRIGGERS (
  157. SCHED_NAME VARCHAR(60) NOT NULL,
  158. TRIGGER_NAME VARCHAR(60) NOT NULL,
  159. TRIGGER_GROUP VARCHAR(60) NOT NULL,
  160. CRON_EXPRESSION VARCHAR(120) NOT NULL,
  161. TIME_ZONE_ID VARCHAR(80),
  162. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  163. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  164. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
  165. ENGINE=InnoDB;
  166. CREATE TABLE QRTZ_SIMPROP_TRIGGERS
  167. (
  168. SCHED_NAME VARCHAR(60) NOT NULL,
  169. TRIGGER_NAME VARCHAR(60) NOT NULL,
  170. TRIGGER_GROUP VARCHAR(60) NOT NULL,
  171. STR_PROP_1 VARCHAR(512) NULL,
  172. STR_PROP_2 VARCHAR(512) NULL,
  173. STR_PROP_3 VARCHAR(512) NULL,
  174. INT_PROP_1 INT NULL,
  175. INT_PROP_2 INT NULL,
  176. LONG_PROP_1 BIGINT NULL,
  177. LONG_PROP_2 BIGINT NULL,
  178. DEC_PROP_1 NUMERIC(13,4) NULL,
  179. DEC_PROP_2 NUMERIC(13,4) NULL,
  180. BOOL_PROP_1 BOOLEAN NULL,
  181. BOOL_PROP_2 BOOLEAN NULL,
  182. TIME_ZONE_ID VARCHAR(80) NULL,
  183. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  184. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  185. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
  186. ENGINE=InnoDB;
  187. CREATE TABLE QRTZ_BLOB_TRIGGERS (
  188. SCHED_NAME VARCHAR(60) NOT NULL,
  189. TRIGGER_NAME VARCHAR(60) NOT NULL,
  190. TRIGGER_GROUP VARCHAR(60) NOT NULL,
  191. BLOB_DATA BLOB NULL,
  192. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  193. INDEX (SCHED_NAME,TRIGGER_NAME, TRIGGER_GROUP),
  194. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  195. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
  196. ENGINE=InnoDB;
  197. CREATE TABLE QRTZ_CALENDARS (
  198. SCHED_NAME VARCHAR(60) NOT NULL,
  199. CALENDAR_NAME VARCHAR(60) NOT NULL,
  200. CALENDAR BLOB NOT NULL,
  201. PRIMARY KEY (SCHED_NAME,CALENDAR_NAME))
  202. ENGINE=InnoDB;
  203. CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS (
  204. SCHED_NAME VARCHAR(60) NOT NULL,
  205. TRIGGER_GROUP VARCHAR(60) NOT NULL,
  206. PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP))
  207. ENGINE=InnoDB;
  208. CREATE TABLE QRTZ_FIRED_TRIGGERS (
  209. SCHED_NAME VARCHAR(60) NOT NULL,
  210. ENTRY_ID VARCHAR(140) NOT NULL,
  211. TRIGGER_NAME VARCHAR(60) NOT NULL,
  212. TRIGGER_GROUP VARCHAR(60) NOT NULL,
  213. INSTANCE_NAME VARCHAR(60) NOT NULL,
  214. FIRED_TIME BIGINT(19) NOT NULL,
  215. SCHED_TIME BIGINT(19) NOT NULL,
  216. PRIORITY INTEGER NOT NULL,
  217. STATE VARCHAR(16) NOT NULL,
  218. JOB_NAME VARCHAR(60) NULL,
  219. JOB_GROUP VARCHAR(60) NULL,
  220. IS_NONCONCURRENT BOOLEAN NULL,
  221. REQUESTS_RECOVERY BOOLEAN NULL,
  222. PRIMARY KEY (SCHED_NAME,ENTRY_ID))
  223. ENGINE=InnoDB;
  224. CREATE TABLE QRTZ_SCHEDULER_STATE (
  225. SCHED_NAME VARCHAR(60) NOT NULL,
  226. INSTANCE_NAME VARCHAR(60) NOT NULL,
  227. LAST_CHECKIN_TIME BIGINT(19) NOT NULL,
  228. CHECKIN_INTERVAL BIGINT(19) NOT NULL,
  229. PRIMARY KEY (SCHED_NAME,INSTANCE_NAME))
  230. ENGINE=InnoDB;
  231. CREATE TABLE QRTZ_LOCKS (
  232. SCHED_NAME VARCHAR(60) NOT NULL,
  233. LOCK_NAME VARCHAR(40) NOT NULL,
  234. PRIMARY KEY (SCHED_NAME,LOCK_NAME))
  235. ENGINE=InnoDB;
  236. CREATE INDEX IDX_QRTZ_J_REQ_RECOVERY ON QRTZ_JOB_DETAILS(SCHED_NAME,REQUESTS_RECOVERY);
  237. CREATE INDEX IDX_QRTZ_J_GRP ON QRTZ_JOB_DETAILS(SCHED_NAME,JOB_GROUP);
  238. CREATE INDEX IDX_QRTZ_T_J ON QRTZ_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
  239. CREATE INDEX IDX_QRTZ_T_JG ON QRTZ_TRIGGERS(SCHED_NAME,JOB_GROUP);
  240. CREATE INDEX IDX_QRTZ_T_C ON QRTZ_TRIGGERS(SCHED_NAME,CALENDAR_NAME);
  241. CREATE INDEX IDX_QRTZ_T_G ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP);
  242. CREATE INDEX IDX_QRTZ_T_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE);
  243. CREATE INDEX IDX_QRTZ_T_N_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_STATE);
  244. CREATE INDEX IDX_QRTZ_T_N_G_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP,TRIGGER_STATE);
  245. CREATE INDEX IDX_QRTZ_T_NEXT_FIRE_TIME ON QRTZ_TRIGGERS(SCHED_NAME,NEXT_FIRE_TIME);
  246. CREATE INDEX IDX_QRTZ_T_NFT_ST ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE,NEXT_FIRE_TIME);
  247. CREATE INDEX IDX_QRTZ_T_NFT_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME);
  248. CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_STATE);
  249. CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE_GRP ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_GROUP,TRIGGER_STATE);
  250. CREATE INDEX IDX_QRTZ_FT_TRIG_INST_NAME ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME);
  251. CREATE INDEX IDX_QRTZ_FT_INST_JOB_REQ_RCVRY ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME,REQUESTS_RECOVERY);
  252. CREATE INDEX IDX_QRTZ_FT_J_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
  253. CREATE INDEX IDX_QRTZ_FT_JG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_GROUP);
  254. CREATE INDEX IDX_QRTZ_FT_T_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP);
  255. CREATE INDEX IDX_QRTZ_FT_TG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_GROUP);
  256. commit;
  257. ```
  258. # appsettings.json
  259. # 确保一切正常
  260. mysql, redis, teche, techeusr, quartznet, kaiguanapplication
  261. # 局域网网站跑起来
  262. ```
  263. dotnet.exe DD.Local.Web.dll
  264. INSERT INTO kaiguanapplication(NAME, DelFlag) VALUES('照明',0)
  265. ```
  266. # 云端关系数据库添加项目数据库
  267. 在持久化层
  268. - appsettings.json
  269. - GlobalSettings
  270. - DesignTimeDbContextFactoryBase
  271. - dotnet ef datbase update -c ...
  272. # 云端源代码Web层
  273. - appsettings.json
  274. - GlobalSettings.json
  275. - Program.cs
  276. # 云端权限管理后台添加集团和项目
  277. - 管理员登录:13800000000 DrrnFwd2018
  278. - 添加集团:group
  279. - 添加项目:project
  280. - 添加用户:ddaccount
  281. # 云端时序数据库
  282. - 检查状态:systemctl status taosd
  283. - 启动服务:systemctl start taosd
  284. - 修改配置文件:cd /etc/taos/ vim taos.cfg
  285. - 客户端连接TDengine: ./taos.exe -h 47.102.145.164
  286. - 创建数据库:create database reallq_realnuode_5_7;
  287. - 展示所有数据库:show databases;
  288. - 使用某个数据库:use reallq_realnuode_5_7;
  289. # 局域网网站启用云端
  290. - 禁用一些背景线程,比如RealDataToCloud
  291. - 超级表
  292. ```
  293. - superreal
  294. - superrealtj
  295. - superwarning
  296. - superwarningtj
  297. - superdl
  298. ```
  299. - 子表
  300. ```
  301. - real_187ed5314e0c;
  302. - realtj_187ed5314e0c_h; realtj_187ed5314e0c_d; realtj_187ed5314e0c_n;realtj_187ed5314e0c_y;
  303. - warning_187ed5314e0c;
  304. - warningtj_187ed5314e0c_h; warningtj_187ed5314e0c_d; warningtj_187ed5314e0c_n;warningtj_187ed5314e0c_y;
  305. - dl_187ed5314e0c
  306. ```
  307. - 云端同步