摘要: esp32 dev module模拟modbus TCP,SDK版本:2.0.9 #include <WiFi.h> const char* ssid = ""; const char* password = "dfdde"; const char* host = "112.12.130.23"; 阅读全文
posted @ 2026-08-31 22:09 txwtech 阅读(2) 评论(0) 推荐(0)
摘要: esp8266模拟modbus TCP #include <ESP8266WiFi.h> const char* ssid = "xxxx"; const char* password = "xxdfdf@"; const char* host = "112.12.130.23"; #define 阅读全文
posted @ 2026-08-30 20:41 txwtech 阅读(2) 评论(0) 推荐(0)
摘要: v4l2-ctl --verbose -d /dev/video11 --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap=4 --set-selection=target=crop,flags=0,top=0 阅读全文
posted @ 2026-08-27 14:59 txwtech 阅读(4) 评论(0) 推荐(0)
摘要: 十六进制报文解析 报文 1:08 20 20 20 20 20 30 2E 30 36 0D 报文 2:08 20 20 20 35 30 30 2E 31 5C 0D ASCII 解码规则:0x20= 空格,0x0D= 回车\r,0x2E= 小数点. 报文 1 拆解 表格 HEX082020202 阅读全文
posted @ 2026-08-27 10:34 txwtech 阅读(8) 评论(0) 推荐(0)
摘要: D:\libmodbus\src\win32\x64\Debug,原始编译,源码modbus-9.sln编译msvc x64版本,链接器-》输入,添加:ws2_32.lib 属性-》常规,常规属性:配置类型,动态库.dll c/c++,常规:将告警视为错误:否(/WX-) libmodbus 下载地 阅读全文
posted @ 2026-08-23 20:28 txwtech 阅读(12) 评论(0) 推荐(0)
摘要: qt调用libmodbus读取数据报错 Bad file descriptor, 默认: 发送:00 01 00 00 00 06 FF 01 00 00 00 01 , device id:是FF,是255, 连接的远程设备:一般是1开始 std::unique_ptr<modbus_t, Mod 阅读全文
posted @ 2026-08-22 09:02 txwtech 阅读(2) 评论(0) 推荐(0)
摘要: msys2-base-x86_64-20240507.sfx.exe 执行后解压到哪里了? msys2-base-x86_64-20240507.sfx.exe的相同目录的msys64文件夹 https://mirrors.aliyun.com/msys2/distrib/x86_64/ 1、解压位 阅读全文
posted @ 2026-08-21 08:20 txwtech 阅读(15) 评论(0) 推荐(0)
摘要: #ifndef _H #define CAMERAGST_H #include <QObject> #include <QThread> class CameraGst : public QObject { Q_OBJECT public: explicit CameraGst(QObject *p 阅读全文
posted @ 2026-08-17 14:43 txwtech 阅读(3) 评论(0) 推荐(0)
摘要: # Qt 5.15 arm64 ubuntu20.04 交叉编译环境 Firefly Qt5.15 , 运行环境 * Host(x86 PC) : ubuntu 20.04 x86_64 * Target(RK356X): ubuntu 20.04 arm64 ## 主机环境部署 ```shell$ 阅读全文
posted @ 2026-08-12 07:45 txwtech 阅读(21) 评论(0) 推荐(0)
摘要: qt qss样式文件示例 /* 深色主题(Dark Theme)完整样式表 配色方案:深灰底 + 浅灰字 + 蓝强调色 */ /* 全局基础样式 */ * { background: #1E1E1E; color: #E0E0E0; selection-background-color: #409E 阅读全文
posted @ 2026-08-05 10:01 txwtech 阅读(22) 评论(0) 推荐(0)