11 2022 档案
摘要:1、创建好一个QT应用程序 2、手动创建新线程类,继承QThread 我这里新建的是下面 newthread.h 和 newthread.cpp 文件。 newthread.h #ifndef NEWTHREAD_H #define NEWTHREAD_H #include <QThread> cl
阅读全文
摘要:CPU直接引出的网卡地址,不能用ethool操作,它不同于英特尔的网卡,英特尔的网卡可以直接把MAC地址烧录在网卡的物理内存,所以可以用ethtool操作。那CPU的网卡MAC地址如何固定呢,思路就是把MAC地址写在EEPROM里。然后系统开机的时候读取EEPROM的MAC地址数据,执行指令更新。
阅读全文
摘要:转自:https://blog.csdn.net/Kushidou/article/details/115295414 仅供参考学习使用
阅读全文
摘要:问题: 脚本执行到截取字符串时,报错提示:Bad substitution。 原因: 两种shell语言解释器 bash和dash,这种情况是指向了dash解释器导致。 解决方法: 1.查看shell指向:ls -l /bin/sh 2.修改脚本指向bash方法1:sudo dpkg-reconfi
阅读全文
摘要:头文件: #include <string.h> #include <QProcess> #include <QDebug> #include <QString> 写数据到 I2c : void writeData(uint8_t data) { QProcess p; //声明 //printf(
阅读全文
摘要:1、工具安装 sudo apt-get install i2c-tools 2、使用 2.1 探测总线和设备 参数说明: -y:自动选择yes -r:快速读指令 -q:快速写指令 -f:强制使用此设备地址 (1)探测i2c总线: i2cdetect -l (2)探测i2c设备 i2cdetect -
阅读全文
摘要:问题: 解决方法: 1.使用sudo apt-get update命令进行更新资源 2.Linux系统软件需要升级,用以下命令:sudo apt-get upgrade
阅读全文
摘要:转自:https://blog.csdn.net/King_stt/article/details/118612261 仅供参考学习使用 1.修改网卡eeprom的指令格式 ethtool -E <eth_name> magic <magic_val> offset N value M eth_na
阅读全文