德朗6000透析机socket客户端程序通讯
chenyc
2025-04-15 60a1e86b507e6b5251459a553e33635b2c2dc803
优化解析
6个文件已修改
2个文件已添加
4251 ■■■■■ 已修改文件
config.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cycgetlogo.sh 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
error.log 198 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jiexiData.js 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.exe 补丁 | 查看 | 原始文档 | blame | 历史
main.js 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json 3984 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config.json
@@ -3,7 +3,8 @@
        "url": "https://things.icoldchain.cn/device/info/listDevicesByClient",
        "method": "POST",
        "params": {
            "clientCode": "CLIENT1322165008317"
            "clientCode": "CLIENT2111091548002865",
            "productCode":"PRODUCT1602360258716"
        },
        "headers": {
            "Content-Type": "application/json"
cycgetlogo.sh
New file
@@ -0,0 +1,27 @@
#!/bin/bash
# 设置变量
user="chenyc"
start_date="2025-01-01T00:00:00"
end_date="2025-04-01T23:59:59"
# 检查当前目录是否是Git仓库
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
  echo "当前目录不是一个Git仓库。请在Git仓库的根目录下运行此脚本。"
  exit 1
fi
# 获取提交次数
commit_count=$(git log --author="$user" --since="$start_date" --until="$end_date" --pretty=oneline | wc -l)
# 获取代码行数的变化
lines_info=$(git log --author="$user" --since="$start_date" --until="$end_date" --pretty=tformat: --numstat | awk '{ add += $1; del += $2; net += $1 - $2 } END { printf "%s,%s,%s", add, del, net }')
IFS=',' read lines_added lines_deleted lines_changed <<< "$lines_info"
# 输出结果
echo "日期: $start_date ~ $end_date"
echo "用户: $user"
echo "提交次数: $commit_count"
echo "增加的代码行数: $lines_added"
echo "删除的代码行数: $lines_deleted"
echo "净变化的代码行数: $lines_changed"
error.log
@@ -318,3 +318,201 @@
2025-02-21T02:18:56.019Z [info] 阿里云物联网设备 B31AY010 已连接
2025-02-21T02:18:56.021Z [info] 阿里云物联网设备 B31AY012 已连接
2025-02-21T02:18:56.026Z [info] 阿里云物联网设备 C35AD053 已连接
2025-04-01T09:29:04.537Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT1322165008317"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T09:29:06.422Z [info] 2025-04-01 17:29:06 正在尝试连接到 127.0.0.1:3035
2025-04-01T09:29:06.428Z [info] 2025-04-01 17:29:06 正在尝试连接到 127.0.0.1:3034
2025-04-01T09:29:06.434Z [info] 2025-04-01 17:29:06 正在尝试连接到 127.0.0.1:3033
2025-04-01T09:29:06.439Z [info] 2025-04-01 17:29:06 正在尝试连接到 172.17.11.1:8888
2025-04-01T09:29:06.444Z [info] 2025-04-01 17:29:06 正在尝试连接到 192.168.12.168:961
2025-04-01T09:29:06.449Z [error] 2025-04-01 17:29:06 与 127.0.0.1:3035 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3035
2025-04-01T09:29:06.451Z [error] 2025-04-01 17:29:06 与 127.0.0.1:3034 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3034
2025-04-01T09:29:06.452Z [error] 2025-04-01 17:29:06 与 127.0.0.1:3033 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3033
2025-04-01T09:29:06.452Z [warn] 2025-04-01 17:29:06 连接到 127.0.0.1:3033 已关闭。发生错误: true
2025-04-01T09:29:06.453Z [warn] 2025-04-01 17:29:06 将在 60 秒后重试连接...
2025-04-01T09:29:06.454Z [warn] 2025-04-01 17:29:06 连接到 127.0.0.1:3034 已关闭。发生错误: true
2025-04-01T09:29:06.454Z [warn] 2025-04-01 17:29:06 将在 60 秒后重试连接...
2025-04-01T09:29:06.455Z [warn] 2025-04-01 17:29:06 连接到 127.0.0.1:3035 已关闭。发生错误: true
2025-04-01T09:29:06.455Z [warn] 2025-04-01 17:29:06 将在 60 秒后重试连接...
2025-04-01T09:29:06.551Z [info] 阿里云物联网设备 B31AY012 已连接
2025-04-01T09:29:06.554Z [info] 阿里云物联网设备 B31AY010 已连接
2025-04-01T09:29:06.558Z [info] 阿里云物联网设备 C36AE087 已连接
2025-04-01T09:29:06.566Z [info] 阿里云物联网设备 C35AD053 已连接
2025-04-01T09:29:06.568Z [info] 阿里云物联网设备 C33AB070 已连接
2025-04-01T10:33:16.652Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT1322165008317"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T10:33:19.486Z [info] 2025-04-01 18:33:19 正在尝试连接到 127.0.0.1:3035
2025-04-01T10:33:19.492Z [info] 2025-04-01 18:33:19 正在尝试连接到 127.0.0.1:3034
2025-04-01T10:33:19.497Z [info] 2025-04-01 18:33:19 正在尝试连接到 127.0.0.1:3033
2025-04-01T10:33:19.503Z [info] 2025-04-01 18:33:19 正在尝试连接到 172.17.11.1:8888
2025-04-01T10:33:19.509Z [info] 2025-04-01 18:33:19 正在尝试连接到 192.168.12.168:961
2025-04-01T10:33:19.513Z [error] 2025-04-01 18:33:19 与 127.0.0.1:3035 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3035
2025-04-01T10:33:19.514Z [error] 2025-04-01 18:33:19 与 127.0.0.1:3034 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3034
2025-04-01T10:33:19.515Z [error] 2025-04-01 18:33:19 与 127.0.0.1:3033 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3033
2025-04-01T10:33:19.515Z [warn] 2025-04-01 18:33:19 连接到 127.0.0.1:3033 已关闭。发生错误: true
2025-04-01T10:33:19.516Z [warn] 2025-04-01 18:33:19 将在 60 秒后重试连接...
2025-04-01T10:33:19.516Z [warn] 2025-04-01 18:33:19 连接到 127.0.0.1:3034 已关闭。发生错误: true
2025-04-01T10:33:19.517Z [warn] 2025-04-01 18:33:19 将在 60 秒后重试连接...
2025-04-01T10:33:19.517Z [warn] 2025-04-01 18:33:19 连接到 127.0.0.1:3035 已关闭。发生错误: true
2025-04-01T10:33:19.518Z [warn] 2025-04-01 18:33:19 将在 60 秒后重试连接...
2025-04-01T10:33:19.609Z [info] 阿里云物联网设备 C35AD053 已连接
2025-04-01T10:33:19.624Z [info] 阿里云物联网设备 B31AY012 已连接
2025-04-01T10:33:19.628Z [info] 阿里云物联网设备 B31AY010 已连接
2025-04-01T10:33:19.629Z [info] 阿里云物联网设备 C33AB070 已连接
2025-04-01T10:33:19.650Z [info] 阿里云物联网设备 C36AE087 已连接
2025-04-01T10:33:40.551Z [error] 2025-04-01 18:33:40 与 192.168.12.168:961 的连接发生错误: connect ETIMEDOUT 192.168.12.168:961
2025-04-01T10:33:40.552Z [warn] 2025-04-01 18:33:40 连接到 192.168.12.168:961 已关闭。发生错误: true
2025-04-01T10:33:40.552Z [warn] 2025-04-01 18:33:40 将在 60 秒后重试连接...
2025-04-01T10:33:40.566Z [error] 2025-04-01 18:33:40 与 172.17.11.1:8888 的连接发生错误: connect ETIMEDOUT 172.17.11.1:8888
2025-04-01T10:33:40.567Z [warn] 2025-04-01 18:33:40 连接到 172.17.11.1:8888 已关闭。发生错误: true
2025-04-01T10:33:40.567Z [warn] 2025-04-01 18:33:40 将在 60 秒后重试连接...
2025-04-01T10:34:19.526Z [info] 2025-04-01 18:34:19 正在尝试连接到 127.0.0.1:3033
2025-04-01T10:34:19.528Z [info] 2025-04-01 18:34:19 正在尝试连接到 127.0.0.1:3034
2025-04-01T10:34:19.528Z [info] 2025-04-01 18:34:19 正在尝试连接到 127.0.0.1:3035
2025-04-01T10:34:19.529Z [error] 2025-04-01 18:34:19 与 127.0.0.1:3033 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3033
2025-04-01T10:34:19.529Z [error] 2025-04-01 18:34:19 与 127.0.0.1:3034 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3034
2025-04-01T10:34:19.529Z [error] 2025-04-01 18:34:19 与 127.0.0.1:3035 的连接发生错误: connect ECONNREFUSED 127.0.0.1:3035
2025-04-01T10:34:19.530Z [warn] 2025-04-01 18:34:19 连接到 127.0.0.1:3035 已关闭。发生错误: true
2025-04-01T10:34:19.530Z [warn] 2025-04-01 18:34:19 将在 60 秒后重试连接...
2025-04-01T10:34:19.530Z [warn] 2025-04-01 18:34:19 连接到 127.0.0.1:3034 已关闭。发生错误: true
2025-04-01T10:34:19.530Z [warn] 2025-04-01 18:34:19 将在 60 秒后重试连接...
2025-04-01T10:34:19.530Z [warn] 2025-04-01 18:34:19 连接到 127.0.0.1:3033 已关闭。发生错误: true
2025-04-01T10:34:19.530Z [warn] 2025-04-01 18:34:19 将在 60 秒后重试连接...
2025-04-01T10:34:32.376Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T10:34:32.997Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T10:34:43.501Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T10:35:03.640Z [info] 2025-04-01 18:35:03 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:35:03.644Z [info] 2025-04-01 18:35:03 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:35:03.779Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T10:35:03.780Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T10:35:24.692Z [error] 2025-04-01 18:35:24 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:35:24.693Z [warn] 2025-04-01 18:35:24 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:35:24.693Z [warn] 2025-04-01 18:35:24 将在 60 秒后重试连接...
2025-04-01T10:35:24.694Z [error] 2025-04-01 18:35:24 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:35:24.695Z [warn] 2025-04-01 18:35:24 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:35:24.695Z [warn] 2025-04-01 18:35:24 将在 60 秒后重试连接...
2025-04-01T10:36:24.704Z [info] 2025-04-01 18:36:24 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:36:24.705Z [info] 2025-04-01 18:36:24 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:36:45.753Z [error] 2025-04-01 18:36:45 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:36:45.754Z [warn] 2025-04-01 18:36:45 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:36:45.754Z [warn] 2025-04-01 18:36:45 将在 60 秒后重试连接...
2025-04-01T10:36:45.754Z [error] 2025-04-01 18:36:45 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:36:45.755Z [warn] 2025-04-01 18:36:45 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:36:45.755Z [warn] 2025-04-01 18:36:45 将在 60 秒后重试连接...
2025-04-01T10:37:45.764Z [info] 2025-04-01 18:37:45 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:37:45.765Z [info] 2025-04-01 18:37:45 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:38:06.789Z [error] 2025-04-01 18:38:06 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:38:06.790Z [warn] 2025-04-01 18:38:06 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:38:06.790Z [warn] 2025-04-01 18:38:06 将在 60 秒后重试连接...
2025-04-01T10:38:06.791Z [error] 2025-04-01 18:38:06 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:38:06.791Z [warn] 2025-04-01 18:38:06 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:38:06.792Z [warn] 2025-04-01 18:38:06 将在 60 秒后重试连接...
2025-04-01T10:39:06.800Z [info] 2025-04-01 18:39:06 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:39:06.801Z [info] 2025-04-01 18:39:06 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:39:27.843Z [error] 2025-04-01 18:39:27 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:39:27.843Z [warn] 2025-04-01 18:39:27 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:39:27.843Z [warn] 2025-04-01 18:39:27 将在 60 秒后重试连接...
2025-04-01T10:39:27.844Z [error] 2025-04-01 18:39:27 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:39:27.844Z [warn] 2025-04-01 18:39:27 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:39:27.845Z [warn] 2025-04-01 18:39:27 将在 60 秒后重试连接...
2025-04-01T10:40:27.847Z [info] 2025-04-01 18:40:27 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:40:27.848Z [info] 2025-04-01 18:40:27 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:40:48.888Z [error] 2025-04-01 18:40:48 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:40:48.889Z [warn] 2025-04-01 18:40:48 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:40:48.889Z [warn] 2025-04-01 18:40:48 将在 60 秒后重试连接...
2025-04-01T10:40:48.890Z [error] 2025-04-01 18:40:48 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:40:48.890Z [warn] 2025-04-01 18:40:48 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:40:48.891Z [warn] 2025-04-01 18:40:48 将在 60 秒后重试连接...
2025-04-01T10:41:48.895Z [info] 2025-04-01 18:41:48 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:41:48.896Z [info] 2025-04-01 18:41:48 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:42:09.930Z [error] 2025-04-01 18:42:09 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:42:09.931Z [warn] 2025-04-01 18:42:09 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:42:09.931Z [warn] 2025-04-01 18:42:09 将在 60 秒后重试连接...
2025-04-01T10:42:09.932Z [error] 2025-04-01 18:42:09 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:42:09.932Z [warn] 2025-04-01 18:42:09 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:42:09.933Z [warn] 2025-04-01 18:42:09 将在 60 秒后重试连接...
2025-04-01T10:43:09.937Z [info] 2025-04-01 18:43:09 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:43:09.938Z [info] 2025-04-01 18:43:09 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:43:30.972Z [error] 2025-04-01 18:43:30 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:43:30.973Z [warn] 2025-04-01 18:43:30 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:43:30.973Z [warn] 2025-04-01 18:43:30 将在 60 秒后重试连接...
2025-04-01T10:43:30.974Z [error] 2025-04-01 18:43:30 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:43:30.974Z [warn] 2025-04-01 18:43:30 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:43:30.974Z [warn] 2025-04-01 18:43:30 将在 60 秒后重试连接...
2025-04-01T10:44:30.978Z [info] 2025-04-01 18:44:30 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:44:30.979Z [info] 2025-04-01 18:44:30 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:44:52.018Z [error] 2025-04-01 18:44:52 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:44:52.018Z [warn] 2025-04-01 18:44:52 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:44:52.019Z [warn] 2025-04-01 18:44:52 将在 60 秒后重试连接...
2025-04-01T10:44:52.019Z [error] 2025-04-01 18:44:52 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:44:52.020Z [warn] 2025-04-01 18:44:52 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:44:52.020Z [warn] 2025-04-01 18:44:52 将在 60 秒后重试连接...
2025-04-01T10:45:52.026Z [info] 2025-04-01 18:45:52 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:45:52.028Z [info] 2025-04-01 18:45:52 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:45:58.084Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/client/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T10:46:05.076Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/client/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T10:46:52.846Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T10:47:15.117Z [info] 2025-04-01 18:47:15 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:47:15.122Z [info] 2025-04-01 18:47:15 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:47:15.310Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T10:47:16.353Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T10:47:36.149Z [error] 2025-04-01 18:47:36 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:47:36.150Z [warn] 2025-04-01 18:47:36 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:47:36.151Z [warn] 2025-04-01 18:47:36 将在 60 秒后重试连接...
2025-04-01T10:47:36.151Z [error] 2025-04-01 18:47:36 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:47:36.152Z [warn] 2025-04-01 18:47:36 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:47:36.153Z [warn] 2025-04-01 18:47:36 将在 60 秒后重试连接...
2025-04-01T10:48:36.157Z [info] 2025-04-01 18:48:36 正在尝试连接到 192.1.1.10:60000
2025-04-01T10:48:36.158Z [info] 2025-04-01 18:48:36 正在尝试连接到 192.1.1.11:60000
2025-04-01T10:48:57.191Z [error] 2025-04-01 18:48:57 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T10:48:57.192Z [warn] 2025-04-01 18:48:57 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T10:48:57.192Z [warn] 2025-04-01 18:48:57 将在 60 秒后重试连接...
2025-04-01T10:48:57.222Z [error] 2025-04-01 18:48:57 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T10:48:57.223Z [warn] 2025-04-01 18:48:57 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T10:48:57.223Z [warn] 2025-04-01 18:48:57 将在 60 秒后重试连接...
2025-04-01T10:50:11.473Z [info] 获取文件 C:\snapshot\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:05:06.456Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:05:24.423Z [info] 2025-04-01 19:05:24 正在尝试连接到 192.1.1.11:60000
2025-04-01T11:05:24.429Z [info] 2025-04-01 19:05:24 正在尝试连接到 192.1.1.10:60000
2025-04-01T11:05:24.537Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T11:05:24.541Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T11:05:36.201Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865","productCode":""},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:05:54.274Z [info] 2025-04-01 19:05:54 正在尝试连接到 192.1.1.11:60000
2025-04-01T11:05:54.280Z [info] 2025-04-01 19:05:54 正在尝试连接到 192.1.1.10:60000
2025-04-01T11:05:54.446Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T11:05:54.448Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T11:06:11.696Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865","productCode":"PRODUCT1602360258716"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:06:12.624Z [info] 2025-04-01 19:06:12 正在尝试连接到 192.1.1.11:60000
2025-04-01T11:06:12.630Z [info] 2025-04-01 19:06:12 正在尝试连接到 192.1.1.10:60000
2025-04-01T11:06:12.750Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T11:06:12.758Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T11:06:18.322Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865","productCode":"PRODUCT1602360258716"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:06:19.411Z [info] 2025-04-01 19:06:19 正在尝试连接到 192.1.1.11:60000
2025-04-01T11:06:19.416Z [info] 2025-04-01 19:06:19 正在尝试连接到 192.1.1.10:60000
2025-04-01T11:06:19.530Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T11:06:19.537Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T11:06:40.442Z [error] 2025-04-01 19:06:40 与 192.1.1.11:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.11:60000
2025-04-01T11:06:40.443Z [error] 2025-04-01 19:06:40 与 192.1.1.10:60000 的连接发生错误: connect ETIMEDOUT 192.1.1.10:60000
2025-04-01T11:06:40.444Z [warn] 2025-04-01 19:06:40 连接到 192.1.1.10:60000 已关闭。发生错误: true
2025-04-01T11:06:40.444Z [warn] 2025-04-01 19:06:40 将在 60 秒后重试连接...
2025-04-01T11:06:40.445Z [warn] 2025-04-01 19:06:40 连接到 192.1.1.11:60000 已关闭。发生错误: true
2025-04-01T11:06:40.446Z [warn] 2025-04-01 19:06:40 将在 60 秒后重试连接...
2025-04-01T11:30:50.935Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865","productCode":"PRODUCT1602360258716"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:30:51.827Z [info] 2025-04-01 19:30:51 正在尝试连接到 192.1.1.11:60000
2025-04-01T11:30:51.833Z [info] 2025-04-01 19:30:51 正在尝试连接到 192.1.1.10:60000
2025-04-01T11:30:51.946Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T11:30:51.956Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T11:30:54.521Z [info] 获取文件 D:\gitData\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865","productCode":"PRODUCT1602360258716"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:30:55.417Z [info] 2025-04-01 19:30:55 正在尝试连接到 192.1.1.11:60000
2025-04-01T11:30:55.422Z [info] 2025-04-01 19:30:55 正在尝试连接到 192.1.1.10:60000
2025-04-01T11:30:55.814Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T11:30:55.837Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T11:45:00.465Z [info] 获取文件 C:\snapshot\DORA-6000Communication\config.json地址,{"http":{"url":"https://things.icoldchain.cn/device/info/listDevicesByClient","method":"POST","params":{"clientCode":"CLIENT2111091548002865","productCode":"PRODUCT1602360258716"},"headers":{"Content-Type":"application/json"}}}
2025-04-01T11:45:04.879Z [info] 2025-04-01 19:45:04 正在尝试连接到 192.1.1.11:60000
2025-04-01T11:45:04.885Z [info] 2025-04-01 19:45:04 正在尝试连接到 192.1.1.10:60000
2025-04-01T11:45:04.889Z [info] 2025-04-01 19:45:04 正在尝试连接到 192.1.1.18:60000
2025-04-01T11:45:04.893Z [info] 2025-04-01 19:45:04 正在尝试连接到 192.1.1.19:60000
2025-04-01T11:45:04.898Z [info] 2025-04-01 19:45:04 正在尝试连接到 192.168.1.200:60000
2025-04-01T11:45:05.012Z [info] 阿里云物联网设备 230801000429 已连接
2025-04-01T11:45:05.014Z [info] 阿里云物联网设备 230801000432 已连接
2025-04-01T11:45:05.019Z [info] 阿里云物联网设备 230801000433 已连接
2025-04-01T11:45:05.029Z [info] 阿里云物联网设备 230801000414 已连接
2025-04-01T11:45:05.061Z [info] 阿里云物联网设备 230801000424 已连接
jiexiData.js
@@ -16,6 +16,18 @@
    let data5 = (buf[index1] << 24) | (buf[index2] << 16) | (buf[index3] << 8) | buf[index4];
    return data5;
  }
  /**解析数据10 */
const parseData10=(buf,index1,index2,index3,index4)=> {
    let data5 = (buf[index1] << 24) | (buf[index2] << 16) | (buf[index3] << 8) | buf[index4];
    return (data5 / 10).toFixed(1);;
  }
  /**解析数据100 */
const parseData100=(buf,index1,index2,index3,index4)=> {
    let data5 = (buf[index1] << 24) | (buf[index2] << 16) | (buf[index3] << 8) | buf[index4];
    return (data5 / 100).toFixed(2);;
  }
  /**
   * 
@@ -25,18 +37,18 @@
const funToModel=(data)=>{
    const row=data
    const msgBody={
        A: parseData(row,5,6,7,8),
        B: parseData(row,9,10,11,12),
        A: parseData100(row,5,6,7,8),
        B: parseData100(row,9,10,11,12),
        //脱水速率
        C: parseData(row,13,14,15,16),
        C: parseData100(row,13,14,15,16),
        //血泵流量设定
        xlllsd: parseData(row,17,18,19,20),
        //透析液流量
        L: parseData(row,21,22,23,24),
        //透析液温度
        F: parseData(row,25,26,27,28),
        F: parseData10(row,25,26,27,28),
        //电导度
        G: parseData(row,29,30,31,32),
        G: parseData100(row,29,30,31,32),
        //静脉压
        H: parseData(row,33,34,35,36),
        //透析液压
@@ -46,9 +58,9 @@
        //透析时间
        K: parseData(row,45,46,47,48),
        //肝素泵流量
        E: parseData(row,49,50,51,52),
        E: parseData10(row,49,50,51,52),
        //累计注射量
        X: parseData(row,53,54,55,56),
        X: parseData100(row,53,54,55,56),
        //报警编号
        bjbh: parseData(row,57,58,59,60),
        //剩余时间
main.exe
Binary files differ
main.js
@@ -62,7 +62,7 @@
            if(data[0]==103&&data[1]===137&&data.length===86&&jyma===data[85]){
                try{
                    const mode=funToModel(data)
                    iotClient?.postProps(mode)
                    iotClient.postProps(mode)
                }catch(error){
                    console.log('数据解析有误')
                }
@@ -128,16 +128,16 @@
            //         '阿里云物联网平台Secrect': '7dd8aaabae652f10ff7ab4410eda05dd'
            //       }
            // ]
            const servers=res?.data?.设备列表
            const servers=res.data.设备列表
            console.log('获取到客户设备信息')
            console.log(servers)
            servers.forEach(server => {
                if(server.阿里云物联网平台ProductKey==='k08fz9VK3Q8'){
                    const IP设置=JSON.parse(server.IP设置)
                    const ser={
                        host: IP设置?.ip,
                        port: IP设置?.port,
                        interval: IP设置?.interval*1000,
                        host: IP设置.ip,
                        port: IP设置.port,
                        interval: IP设置.interval*1000,
                        retryCount: 0,
                        maxRetries: 5,
                        iotConfig: {
package-lock.json
Diff too large
package.json
@@ -19,11 +19,10 @@
  "dependencies": {
    "aliyun-iot-device-sdk": "^1.0.1",
    "axios": "^1.7.9",
    "winston": "^3.17.0"
    "winston": "^3.2.1"
  },
  "devDependencies": {
    "@vercel/ncc": "^0.38.3",
    "nexe": "^4.0.0-rc.6",
    "nodemon": "^3.1.9"
  }
}