上一页 1 2 3 4 5 6 7 ··· 35 下一页
摘要: 使用 rz -be 解决办法是上传是用rz -be,并且去掉弹出的对话框中“Upload files as ASCII”前的勾选。 阅读全文
posted @ 2023-02-06 21:14 zhaogaojian 阅读(35) 评论(0) 推荐(0)
摘要: 今天偶然点开更新VisualStudio,随便看了几个功能,最近变化了不少。 #一、Blazor功能 ##1、新建项目 ##2、运行项目 ##3、修改代码 ##4、点击clickme 可以看到直接变成了+2,之前Blazor才出来的时候是不支持的。 #二、支持Git多存储 19年时候还是用的插件实现 阅读全文
posted @ 2023-01-06 11:50 zhaogaojian 阅读(48) 评论(0) 推荐(0)
摘要: #0、分配空间 cd "C:\Program Files\Oracle\VirtualBox" ./VBoxManage modifyhd "F:\xxx\ms\ms.vdi" --resize 30720 ./VBoxManage modifyhd "F:\xxx\ms\Snapshots{xxx 阅读全文
posted @ 2023-01-04 11:19 zhaogaojian 阅读(63) 评论(0) 推荐(0)
摘要: 之前都是在系统登录时看系统版本,登录后也可以通过命令查看 cat /etc/issue root@localhost:~# cat /etc/issue Ubuntu 18.04.1 LTS \n \l 阅读全文
posted @ 2022-12-27 10:17 zhaogaojian 阅读(26) 评论(0) 推荐(0)
摘要: echo "$$$$$$" 289728972897 echo '$$$$$$' $$$$$$ 单引号所见即所得,双引号进行转义。两个$$代表当前shell的进程号。 所以显示出来一串数字。 阅读全文
posted @ 2022-12-09 16:20 zhaogaojian 阅读(23) 评论(0) 推荐(0)
摘要: 假如有一个件,文件内容 123 123 123 123<0x00><0x00><0x00><0x00><0x00><0x00><0x00> 那么 while (!in.eof()) { in.getline(rbuf, 3); } 到最后一行会卡着,可以写成 in.getline(rbuf,1024 阅读全文
posted @ 2022-11-26 17:59 zhaogaojian 阅读(66) 评论(0) 推荐(0)
摘要: lsblk -n --nodeps -o name,serial /dev/mmcblk0 cat /sys/class/block/mmcblk0boot1/device/device/serial static int get_chip_id(char *buf, size_t size) { 阅读全文
posted @ 2022-11-24 18:32 zhaogaojian 阅读(532) 评论(0) 推荐(0)
摘要: 方式一 void *test_thread(void *arg); pthread_create(&pid, pthread_arr1,test_thread, NULL); 方式二 void test_thread(void *arg); pthread_create(&pid, NULL,(vo 阅读全文
posted @ 2022-11-02 23:52 zhaogaojian 阅读(47) 评论(0) 推荐(0)
摘要: ###方式1 while (1) { int rc = mosquitto_loop(mosq, -1, 1); if (rc) { printf("mqtt_portal: mosquitto_loop rc = %d \n", rc); sleep(1); mosquitto_reconnect 阅读全文
posted @ 2022-11-02 23:10 zhaogaojian 阅读(289) 评论(0) 推荐(0)
摘要: WSL下的串口和Windows下串口对应关系 /dev/ttyS1<->COM1 ... 只有WSL1可以使用,WSL2不行。 阅读全文
posted @ 2022-11-01 15:34 zhaogaojian 阅读(604) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/accumulationbystep/p/13749993.html https://github.com/fedormsv/jsoncpp/tree/non_sorting 阅读全文
posted @ 2022-10-31 15:22 zhaogaojian 阅读(377) 评论(0) 推荐(0)
摘要: ##1、目录结构如下 ##2、外层CMakeLists.txt # 声明要求的 cmake 最低版本 cmake_minimum_required(VERSION 3.16.3) set(CMAKE_CXX_STANDARD 11) # 声明一个 cmake 工程 project(testcjson 阅读全文
posted @ 2022-10-29 10:15 zhaogaojian 阅读(241) 评论(0) 推荐(0)
摘要: CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build main.go 阅读全文
posted @ 2022-10-10 19:31 zhaogaojian 阅读(73) 评论(0) 推荐(0)
摘要: cd /usr/bin rm go rm gofmt ln -s /usr/local/go/bin/go ln -s /usr/local/go/bin/gofmt 阅读全文
posted @ 2022-10-09 18:15 zhaogaojian 阅读(153) 评论(0) 推荐(0)
摘要: 把-lpThread放到最后面 阅读全文
posted @ 2022-10-03 20:27 zhaogaojian 阅读(96) 评论(0) 推荐(0)
摘要: ##提示Could not exec dpkg ###1、下载 以armhf为例,需要找和系统小版本适配的版本,可能需要一个一个测试。 http://download.unesp.br/linux/debian/pool/main/d/dpkg/dpkg_1.17.27_armhf.deb ###2 阅读全文
posted @ 2022-10-01 17:20 zhaogaojian 阅读(105) 评论(0) 推荐(0)
摘要: 一直不明白怎么调用minicom菜单,今天仔细测试下。 ctrl+a(完全松开手),单独再按z,再按x退出 阅读全文
posted @ 2022-10-01 17:16 zhaogaojian 阅读(777) 评论(0) 推荐(0)
摘要: template< typename... Args > std::string string_format(const char* format, Args... args) { size_t length = std::snprintf(nullptr, 0, format, args...); 阅读全文
posted @ 2022-09-20 17:06 zhaogaojian 阅读(111) 评论(0) 推荐(0)
摘要: sudo netstat -atnpl|more|grep :1234 会发现有TIME_WAIT连接,这个主要是由于服务端没有断掉客户端连接导致的。比如Kill命令就会有类似的现象。注意检测下服务端应用是否有频繁崩溃导致这个问题。 阅读全文
posted @ 2022-09-20 10:18 zhaogaojian 阅读(229) 评论(0) 推荐(0)
摘要: 删除 计算机\HKEY_CLASSES_ROOT\AltiumPCBProject\shell\open\command 计算机\HKEY_CLASSES_ROOT\AltiumPCBLibrary\shell\open\command 数据项即可。 阅读全文
posted @ 2022-09-16 17:00 zhaogaojian 阅读(257) 评论(0) 推荐(0)
摘要: 解决办法: ##一、关闭日志: root@localhost:~# echo 1 4 1 7 > /proc/sys/kernel/printk ##二、找到频繁设置看门狗程序地方,注释掉 //start watchdog if (fd == -1) { fd = open(dev.c_str(), 阅读全文
posted @ 2022-09-08 11:04 zhaogaojian 阅读(2217) 评论(0) 推荐(0)
摘要: 网上讲了很多方法,但是我的设备上都用不成。最后发现一种方法 ip link set wwan0 name usb0 阅读全文
posted @ 2022-09-08 09:24 zhaogaojian 阅读(154) 评论(0) 推荐(0)
摘要: 解决办法: 阅读全文
posted @ 2022-09-03 20:49 zhaogaojian 阅读(114) 评论(0) 推荐(0)
摘要: #1、下载 https://github.com/fatedier/frp/releases/download/v0.44.0/frp_0.44.0_windows_amd64.zip #2、在服务端运行 frps.exe [common] bind_port = 7000 #3、在客户端运行 fr 阅读全文
posted @ 2022-09-01 22:28 zhaogaojian 阅读(197) 评论(0) 推荐(0)
摘要: ##1、下载Doxygen工具 ##2、配置 ###2.1 ###2.2 ###2.3 ##3、点击生成 阅读全文
posted @ 2022-09-01 14:29 zhaogaojian 阅读(95) 评论(0) 推荐(0)
摘要: 常规设置静态ip方法主要有4种 1、ifconfig方式 2、/etc/systemd/network下配置 3、/etc/network/interface配置 4、netplan方式 飞凌支持1、2、3方式配置ip,如果设置静态路由的话,最好使用3方式,使用方式2的话,插拔网线会丢失路由。 阅读全文
posted @ 2022-08-31 16:17 zhaogaojian 阅读(89) 评论(0) 推荐(0)
摘要: 1、安装离线deb文件 如果发现某些deb下载速度太慢,可以事先下载 dpkg -i (软件包文件全名) 2、arm64下兼容armhf程序时,程序自带的lib不要放入/usr/lib/等目录下 否则容易冲突导致程序出问题 3、sh传递参数 $* 阅读全文
posted @ 2022-08-26 22:33 zhaogaojian 阅读(189) 评论(0) 推荐(0)
摘要: 首先是官方源,虽然慢,但是不容易有问题。 deb http://us.ports.ubuntu.com/ubuntu-ports/ bionic main restricted #deb-src http://us.ports.ubuntu.com/ubuntu-ports/ bionic main 阅读全文
posted @ 2022-08-22 18:33 zhaogaojian 阅读(199) 评论(0) 推荐(0)
摘要: 1、安装驱动,按着reboot键插usb 2、打开RKDevTool 3、FirmWare,Upgrade. 阅读全文
posted @ 2022-08-21 19:55 zhaogaojian 阅读(135) 评论(0) 推荐(0)
摘要: 修改文件隐藏,显示方法,使用mv在前面加一个.即可。 阅读全文
posted @ 2022-08-20 12:07 zhaogaojian 阅读(86) 评论(0) 推荐(0)
摘要: 除了官方文档里写的删除掉两个文件外, mv /etc/systemd/system/multi-user.target.wants/hostapd.service ~/temp/hostapd.service.bak mv /etc/systemd/network/wlan0.network ~/t 阅读全文
posted @ 2022-08-20 11:55 zhaogaojian 阅读(99) 评论(0) 推荐(0)
摘要: 1、选择下面驱动 2、就可以选择了 阅读全文
posted @ 2022-08-19 23:39 zhaogaojian 阅读(328) 评论(0) 推荐(0)
摘要: 最近在编写一个程序时(x64 Linux,Arm下没有这个问题),出现了undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'”,明明有设置-pthread(l60870里用到了这个库)。经过测试,有两种解决办法 1、任意一个代码里调用 阅读全文
posted @ 2022-08-18 10:58 zhaogaojian 阅读(765) 评论(0) 推荐(0)
摘要: 解决办法,选择一下前视图基准面等几个基准面一下,不是调整前视图! 阅读全文
posted @ 2022-08-16 23:05 zhaogaojian 阅读(3444) 评论(0) 推荐(0)
摘要: 如果想挖0.5mm,就设置15.875+0.5 比如: 阅读全文
posted @ 2022-08-15 10:43 zhaogaojian 阅读(591) 评论(0) 推荐(0)
摘要: 君正X1000E使用的小端模式,所以编译时候需要这样写 CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build testtime.go 不能写成 CGO_ENABLED=0 GOOS=linux GOARCH=mip go build testtime.go 阅读全文
posted @ 2022-08-12 20:10 zhaogaojian 阅读(102) 评论(0) 推荐(0)
摘要: 1、在Ubuntu下安装开发环境 sudo apt-get install gcc-mips-linux-gnu sudo apt-get install gcc-mipsel-linux-gnu sudo apt-get install gcc-mips64-linux-gnuabi64 sudo 阅读全文
posted @ 2022-08-12 16:59 zhaogaojian 阅读(234) 评论(0) 推荐(0)
摘要: 一、编译 flex-builder -i clean-linux flex-builder -c linux:custom -m ls1012ardb -a arm64 flex-builder -c linux -a arm64 -m ls1012ardb flex-builder -i genb 阅读全文
posted @ 2022-08-11 18:56 zhaogaojian 阅读(180) 评论(0) 推荐(0)
摘要: 设定浮点数下发命令 下发123,点位8001 阅读全文
posted @ 2022-08-09 17:50 zhaogaojian 阅读(155) 评论(0) 推荐(0)
摘要: 1、安装以下工具 //安装QEMU工具 sudo apt install -y qemu-system-arm sudo apt install qemu-user-static //arm32的交叉编译工具安装 sudo apt install gcc-arm-linux-gnueabi 2、编写 阅读全文
posted @ 2022-08-05 11:12 zhaogaojian 阅读(222) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 35 下一页