自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 资源 (5)
  • 收藏
  • 关注

原创 [极速版]写个linux探测自己机器ip地址的tool(基于shell + sshpass)

【代码】[极速版]写个linux探测自己机器ip地址的tool(基于shell + sshpass)

2024-06-02 19:41:52 371

原创 写个linux探测自己机器ip地址的tool(基于shell + expect)

【代码】写个linux探测自己机器ip地址的tool。

2024-06-02 18:17:45 123

原创 petalinux之bug

#:/data/hunter/xilinx/peta_zynq_222$ petalinux-build -c libtool-native -x do_build_without_rm_work[INFO] Sourcing buildtools[INFO] Building libtool-native[INFO] Sourcing build environment[INFO] Generating workspace directoryINFO: bitbake libtool-nativ

2024-01-30 15:05:12 242

原创 petalinux: iperf的安装

旧版新版

2024-01-22 13:41:30 525

原创 zynq、zynqmp中断号

获得设备树的中断号后,判断是SPI就+32,PPI就+16从而推出实际ug585 pdf文档中的中断号,意思就是书写设备树的中断号时,是SPI就-32,是PPI就-16。

2024-01-04 10:57:43 422 2

原创 双网卡电脑为局域网中的电脑,提供上网服务(linux环境)

参考https://www.biogeeker.com/2019/10/6490.html。

2023-09-06 23:07:35 134

原创 华硕服务器RS720-E10-RS12无法安装win10到M.2的NVME SSD

进BIOS开启CSM(兼容性支持模块)

2023-08-29 10:48:09 124

原创 [bat][win10]一键打开ssh远程终端

环境:win10、WSL2(ubuntu)、WSL2安装好sshpassWSL2敲以下命令安装sshpasssudo apt-get install sshpass在windos桌面新建一个machine.bat文件,放以下代码bash -c "sshpass -p 123456 ssh -o StrictHostKeyChecking=no root@192.168.1.2"在桌面双击此bat文件即可直接登录,笔者登录BMC作为示范:有一个BUG:mkstemp: No such fil

2021-12-14 22:01:40 3109

原创 [python][json]将.json文件的键值递归遍历拼接打印

鸣谢 : https://blog.csdn.net/stone10086/article/details/80974157?spm=1001.2014.3001.5506{ "psu": { "all":"", "number":"", "psu[n]": { "model_name":"", "serial_name":"", "part_number

2021-11-06 00:01:24 424

原创 [python3][json]该改进的地方,写个json都不方便

json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 4 (char 3)val=json.loads(’ { “HH” : 1 } ')val=json.loads(" { “HH” : 1 } “)File “”, line 1val=json.loads(” { “HH” : 1 } ")^

2021-11-01 14:59:32 211

原创 [vscode][ssh]Win10 SSH失败 Bad owner or permissions on C:\\Users\\USER/.ssh/config

指定vscode使用别的路径的config文件就行,比如我就使用了C:\Users\q.vscode_ssh\config

2021-10-24 00:04:32 1770

原创 [C]for循环创建多进程execv并waitpid指定子进程退出

#include <stdio.h>#include <stdlib.h>#include <sys/unistd.h>#include <sys/wait.h>#define PROSSESS_NUM 3int main(int argc, char *argv[]){ char * cmd[PROSSESS_NUM][PROSSESS_NUM] = { {"any", "11111111111", 0},

2021-09-21 21:52:43 236

原创 [C]转小数

#include <stdio.h>#include <math.h>double to_decimal(unsigned int num32){ double decimal = 0.0; unsigned int len = 0; for (int i = 0; num32 >> i; ++i)len++; for (int i = 1; i < len; ++i) { if (num32 &

2021-09-20 01:40:32 462

原创 [py][json]从txt文件读入,json格式打印

文本内容q@q:~$ cat log.txt { "result": "success", "data": { "Name": "FAN2", "SN": "N/A", "PN": "N/A", "Rotors": 0, "AirFlow": "N/A", "SpeedMin": 0, "SpeedMax": 0 }}q@q:~$ q@q:~$ cat py.py

2021-08-11 14:08:01 129

原创 [opencv][C++][车牌识别]VS2019在opencv2下模仿openmvIDE的阈值编辑器(RGB版本)

#include <iostream>#include <opencv/cv.hpp>#include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui.hpp>//#include <opencv2/imgproc/imgproc.hpp>//#include <opencv2/ml/ml.hpp>using namespace std;...

2021-07-06 00:26:09 440

原创 [opencv][C++][车牌识别]VS2019在opencv2下模仿openmvIDE的阈值编辑器

上原图(街边拍摄,仅供学习使用):上目标图:想用VS2017写个阈值编辑器达到这种效果。上效果图:如图所示,效果是出来了,但是好像数值不对劲儿。。。。。。。网友们你们自己看着办吧,我的原则是:“又不是不能用!”。#include <iostream>#include <opencv/cv.hpp>#include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui.hpp>

2021-07-05 18:57:23 452

原创 [opencv][C++][车牌识别][切除车牌边框和钉子]车牌识别之分割字符,使用手机相机拍的图验证代码

用此图验证代码,只做学习只用。输出如下:输出如下:#include <iostream>#include <opencv2/highgui/highgui.hpp>#include <opencv2/imgproc.hpp>#include <opencv2/imgproc/types_c.h>#include <cmath>#include <cstdlib>using namespace std;usin

2021-07-04 14:40:00 506

原创 [opencv][C++][车牌识别][切除车牌边框和钉子]车牌识别之分割字符

这张车牌是一张网图。opencv2最高版本opencv2.4.13.6到了腐蚀膨胀这一步,结果如下图所示:去除车牌的边框和钉子,结果如下图所示:最后将识别到的图片拼起来,结果如下图所示:间距方面就不调了,能看就行#include <iostream>#include <opencv2/highgui/highgui.hpp>#include <opencv2/imgproc.hpp>#include <opencv2/imgproc/type.

2021-07-03 21:15:09 1313

原创 [C]cJSON上手

感谢强大的cJSON感谢:https://blog.csdn.net/u010647471/article/details/52384220感谢:https://www.cnblogs.com/lodger47/p/14758036.html本工程文件目录 cJSON.c cJSON.h wr_test.c test.json rd_test.c首先生成一个json//wr_test.c#include <stdio.h>#include

2021-06-22 16:48:58 141

原创 [C]cJSON入门第一步

https://www.json.org/有两个,json-C和cJSON,选cJSON,这个方便关注那三个文件,用DevCpp打开test.c,注意先加入-std=c99。test.c编译不过加入#include "cJSON.c"如下所示:编译i通过,运行看看:好的,开始玩cJSON吧...

2021-06-22 14:38:21 120

原创 [c]从一份男性英文名txt文件中产生随机英文名

#include <stdio.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include <time.h>#include <math.h>#define RAND(MIN,MAX) (((unsigned long long)rand() * (MAX - MIN + 1)) >> 15 + MIN)int main(){ /

2021-06-22 00:51:22 696

原创 [C]把一个字符文件的连续2个大写字母改成1个大写字母

#include <stdio.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include <errno.h>int main(){ FILE *frp = NULL; char *ibuff=NULL; char *obuff=NULL; frp = fopen("./output_manname.txt", "r"); /*判断文件大小*/ fs

2021-06-22 00:39:50 101

原创 [C]把一个字符文件的非字母去掉

#include <stdio.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include <errno.h>int main(){ FILE *frp = NULL; char *ibuff=NULL; char *obuff=NULL; frp = fopen("./manname.txt", "r"); /*判断文件大小*/ fseek(frp

2021-06-22 00:31:11 275

原创 [C]把一堆没有换行的 姓名 字符串文件,改成有换行的

https://wenku.baidu.com/view/a47e7271650e52ea551898ab.html要做工卡了,要取英文名了。百度文库这玩意儿不充钱不能复制就很烦,关掉JS后,复制完没有回车换行。。。。。。。。#include <stdio.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include <errno.h>int main(){.

2021-06-21 16:56:16 122

原创 [C]连续产生随机数取英文名(不用sleep)

#include <stdio.h>#include <stdlib.h>#include <time.h>int main(){ unsigned char name; /*volatile*/ unsigned seed = (unsigned)time(NULL); for (int i = 0; i < 4; i++) { srand(seed++); name = rand() % ('z' - 'a' + 1) + 'a';

2021-06-21 15:10:25 503

原创 [C]访问数组指针中的元素

#include <stdio.h>#include <stdlib.h>int main(){int a[10]={1,2,3,4,5,6,7,8,9,10};int (*p)[10]=&a;for(int i=0; i<10; i++) printf("%d\r\n",*(*p+i)); //printf("%d\r\n",p[0][i]); return 0;}

2021-06-17 21:29:25 161

原创 [AT指令]ESP8266 连接 百度地图[IP普通定位] 接口,获取定位信息

1.连接一个能上网的wifiAT+CWJAP_CUR="TP-LINK_0141","password"2.设置SSL的buf容量,照做就行AT+CIPSSLSIZE=40963.TCP连接,你有兴趣也可以用SSLAT+CIPSTART="TCP","api.map.baidu.com",804.开启透传AT+CIPMODE=15.发送GET请求AT+CIPSEND发出如下GET请求GET /location/ip?ak=9oeRTAQ0OUATeR6a1XIBU1WvwIf

2021-03-19 22:03:52 2486 2

原创 [AT指令]ESP8266 连接阿里云的通用文本识别,获取识别结果

1.AT+CWJAP_CUR=“TP-LINK_0141”,“password”2.AT+CIPSSLSIZE=40963.AT+CIPSTART=“SSL”,“ocrapi-advanced.taobao.com”,4434.AT+CIPMODE=15.AT+CIPSEND6.这个是我抓包得到的POST请求(没办法我不知道这个POST请求怎么写,于是乎上网学习抓包),不需要回车,直接发POST https://ocrapi-advanced.taobao.com/ocrservice/adva

2021-03-19 01:06:44 519 1

原创 老笔记本电脑机械500GB升级固态1T

原硬盘使用win10系统材料:西数蓝盘1T(sata),此电脑没有nvme接口,买个sata的亏大发(706大洋外加19的空运运费)…操作环境:pe(本人选择WePE:官链www.wepe.com.cn/)1.新硬盘要分区(NTFS),分区完了就使用diskgenius的“克隆分区”直接把原来硬盘的C盘克隆过去即可2.1重建引导,使用diskgenius的建立esp分区,分个300MB大小的盘即可,2.2启动PE自带的软件“windows引导修复,使用UEFI修复,首先点击“挂载”,将步骤2.1的

2020-12-20 13:23:00 951

原创 某小白(楼主)突然想往简历里面加个opencv,于是默默地从0开始搭建了opencv环境,接着测试了某代码

测试代码来源https://blog.csdn.net/u011808673/article/details/78510830#commentBox我是用了如下代码做测试的:#include "/usr/local/opencv4/include/opencv4/opencv2/opencv.hpp"#include "/usr/local/opencv4/include/opencv4/opencv2/core/core.hpp"#include "/usr/local/o...

2020-11-28 17:55:19 430

原创 ubuntu :pthon 对某一文件夹下的所有文件夹下的所有文件进行重命名

所有文件夹下的所有文件:#!/usr/bin/env python# -*- coding: utf-8 -*-import ospath = "/home/q/opencv/charSamples/"filelist = os.listdir(path)count=0for dir in filelist: count = 0 d_filelist = os.listdir(path + str(dir)) print(path + str(dir)) ...

2020-11-28 15:26:56 293

原创 [解决方法]在ubuntu(电脑) 输入ssh root@192.168.26.157 连ubuntu(开发板),再输入密码之后,permission denined 连不上

首先电脑没问题然后在开发板,电脑端用minicom操作开发板$ ssh root@192.168.26.157 #开发板自己连自己$ #输入密码root@usr#root@usr#root@usr#root@usr#root@usr#此时开发板自己连上了自己。然后用电脑端$ ssh root@192.168.26.157 #电脑连开发板居然就解决了。。。。。。。。。。。。。...

2020-11-27 19:15:01 178

原创 QT 5.15.1(最最最新的版本 Qt for Android) 的环境搭建过程

1.安装过程,15.5.1只支持在线安装要勾选什么包我也不懂,总之把Android选上就没错项目的编译:如果是设置成下图一样的debug模式,我的源代码放在 ........\qt\00_CLT生成的apk胚子(没有图标,其他啥也没有,所以叫做胚子) : ........\qt\build-CLT-Android_Qt_5_15_1_Clang_Multi_Abi-Debug\android-build\bui...

2020-10-27 13:57:58 5226 8

原创 SPARTAN3 AN/XC3S50AN无法下载到内部flash的解决方案

第一步硬件配置:来源:Spartan-3AN FPGA Family.pdf :144引脚封装的37、38、39脚为M0、M1、M2,接3.3、3.3、GND第二步软件补丁:来源:https://china.xilinx.com/support/answers/59572.html...

2020-01-14 21:38:03 2837

android_uboot_smdkv210.tar.bz2

友情价1C币

2021-05-07

Spartan-3AN FPGA Family Data Sheet.pdf

Spartan-3AN FPGA Family Data Sheet Introduction The Spartan®-3AN FPGA family combines the best attributes of a leading edge, low cost FPGA with nonvolatile technology across a broad range of densities. The family combines all the features of the Spartan-3A FPGA family plus leading technology in-system Flash memory for configuration and nonvolatile data storage. The Spartan-3AN FPGAs are part of the Extended Spartan-3A family, which also includes the Spartan-3A FPGAs and the higher density Spartan-3A DSP FPGAs. The Spartan-3AN FPGA family is excellent for space-constrained applications such as blade servers, medical devices, automotive infotainment, telematics, GPS, and other small consumer products. Combining FPGA and Flash technology minimizes chip count, PCB traces and overall size while increasing system reliability. The Spartan-3AN FPGA internal configuration interface is completely self-contained, increasing design security. The family maintains full support for external configuration. The Spartan-3AN FPGA is the world’s first nonvolatile FPGA with MultiBoot, supporting two or more configuration files in one device, allowing alternative configurations for field upgrades, test modes, or multiple system configurations.

2020-01-14

IAR_CODE_MSP430F5529LP_LAUNCH_PAD_SPI_OLED.zip

2019年国赛申请到的TI板卡MSP430F5529LP,本人移植了OLED_spi例程

2019-08-01

IAR_CODE_AD9959MSP430F5529LP_LAUNCH_PAD.zip

2019全国大学生电子设计竞赛申请到的板卡,买了一个DDS 模块 ,移植了一堆代码

2019-08-01

1000倍增益三极管放大电路

本文有2N3904三极管设计的1000倍增益电路图,误差在3%以内,中心频率为1kHz

2018-12-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除