kepserver-IoTgateway-发送mqtt中文数据乱码:完结篇
ccwgpt 2025-01-10 12:14 217 浏览 0 评论
日志:
日期 时间 级别 源 事件
2024/12/05 9:03:27 信息 KEPServerEX\IoT Gateway Running with Java 1.8.0_291 [Oracle Corporation Java HotSpot(TM) Client VM version 25.291-b10].
2024/12/05 9:03:35 信息 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' is connected to broker 'tcp://103'
可以看出,乱码是Java 1.8.0_291发送信息的问题
所以给kepserver加一个启动参数(刮开无效)
-Dfile.encoding=UTF-8
接收方,显示正常:
日期 时间 级别 源 事件
2024/12/05 10:50:59 错误 IoT Gateway Failed to connect to server: '127.0.0.1:57212'. Please verify this connection information is correct and that the host can be reached.
日期 时间 级别 源 事件
2024/12/04 17:18:04 错误 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' failed to connect - reason: '错误的用户名或密码'.
2024/12/04 17:18:36 信息 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' is connected to broker 'tcp://1883'
2024/12/04 17:25:55 信息 KEPServerEX\Runtime MQTT agent 'Agent' is connected to broker 'tcp://122.128.2.18:1883'
2024/12/05 1:00:22 错误 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' disconnected - reason 'Read timed out'
2024/12/05 1:00:23 信息 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' is connected to broker 'tcp://1.2:1883'
2024/12/05 1:00:23 错误 KEPServerEX\Runtime MQTT agent 'Agent' disconnected - reason 'Read timed out'
2024/12/05 1:00:23 错误 KEPServerEX\Runtime MQTT agent 'Agent' failed to publish - reason: '已断开连接'.
2024/12/05 1:00:24 信息 KEPServerEX\Runtime MQTT agent 'Agent' is connected to broker 'tcp://122.128.2.18:1883'
2024/12/05 1:00:58 错误 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' disconnected - reason 'Read timed out'
2024/12/05 1:00:59 信息 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' is connected to broker 'tcp://12:83'
2024/12/05 9:02:55 信息 KEPServerEX\IoT Gateway IoT Gateway service stopping.
2024/12/05 9:03:23 信息 KEPServerEX\Runtime Kepware Industrial Connectivity Platform 6.5
2024/12/05 9:03:26 信息 KEPServerEX\IoT Gateway IoT Gateway service starting.
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Simulator 设备驱动程序加载成功。
2024/12/05 9:03:26 信息 KEPServerEX\Runtime 运行时服务已启动。
2024/12/05 9:03:26 信息 KEPServerEX\Runtime 正在启动 Simulator 设备驱动程序。
2024/12/05 9:03:26 信息 Simulator Simulator 设备驱动程序 'V6.5.829.0'
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Advanced Tags Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Data Logger Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Alarms & Events Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime SNMP Agent Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Media Level Redundancy Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime EFM Exporter V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Connection Sharing Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Security Policies Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Local Historian Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime IDF for Splunk V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime Scheduler Plug-in V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\Runtime IoT Gateway V6.5.829.0
2024/12/05 9:03:26 信息 KEPServerEX\IoT Gateway IoT Gateway using JRE at [C:\Java\java].
2024/12/05 9:03:27 信息 KEPServerEX\IoT Gateway Running with Java 1.8.0_291 [Oracle Corporation Java HotSpot(TM) Client VM version 25.291-b10].
2024/12/05 9:03:35 信息 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' is connected to broker 'tcp://1:83'
2024/12/05 9:03:37 信息 KEPServerEX\Runtime MQTT agent 'Agent' is connected to broker 'tcp://122.128.2.18:1883'
2024/12/05 9:20:33 安全性 KEPServerEX\Runtime 配置会话由 shheng_os as Default User (R/W) 启动。
2024/12/05 10:50:55 信息 KEPServerEX\IoT Gateway IoT Gateway service stopping.
2024/12/05 10:50:58 信息 KEPServerEX\IoT Gateway IoT Gateway service starting.
2024/12/05 10:50:58 信息 KEPServerEX\IoT Gateway IoT Gateway using JRE at [C:\Java\java].
2024/12/05 10:50:58 信息 KEPServerEX\IoT Gateway Running with Java 1.8.0_291 [Oracle Corporation Java HotSpot(TM) Client VM version 25.291-b10].
2024/12/05 10:50:59 错误 IoT Gateway Failed to connect to server: '127.0.0.1:57212'. Please verify this connection information is correct and that the host can be reached.
2024/12/05 10:51:04 信息 IoT Gateway Connection restored to server: '127.0.0.1:57212'. Reinitializing server configuration.
2024/12/05 10:51:07 信息 KEPServerEX\Runtime MQTT agent 'kep-mqtt-2' is connected to broker 'tcp://1.2:83'
2024/12/05 10:51:09 信息 KEPServerEX\Runtime MQTT agent 'Agent' is connected to broker 'tcp://122.128.2.18:1883'
[ {"device": "simulator1.device1.kaiguanliang", "values": 0, "timestamp": 1733295768945 } , {"device": "simulator1.device1.tag1", "values": 67, "timestamp": 1733295768945 } , {"device": "simulator1.device1.???????tag", "values": 191, "timestamp": 1733295768945 } , {"device": "???????????.16 λ?豸.R ?????.Double2", "values": 2641.25, "timestamp": 1733295769259 } ]
{ "msg": "120", "msg10": "1d", "msg9": "9" }
{"device": "simulator1.device1.kaiguanliang", "values": 1, "timestamp": 1733295956943 } ,
{"device": "simulator1.device1.tag1", "values": 99, "timestamp": 1733295956943 } ,
{"device": "simulator1.device1.???????tag", "values": 229, "timestamp": 1733295956943 } ,
{"device": "???????????.16 λ?豸.R ?????.Double2", "values": 4791.25, "timestamp": 1733295957289 }
{ "timestamp": 1733300044982, "values": [ {"id": "simulator1.device1.kaiguanliang", "v": 0, "q": true, "t": 1733300042949 } ,
{"id": "simulator1.device1.汉字tag", "v": 46, "q": true, "t": 1733300044941 } , {"id": "simulator1.device1.tag1", "v": 79, "q": true, "t": 1733300044941 } ] }
{
"msg": "120",
"msg10": "1d",
"msg9": "9"
}
{"id": "simulator1.device1.kaiguanliang", "v": 1, "q": true, "t": 1733301692949 } , {"id": "simulator1.device1.???????tag", "v": 375, "q": true, "t": 1733301692949 } , {"id": "simulator1.device1.tag1", "v": 91, "q": true, "t": 1733301692949 } , {"id": "simulator1.device1.tag1", "v": 55, "q": true, "t": 1733301693948 } , {"id": "simulator1.device1.???????tag", "v": 375, "q": true, "t": 1733301693948 } , {"id": "simulator1.device1.???????tag", "v": 376, "q": true, "t": 1733301694943 } , {"id": "simulator1.device1.tag1", "v": 87, "q": true, "t": 1733301694943 } , {"id": "simulator1.device1.kaiguanliang", "v": 0, "q": true, "t": 1733301694943 }
{
"simulator1.device1.kaiguanliang":"111",
"simulator1.device1.???????tag":""
}
{
|#each VALUES|
"|TAGNAME|": |VALUE| |#unless @last|,|/unless|
|/each|
}
{
"simulator1.device1.kaiguanliang":"111",
"simulator1.device1. ? tag":""
}
}
{
"time":"123",
"value":
{
|#each VALUES|
"|TAGNAME|": |VALUE| |#unless @last|,|/unless|
|/each|
}
}
kepiot-pack{"timestamp":1733303926021,"values":[{"id":"simulator1.device1.tag1","v":59,"q":true,"t":1733303925951}]}
{
"timestamp": |SERVERTIMESTAMP|,
"values": [
|#each VALUES|
{"id": "|TAGNAME|", "v": |VALUE|, "q": |QUALITY|, "t": |TIMESTAMP| } |#unless @last|,|/unless|
|/each|
]
}
相关推荐
- 一个基于.Net Core遵循Clean Architecture原则开源架构
-
今天给大家推荐一个遵循CleanArchitecture原则开源架构。项目简介这是基于Asp.netCore6开发的,遵循CleanArchitecture原则,可以高效、快速地构建基于Ra...
- AI写代码翻车无数次,我发现只要提前做好这3步,bug立减80%
-
写十万行全是bug之后终于找到方法了开发"提示词管理助手"新版本那会儿,我差点被bug整崩溃。刚开始两周,全靠AI改代码架构,结果十万行程序漏洞百出。本来以为AI说没问题就稳了,结果...
- OneCode低代码平台的事件驱动设计:架构解析与实践
-
引言:低代码平台的事件驱动范式在现代软件开发中,事件驱动架构(EDA)已成为构建灵活、松耦合系统的核心范式。OneCode低代码平台通过创新性的注解驱动设计,将事件驱动理念深度融入平台架构,实现了业务...
- 国内大厂AI插件评测:根据UI图生成Vue前端代码
-
在IDEA中安装大厂的AI插件,打开ruoyi增强项目:yudao-ui-admin-vue31.CodeBuddy插件登录腾讯的CodeBuddy后,大模型选择deepseek-v3,输入提示语:...
- AI+低代码技术揭秘(二):核心架构
-
本文档介绍了为VTJ低代码平台提供支持的基本架构组件,包括Engine编排层、Provider服务系统、数据模型和代码生成管道。有关UI组件库和widget系统的信息,请参阅UI...
- GitDiagram用AI把代码库变成可视化架构图
-
这是一个名为gitdiagram的开源工具,可将GitHub仓库实时转换为交互式架构图,帮助开发者快速理解代码结构。核心功能一键可视化:替换GitHubURL中的"hub...
- 30天自制操作系统:第六天:代码架构整理与中断处理
-
1.拆开bootpack.c文件。根据设计模式将对应的功能封装成独立的文件。2.初始化pic:pic(可编程中断控制器):在设计上,cpu单独只能处理一个中断。而pic是将8个中断信号集合成一个中断...
- AI写代码越帮越忙?2025年研究揭露惊人真相
-
近年来,AI工具如雨后春笋般涌现,许多人开始幻想程序员的未来就是“对着AI说几句话”,就能轻松写出完美的代码。然而,2025年的一项最新研究却颠覆了这一期待,揭示了一个令人意外的结果。研究邀请了16位...
- 一键理解开源项目:两个自动生成GitHub代码架构图与说明书工具
-
一、GitDiagram可以一键生成github代码仓库的架构图如果想要可视化github开源项目:https://github.com/luler/reflex_ai_fast,也可以直接把域名替换...
- 5分钟掌握 c# 网络通讯架构及代码示例
-
以下是C#网络通讯架构的核心要点及代码示例,按协议类型分类整理:一、TCP协议(可靠连接)1.同步通信//服务器端usingSystem.Net.Sockets;usingTcpListene...
- 从复杂到优雅:用建造者和责任链重塑代码架构
-
引用设计模式是软件开发中的重要工具,它为解决常见问题提供了标准化的解决方案,提高了代码的可维护性和可扩展性,提升了开发效率,促进了团队协作,提高了软件质量,并帮助开发者更好地适应需求变化。通过学习和应...
- 低代码开发当道,我还需要学习LangChain这些框架吗?| IT杂谈
-
专注LLM深度应用,关注我不迷路前两天有位兄弟问了个问题:当然我很能理解这位朋友的担忧:期望效率最大化,时间用在刀刃上,“不要重新发明轮子”嘛。铺天盖地的AI信息轰炸与概念炒作,很容易让人浮躁与迷茫。...
- 框架设计并不是简单粗暴地写代码,而是要先弄清逻辑
-
3.框架设计3.框架设计本节我们要开发一个UI框架,底层以白鹭引擎为例。框架设计的第一步并不是直接撸代码,而是先想清楚设计思想,抽象。一个一个的UI窗口是独立的吗?不是的,...
- 大佬用 Avalonia 框架开发的 C# 代码 IDE
-
AvalonStudioAvalonStudio是一个开源的跨平台的开发编辑器(IDE),AvalonStudio的目标是成为一个功能齐全,并且可以让开发者快速使用的IDE,提高开发的生产力。A...
- 轻量级框架Lagent 仅需20行代码即可构建自己的智能代理
-
站长之家(ChinaZ.com)8月30日消息:Lagent是一个专注于基于LLM模型的代理开发的轻量级框架。它的设计旨在简化和提高这种模型下代理的开发效率。LLM模型是一种强大的工具,可以...
你 发表评论:
欢迎- 一周热门
- 最近发表
- 标签列表
-
- 框架图 (58)
- flask框架 (53)
- quartz框架 (51)
- abp框架 (47)
- springmvc框架 (49)
- 分布式事务框架 (65)
- scrapy框架 (56)
- shiro框架 (61)
- 定时任务框架 (56)
- java日志框架 (61)
- mfc框架 (52)
- abb框架断路器 (48)
- beego框架 (52)
- java框架spring (58)
- grpc框架 (65)
- tornado框架 (48)
- 前端框架bootstrap (54)
- orm框架有哪些 (51)
- 知识框架图 (52)
- ppt框架 (55)
- 框架图模板 (59)
- 内联框架 (52)
- cad怎么画框架 (58)
- ssm框架实现登录注册 (49)
- oracle字符串长度 (48)