会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
天翔鸟
博客园
首页
新随笔
联系
订阅
管理
2025年7月17日
嵌入式设备日志通过python实现telnet登录后过滤输出
摘要: from telnetlib import Telnet def get_filtered_device_info(host, username, password): try: tn = Telnet(host) # 登录 output = tn.read_until(b"stb login: "
阅读全文
posted @ 2025-07-17 21:10 天翔鸟
阅读(3)
评论(0)
推荐(0)
2025年6月16日
python串口多线程收发
摘要: import serial import threading class ComClass: def __init__(self,port,baud): self.port = port self.baud = baud self.comSerial = None self.run = False
阅读全文
posted @ 2025-06-16 06:59 天翔鸟
阅读(72)
评论(0)
推荐(0)
2025年2月26日
HEX字符串转16进制数据
摘要: 原始数据: 0126420527000001003018B2E2CAD4CDA8B5BCD2BBCCE5C4A3BFE9CFFBCFA2B2A5B7A2 使用 Notepad++ 替换功能,查找模式:正则表达式 查找目标:([0-9a-fA-F]{2}) 替换为:,0x\1 替换结果: 0x01,0
阅读全文
posted @ 2025-02-26 13:55 天翔鸟
阅读(73)
评论(0)
推荐(0)
2024年8月21日
VSCode #ifdef 变灰
摘要: 在settings.json中增加 "C_Cpp.intelliSenseEngine": "default",
阅读全文
posted @ 2024-08-21 15:56 天翔鸟
阅读(131)
评论(0)
推荐(0)
2020年5月9日
SPI 的 DMA 发送与接收
摘要: 一、概述 在项目开发中,需要用到SPI接口来进行大量数据的传输,为了能节省CPU的工作时间,采用DMA来进行数据发送则是明智之举。 二、工作模式描述 1、发送方作为主机发送数据,接收方作为从机接收数据,基本的硬件连接为: 主机——从机 NSS ——NSS SCK——SCK MOSI——MOSI MI
阅读全文
posted @ 2020-05-09 16:44 天翔鸟
阅读(16566)
评论(0)
推荐(1)
2020年4月7日
脉冲电位器编程
摘要: u8 BUFFER=0xFF,data,WZ1,WZ2; void IO_Init(void) { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE); GPIO_InitS
阅读全文
posted @ 2020-04-07 19:38 天翔鸟
阅读(484)
评论(0)
推荐(0)
公告