鼎鼎知识库
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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