上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 33 下一页
摘要: # 根据预定的csv数据自动回复 import time import numpy as np import pandas as pd # 匹配回复数据 from uiautomation import WindowControl # 用于Windows GUI自动化 target_name = " 阅读全文
posted @ 2024-12-24 10:36 CHHC 阅读(603) 评论(0) 推荐(0)
摘要: package main import ( "bytes" "compress/gzip" "encoding/json" "fmt" "io" "log" ) // User 结构体定义 type User struct { ID int `json:"id"` Name string `json 阅读全文
posted @ 2024-12-18 15:09 CHHC 阅读(99) 评论(0) 推荐(0)
摘要: 电表模拟器 97协议测试 07协议测试 private void btnSend_Click(object sender, EventArgs e) { string addr = txtAddr.Text.Trim(); string data = txtDataFlg.Text.Trim(); 阅读全文
posted @ 2024-12-13 14:43 CHHC 阅读(236) 评论(0) 推荐(1)
摘要: appsettings.json { "AllowedHosts": "*", "AppSettings": { "WebPort": 5001 } } Program.cs using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions 阅读全文
posted @ 2024-12-10 08:38 CHHC 阅读(191) 评论(0) 推荐(0)
摘要: 代码调试 1. 安装VSCode 2. VSCode扩展添加(C/C++ Extension Pack ;Code Runner) 3. 安装gcc(MinGW-W64)并配置环境变量 ,验证:gcc -v windowgcc -o hello.exe hello.c linuxgcc -o hel 阅读全文
posted @ 2024-12-05 15:09 CHHC 阅读(86) 评论(0) 推荐(0)
摘要: 带串口设置监视字节流数据stty -F /dev/ttyS1 921600 cs8 -cstopb -parenb cat /dev/ttyS1 | hexdump -C 默认监视(9600,N,8,1)字符串数据cat /dev/ttyS2 输出保存cat /dev/ttyS1 | hexdump 阅读全文
posted @ 2024-11-29 15:08 CHHC 阅读(128) 评论(0) 推荐(0)
摘要: 应用场景 电池船数据上报频次:航行中 1次/30秒,不航行 1次/1小时 电池簇数据上报频次:工作中 1次/1秒,不工作 不上报 main.go package main import ( "fmt" "os" "os/signal" "syscall" "ticker/util" "time" ) 阅读全文
posted @ 2024-11-27 11:37 CHHC 阅读(67) 评论(0) 推荐(0)
摘要: 开发板信息 编译环境 安装go环境sudo apt-get install golang 安装交叉编译工具链sudo apt-get install gcc-arm-linux-gnueabihf go versionarm-linux-gnueabihf-gcc -v 编译脚本 (build.sh 阅读全文
posted @ 2024-11-23 09:16 CHHC 阅读(693) 评论(0) 推荐(0)
摘要: 编译 Go 应用程序 go build -ldflags="-s -w" -o myapp.exe . 使用 UPX 压缩可执行文件(window下载并设置环境变量) upx --best --lzma myapp.exe 可从10M压缩到1M @echo off REM Set Go enviro 阅读全文
posted @ 2024-11-19 11:43 CHHC 阅读(103) 评论(0) 推荐(0)
摘要: 按启动时间 1. 修改启动文件 root@OpenWrt:~# vi /etc/rc.local # Put your custom commands here that should be executed once # the system init finished. By default t 阅读全文
posted @ 2024-11-19 09:53 CHHC 阅读(369) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 33 下一页