自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(160)
  • 资源 (25)
  • 收藏
  • 关注

原创 运算放大器实现的施密特触发器

https://www.cnblogs.com/junlinqunxia/p/8570372.html

2021-06-30 10:24:30 1880

原创 repo使用

https://www.cnblogs.com/junlinqunxia/p/8570372.html

2021-06-04 14:55:39 160

原创 my_memmove,my_strcpy

#include <stdio.h>void *my_memmove(void *dest, const void *src, size_t count){ void *ret = dest; char *c_dest = (char*)dest; char *c_src = (char*)src; if((dest == NULL) || (src == NULL)) { return NULL; } if(c_dest <= c_src) { while.

2021-05-08 17:44:15 157

转载 linux查看系统信息

https://blog.csdn.net/subfate/article/details/40794941

2021-03-26 17:20:33 75

原创 udp_finder

//UDP 发送广播信息 #include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <errno.h> #include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.

2020-11-17 10:41:25 82

原创 转小写

/** @brief Convert a string to lowercase. @param in String to convert. @param out Output buffer. @param len Size of the out buffer. @return ptr to the out buffer or NULL if an error occured. This function convert a string into ...

2020-11-06 11:26:17 160

原创 libxml2使用

参考https://blog.csdn.net/fanwenjieok/article/details/528480921.wget http://xmlsoft.org/sources/libxml2-2.9.10.tar.gz2.. /autogen.sh./configure CROSS_COMPILE=arm-linux-gnueabi --host=arm-linux-gnueabi --prefix=/home/xxx/libxml2 --enable-shared --.

2020-10-26 14:25:05 678

原创 便捷调试client和server

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<errno.h>#include<sys/types.h>#include<sys/socket.h>#include<netinet/in.h>#include <unistd.h>#include <fcntl.h>#include <pthread.

2020-09-11 17:55:48 173

原创 linux信号使用注意事项

1.不要在信号处理函数中处理复杂的事情2.信号处理函数中不能有互斥锁会造成死锁,可以用信号量替代3.信号是置位方式实现,多次发送相同的信号可能只会收到一次4.子进程具有继承父类信号屏蔽,不能在信号处理函数中启动自身查看进程pcb(process control block)/proc/<pid>/status 文件更直观地查看到指定进程的信息屏蔽情况cat /proc/21517/statusSIGUSR1=16=0x8000SIGUSR2=17=0x100000x1800

2020-08-12 16:17:56 424

原创 libpng创建及编辑图片

使用libpng读写PNG图片https://blog.csdn.net/wang93IT/article/details/85003730如何用libpng输出一个编辑后的png图片https://blog.csdn.net/Rong_Toa/article/details/80685228实例保存一个width*height的黑白图int make_wite_png(const char *outfile, int width, int height){ FILE *f.

2020-07-31 09:11:26 464

原创 sed匹配行替换行

udhcpc时分配默认dnsDEFAULT_DNS="114.114.114.114"echo "nameserver $DEFAULT_DNS" > $RESOLV_CONF替换匹配行sed -i '/DEFAULT_DNS=/cDEFAULT_DNS="114.114.114.114"' /usr/share/udhcpc/default.script

2020-07-07 16:09:10 2401

原创 修改iniparser适配ssid的特殊key

https://github.com/ndevilla/iniparser下载iniparser修改src/iniparser.c支持‘;“#的获取static line_status iniparser_line(正则表达式https://www.cnblogs.com/LiuYanYGZ/p/10300745.html根据正则表达式修改为如下支持psk = '434':!"@3#123!@#'支持所有字符的获取'43...

2020-07-02 18:50:10 195

原创 freetype使用文泉驿显示及保存图片

https://blog.csdn.net/zb774095236/article/details/94016538gcc example.c -o example -lfreetype -lm1.使用开源库文泉驿字库./example wqy.ttc ni2.使用FreeImage图形库和freetype显示字符及保存图片

2020-06-28 16:00:07 461

原创 qrcode生成二维码

https://blog.csdn.net/wang93IT/article/details/85050894

2020-06-24 14:49:41 441

原创 linux编译工具使用说明

nmldconfigldlddreadelfstringsstriparasranlibobjdump1.readelf:查看程序执行时所依赖的库有哪些mipsel-linux-readelf -d microprintDynamic section at offset 0x120 contains 39 entries: Tag Type Name/Value0x00000001 (NEEDED)...

2020-06-15 11:40:27 165

原创 linux嵌入式常用调试命令

下载tftp -g -l B.txt -r A.txt 192.168.1.2上传tftp -p -r B.txt -l A.TXT 服务器地址

2020-06-11 19:13:34 243

原创 linux串口操作例子

https://blog.csdn.net/morixinguan/article/details/80898172?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159187175619725219943733%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=159187175619725219943733&am

2020-06-11 18:36:33 254

原创 SHA1,HMACSHA1,SHA256,HMACSHA256,BASE64

https://download.csdn.net/download/iamshuke/10172046

2020-06-09 09:37:05 920

原创 openssh编译

zlib-1.2.5交叉编译./configure --prefix=$PWD/__INSTALLCC=arm-linux-gnueabi-gccAR=arm-linux-gnueabi-ar rcCPP =arm-linux-gnueabi-gcc -ELDSHARED=arm-linux-gnueabi-gccRANLIB=arm-linux-gnueabi-ranlib/home/zengzhihao/zlib-1.2.5/__INSTALLopenssh-5.8p1.tar.g

2020-06-02 17:19:31 309

原创 字符串替换

char *strrpl(char *s, const char *s1, const char *s2){ char *ptr; char *cur_p = s; while ((ptr = strstr(cur_p, s1)) != NULL) /* 如果在s中找到s1 */ { memmove(ptr + strlen(s2) , ptr + strlen(s1), strlen(ptr) - strlen(s1) + 1); memcpy(ptr, &s2[0], .

2020-06-01 18:57:18 163

原创 sha512加密

参考https://blog.csdn.net/u011280717/article/details/79430408main.c/* * Copyright (c) 2018, Jiamin Ma * BSD License */#include "easy_crypto.h"#include <stdio.h>#include <stdint.h>#include <string.h>#define TEST_VEC_NUM 3stat

2020-06-01 14:56:52 1068

原创 获取png,jpeg,tga宽和高

1.准备好png,zlib库以及头文件头文件png.h pngconf.h zconf.h zlib.h库文件libpng.so libz.so2.编译参数arm-linux-gnueabi-gcc linux_imghw.c -o linux_imghw -lz -lpng -L./3.实例#include <stdio.h>#include "png.h"void png_read(char *file_path){ png_st...

2020-05-28 19:25:50 384

原创 file命令交叉编译

https://blog.csdn.net/tiantang46800/article/details/7180519./configure --host=mipsel-linux --enable-static --disable-shared CC=mipsel-linux-gcc AS=mipsel-linux-as LD=mipsel-linux-ld AR=mipsel-linux-ar RANLIB=mipsel-linux-ranlib --prefix=$PWD/__INSTALL

2020-05-27 17:41:57 374

原创 mipsel下gdb调试工具编译

下载gdb-7.3a.tar.gzhttp://www.sourceware.org/pub/gdb/releases/执行./configure --host=mipsel-linux --target=mipsel-linux --prefix=/home/zengzhihao/gdb-allmake && make install拷贝至开发板,执行/gdb -args /nfs/micro_sw/microprint接收到信号忽略掉handle S..

2020-05-25 18:55:05 328

原创 win10查看某个端口占用情况

netstat -ano |findstr "60547"然后在任务管理器的详细信息中的pid找到该进程

2020-05-22 16:38:38 889

原创 编译libcurl支持ssl,https下载

1.openssl-1.0.2k下载进入openssl-1.0.2k更改编译器CC= arm-linux-gnueabi-gcc安装路径--prefix=~/openssl-1.0.2k-armmake && make install2.curl-7.49.1.tar.gz./configure --prefix=$PWD/_install --hos...

2020-04-16 19:16:47 423

原创 mutool交叉编译

https://www.mupdf.com/downloads/index.html下载mupdf-1.16.0-source.tar.gz解压后,修改Makefile增加CC=arm-linux-gnueabi-gccCXX=arm-linux-gnueabi-g++LD=arm-linux-gnueabi-ldAR=arm-linux-gnueabi-ar编译出命令行...

2020-04-09 16:07:12 405

原创 jbig2转其它格式(支持png,pbm)

https://www.jbig2dec.com/下载源码编译Usage: jbig2dec [options] <file.jbig2> or jbig2dec [options] <global_stream> <page_stream> When invoked with a single file, it attempts to p...

2020-04-02 14:49:27 1350

原创 zlib压缩解压

#include <stdio.h>#include <stdlib.h>#include <string.h>#include <zlib.h>#include <assert.h>#define SIZE_CHUNK (8 * 1024)static int __do_inflate_write(z_stream ...

2020-04-02 13:42:11 344

原创 java与c互通aes加密解密

参考https://blog.csdn.net/weiyuefei/article/details/72741729SHA1PRNG与c语言的互通转换,随机数生成https://blog.csdn.net/diliaolu1763/article/details/101628501SHA1PRNG The name of the pseudo-random numb...

2020-01-09 15:52:37 2637

原创 wget支持ssl

arm-linux 交叉编译wget支持openssl, 使wget支持https链接地址下载文件https://blog.csdn.net/Auris/article/details/88776450openssl的编译与交叉编译https://blog.csdn.net/fangye945a/article/details/86658621...

2019-12-11 16:00:05 1856

转载 linux的rz和sz命令

https://www.cnblogs.com/6324TV/p/9063476.html

2019-12-07 11:32:54 229

原创 qt融合图片并保存为本地图片

使用qt强大的图形处理功能将两幅图融合后保存,可交叉编译供外部应用使用#include <QImage>#include <QMatrix>#include <QDebug>#include <string.h>#include <QPainter>#include <QDesktopWidget>#in...

2019-12-06 15:22:53 753 1

转载 beyond compare密钥

https://blog.csdn.net/yangyang031213/article/details/86301966

2019-11-29 09:19:26 15395

原创 格式化字符串

去掉字符串前后的空格换行符#include <ctype.h>char *rtrim(char *str){ if (str == NULL || *str == '\0') { return str; } int len = strlen(str); char *p = str + len - 1; w...

2019-11-12 15:02:00 113

原创 毫秒为单位产生随机数

秒作为随机数,可能会重复采用毫秒级别#include <stdio.h>#include <time.h>#include <stdlib.h> #define SIZE 10 void get_rand(char *p, int length) { int i; unsigned int seed; char value[] =...

2019-10-30 17:02:38 1276

原创 编码转换

下载https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz编译使用1.解压编译tar -zxvf libiconv-1.16.tar.gz2.配置 ./configure --enable-shared --host=arm-linux-gnueabi --prefix=/home/zengzhihao/workplac...

2019-09-11 13:41:42 434

转载 共享内存、消息队列、信号量之ipcs命令详解

https://blog.csdn.net/scott_bing/article/details/78959663

2019-09-09 11:06:42 200

转载 can总线

https://blog.csdn.net/qq_40589292/article/details/81066193https://blog.csdn.net/wordwarwordwar/article/details/79405730https://blog.csdn.net/wordwarwordwar/article/details/79405851https://b...

2019-08-19 17:36:02 105

转载 记录操作记录

https://blog.csdn.net/hechaojie_com/article/details/85339835https://blog.csdn.net/u014597198/article/details/81735481PS1="`whoami`@`hostname`:"'[$PWD]'#add timestampexport HISTTIMEFORMAT=...

2019-06-14 13:48:42 142

wifi性能测试工具.rar

iperf测试带宽工具,用于测量网速如何,udp,tcp测试均可,包含app,linux,windows下使用方法

2020-08-27

hmac-demo.rar

java的md5计算,hmac256计算,请参考博客中提及的linux下c语言的md5,hmac256计算,与java运行的结果对比

2020-06-09

linux_imghw.rar

使用libpng,libz快速获取png图片的宽和高,包含相应的头文件,库文件,以及实例 以及编译参数

2020-05-28

TMPGEncPLUS2.54.rar

png,bmp,jpg转为m2v的软件,转换时将码率提高有助于提升分辨率

2019-06-14

bits_to_png.rar

将图片二进制文件转化为数组,及将数组还原回二进制方式显示的图片

2019-05-28

bin_to_array.rar

使用shell与c语言的方式将二进制文件转换为以unsigned char 数组的方式存储,以共给外部调用。

2019-05-28

xp下的修改过的ft232驱动

xp下的ft232驱动,修复黄色感叹号问题,设备更新时选择此文件夹来更新

2018-12-12

便捷调试信息控制

分类显示调试信息,方便移植 [出错(颜色)][日期时间][模块][等级][文件][函数][行号][信息~]

2018-11-09

xp下git图形管理

xp下git图形管理,适用于旧版本的xp,可以包含git常用命令操作

2018-10-17

基于wayland的cairo

基于wayland的cairo,该代码是测试例子,会在界面显示一幅图,主要用于测试基于wayland的cairo使用方法。

2018-08-21

dubs封装后的接口

进程间通讯,封装dbus后的接口使用,参照blog地址 https://blog.csdn.net/zengzhihao/article/details/79915462

2018-04-12

DIAL-2ndScreenProtocol-2.1.pdf

官网上艰难下载的文档,用于dial的开发,类似实现里面的部分wifi display,dlna,镜像投射等功能

2018-03-20

usb自动挂载实现脚本及代码

linux下自动挂载及卸载脚本和代码实现,请参考博客实现介绍。

2018-01-10

libpng-1.6.18.tar.gz

png库,按照步骤编译即可 http://blog.csdn.net/zengzhihao/article/details/48502087

2015-09-17

jpegsrc.v6b.tar.gz

jpeg库源码,按照步骤编译即可http://blog.csdn.net/zengzhihao/article/details/48502087

2015-09-17

gsnap.tar.gz

将开发板中的framebuff截图为png或者jpg,需要jpg和png库

2015-09-17

ffmpeg-1.2.2.tar.gz

ffmpeg源码ffmpeg-1.2.2.tar.gz

2014-07-25

xvidcore-1.1.3.tar.gz

ffmpeg依赖库文件xvidcore-1.1.3.tar.gz

2014-07-25

x264-snapshot-20140424-2245.tar.bz2

ffmpeg编译依赖库x264-snapshot-20140424-2245.tar.bz2

2014-07-25

SDL-1.2.15.tar.gz

ffmpeg编译依赖文件SDL-1.2.15.tar.gz

2014-07-25

yasm-1.2.0.tar.gz

ffmpeg所需源码,yasm-1.2.0.tar.gz

2014-07-25

madplay移植所需的压缩包

madplay移植所需的压缩包zlib-1.1.4 libid3tag-0.15.1b libmad-0.15.1b madplay-0.15.2b

2013-08-03

tiny210(s5pv210)下的wm8960驱动

所用的开发板是tiny210友善之臂的,wm8960友善之臂没有公开,但是有人用反汇编破解了它的驱动,亲自测试过可以用,链接地址

2013-08-03

protel破解工具

protel破解工具次版本为SP2的protel破解工具,不是SP2的话就不能用了

2010-10-20

ChipGenius(1)

用来识别U盘型号主控~~~~~~~~可以用于识别主控芯片

2009-12-22

空空如也

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

TA关注的人

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