摘要: 1 下载RawCap, 下载地址:https://www.netresec.com/?page=RawCap 2 找到下载位置直接双击运行,出现提示框 3 输入1,然后回车,填写导出的文件名,点击回车。(使用默认名称的话可以直接点击回车) 4 此时进入监控模式,抓包完成后按Ctrl+C退出程序,此时 阅读全文
posted @ 2020-08-25 17:31 cloos.xie 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 1. for 循环写法: void __init samsung_gpiolib_add_4bit_chips(struct s3c_gpio_chip *chip, int nr_chips) { for (; nr_chips > 0; nr_chips--, chip++) { samsung 阅读全文
posted @ 2020-08-25 17:15 cloos.xie 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1.文件IO和标准IO 文件IO: 遵照POSIX(可移植操作系统接口)规则,无缓冲,通过文件描述符操作。 标准IO: 遵照ANSIC规则,带缓冲区,流FILE, Linux下,标准IO基于文件IO 2.文件描述符 每个打开的文件都对应一个文件描述符; 文件描述符是一个非负数。linux为程序中每个 阅读全文
posted @ 2020-08-05 14:57 cloos.xie 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 0 常用设置 //table setting //设置表头 QStringList header; header<< "ID" << "Info1"<<"info2" << "info3"; ui->tableWidget_1->setHorizontalHeaderLabels(header); 阅读全文
posted @ 2020-07-09 17:28 cloos.xie 阅读(1221) 评论(0) 推荐(0) 编辑
摘要: 1.安装插件: pip install pyinstaller 安装完成后通过命令检查是否成功 pyinstaller -v (注意是小写) 2.pyinstaller常用参数 –icon=图标路径 用于设定图标 -F 打包成一个exe文件 -w 使用窗口,无控制台 -c 使用控制台,无窗口 -D 阅读全文
posted @ 2020-07-08 09:08 cloos.xie 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1 产生随机数 /// \brief TLGFunctionTest::getList 获取随机不重复的随机数 /// \param ListLength 返回列表的长度 /// \param ListMaxNum 队列中最大值 /// \return 返回QList类型的任务队列 QList<in 阅读全文
posted @ 2020-06-30 15:07 cloos.xie 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 琐碎代码1——延时函数 ARM: delay: ldr r3, =100000 ldr r4, =0x0 delay_loop: sub r3, r3, #1 //r3 = r3 -1 cmp r3, r4 // cmp会影响Z标志位,如果r4等于r3则Z=1,下一句中eq就会成立 bne dela 阅读全文
posted @ 2020-06-22 14:26 cloos.xie 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 一、条件判断语句(if语句)语法1:if-elseif 条件表达式 : 代码块 执行的流程:if语句在执行时,会先对条件表达式进行求值判断, 如果为True,则执行if后的语句 如果为False,则不执行 语法2: if-else语句 if 条件表达式 : 代码块 else : 代码块 执行流程: 阅读全文
posted @ 2020-05-13 22:19 cloos.xie 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 以timer3为例,周期1KHz,1ms void time3_init(void) { TIM_TimeBaseInitTypeDef TIM_INIT; NVIC_InitTypeDef NVIC_INIT; RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, 阅读全文
posted @ 2019-12-12 20:20 cloos.xie 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: 代码如下: void exti_init(void) { EXTI_InitTypeDef exti_init; NVIC_InitTypeDef nvci_init; GPIO_InitTypeDef GPIO_init; //使能相应时钟 RCC_AHB1PeriphClockCmd(RCC_A 阅读全文
posted @ 2019-12-12 20:09 cloos.xie 阅读(1807) 评论(0) 推荐(0) 编辑
摘要: 一、数值 在Python数值分成了三种:整数、浮点数(小数)、复数 1.1 整数(int) Python中所有的整数都是int类型,并且整数的大小没有限制,可以是一个无限大的整数 a = 10 b = 999999999999999999999999999999 1.2 进制 # 二进制 0b开头 阅读全文
posted @ 2019-05-22 08:30 cloos.xie 阅读(677) 评论(0) 推荐(0) 编辑
摘要: Qt中的startBar指的是底部的状态栏,可以用于显示信息、设置按钮等操作,不过其不能通过界面设计快速设计,只能通过代码编写的方式实现对其的创建。 1、直接设置显示信息: ui->startBar->showMessage(tr("显示内容"),0); 说明:第二个参数表示显示的时间,默认值为0, 阅读全文
posted @ 2019-05-21 08:46 cloos.xie 阅读(3665) 评论(0) 推荐(0) 编辑
摘要: 头文件:#include <QString> 1、拼接 1)直接使用“+”; 2)append() 在字符串后面添加字符串; 3)prepend() 在字符串前面添加字符串。 QString str1 = "nihao "; QString str2 = "shijie"; QString str3 阅读全文
posted @ 2019-05-21 08:45 cloos.xie 阅读(3322) 评论(0) 推荐(0) 编辑
摘要: 1、python3中的字符串可以使用引号(’或”)开创建。 a = "hello World!” print(type(a)) 结果:<class 'str'> 2、python没有C语言等其他语言中“char”类型,哪怕只有一个字符,python也按照字符串处理。python访问子字符串,可以使用 阅读全文
posted @ 2019-04-15 08:50 cloos.xie 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 在使用Ubuntu14.04安装pyaudio是出现错误src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory 解决办法: sudo apt-get install python3-pyaud 阅读全文
posted @ 2019-04-03 20:33 cloos.xie 阅读(1576) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/woodenhead/p/8208870.html 参考链接:http://blog.sina.com.cn/s/blog_6f3d8a850102vwfx.html Ubuntu安装Qt时默认为动态编译,编译的结果运行时需要配置很多库,如果 阅读全文
posted @ 2019-03-29 20:04 cloos.xie 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: 一、Windows的DOS基础 a、通过 x: 来切换盘符(x表示你的盘符),如C: b、常用操作: dir 查看当前目录下的所有文件(夹) cd 进入到指定的目录 . 表示当前目录 .. 表示上一级目录 md 创建一个目录 rd 删除一个目录 del 删除一个文件 cls 清除屏幕 c、内存: b 阅读全文
posted @ 2019-03-28 10:35 cloos.xie 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1、测试硬件: STM32F405 所用IO:PA3,PC2,PC32、软件实现: 使能DMA2,初始化IO口,设置ADC. 阅读全文
posted @ 2019-03-27 15:19 cloos.xie 阅读(4226) 评论(0) 推荐(0) 编辑
摘要: 1、初始化时钟: RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOC | RCC_AHB1Periph_GPIOD | RCC_AHB1Periph_GPIOE, ENAB 阅读全文
posted @ 2019-03-27 14:56 cloos.xie 阅读(2984) 评论(0) 推荐(0) 编辑
摘要: 在STM32F40x中,系统的fHCLK时钟受到调压器输出电压级别选择(VOS)的影响(在电源控制寄存器中,详见中文参考手册第100页)。 此处的设置会影响系统fHCLK的值: 转载链接:http://www.openedv.com/forum.php?mod=viewthread&tid=8595 阅读全文
posted @ 2019-03-22 20:29 cloos.xie 阅读(1336) 评论(0) 推荐(0) 编辑