自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(74)
  • 收藏
  • 关注

原创 install wxwidgets and wxPython on Linux

https://wiki.wxwidgets.org/Compiling_and_getting_startedhttps://wiki.wxwidgets.org/Compiling_and_getting_started pip install wxPython

2023-07-28 15:32:59 320

原创 shell数组中字符串元素含有空格处理

shell数组中字符串元素含有空格处理

2023-05-30 16:41:15 936 1

原创 ESP32-s2芯片esp32-s2-saola-1开发板 micropython的repl连接

本文只是解决通过esp32-s2-saola-1开发板 自带microUSB 作为repl与micro python通信的问题。原因:micropython 的镜像将repl通过原生USB,所以板载microUSB只能看到debug信息。2. esp32-s2-saola-1板载microUSB,通过USB先访问。如果你对esp32,micropython不熟,本文不适合你。1. esp32-s2原生USB,需要通过插针访问。如果你用的不是esp32-s2,你不需要关心。先说结论需要硬接线原生USB。

2023-04-23 13:25:59 623

原创 ESP32-CAM上手

ESP32-CAM上手

2022-12-29 17:02:48 287

原创 Linux环境下vs code中Markdown与PlantUML联合工作

在VS code中配置markdown和PlantUML,可以即时生成UML图。

2022-12-29 16:54:23 772

原创 超宽带(UWB)开发板BU0/DW1000性能测试

本实验目的是测试NodeMCU-BU01开发板测距的性能。BU01是基于Decawave的DW1000设计的超宽带(UWB)收发器模组。BU01可以用于双向测距或TWR定位系统中,定位精度可达到10厘米,并支持高达6.8 Mbps的数据速率。

2022-12-29 16:40:46 1746

原创 安装vmware tools 后也不能和主机之间复制、粘贴内容、拖拽文件的解决方案

安装vmware tools 后也不能和主机之间复制、粘贴内容、拖拽文件的解决方案

2022-05-24 18:58:55 1810 2

原创 JNI 最佳实践 Best practices for using the Java Native Interface

该文章为Best practices for using the Java Native Interface – IBM Developer的笔记,也是Java Native Interface (JNI) 简介_coolwaterld的专栏-CSDN博客的延续。

2022-03-03 17:48:47 390

原创 Java Native Access简介, 解决java.lang.NoClassDefFoundError和cannot find symbol com.sun.jna.Library问题

目录Introduction to JNAWho use JNA?FeaturesWhy JNA下载jarHello World示例总结:对比JNI和JNA方法JNI的方式JNA的方式Introduction to JNAJava Native Access (JNA) is a community-developed library providing Java programs an easy access to native shared libr.

2022-02-23 13:58:58 1819

原创 Java Native Interface (JNI) 简介

本文为Core Java Volume II Advanced Features 11th.Edition笔记,介绍如何使用JNI接口,主要用于java调用本地接口(C,CPP)

2022-02-23 11:38:11 603

原创 rpcgen: c语言实现远程过程调用

Those who do not understandUnixare condemned to reinvent it, poorly.不懂Unix的人注定最终还要重复发明一个蹩脚的Unix。Usenet 签名, 1987 年11 月 ——Henry Spencer1. 如何使用rpc?先要安装rpcbind库(可能需要portmap支...

2021-11-04 09:12:14 506

原创 解决 docker portainer的invalid credentials问题 Unable to retrieve endpoints

在运行docker portainer是(127.0.0.1:9000)报错, Invalid credentials ,Unable to retrieve endpoints。解决方法:1.删除对应的docker container2. 删除加载的volumesudo ls/var/lib/docker/volumes/portainer_datasudo rm -rf/var/lib/docker/volumes/portainer_data3. 重新运行dock...

2021-08-10 13:40:11 4098

原创 在Arduino和ESP32-s2环境下,测试WiFi Fine Time Measurement (FTM) Round Trip Time (RTT) 的定位和测距

1. 原理http://people.csail.mit.edu/bkph/ftmrtt_intro优点是AP和phone不需要是同步。The round trip time measurements are not perfectly accurate, being subject to various types of measurement error, RF interference as well as the positions and motions of objec.

2021-08-02 14:25:10 2288 1

原创 解决 “Error: connect ECONNREFUSED“ 在docker 中,使用node-red-contrib-influxdb(Node-RED) 连接 influxDB2

目标:在dockers中分别运行influxdb2和Node-RED,Node-RED中node-red-contrib-influxdb(0.6.1)作为客户端读写influxdb2架构:前提:Docker (18)Python(3.7.3,optional)安装环境:​​​​​​​1. Influxdb[1]1.1 InstallCreate a new directory to store your data in and navigate into..

2021-07-20 14:20:28 3633

原创 TTGO T-Watch-2020 编程系列(三) Hello World,添加日期在主屏幕

本文深度依赖 TTGO T-Watch-2020 编程系列(二) 开发环境的搭建Windows, 没看过的请先看https://blog.csdn.net/coolwaterld/article/details/109067854 不知道什么是TTGO T-Watch-2020的请参看TTGO T-Watch-2020 编程系列(一)基于ESP32可编程手表简介,https://blog.csdn.net/coolwaterld/article/details/109065963 决定是否需要看本文 本

2020-10-14 13:22:41 1538

原创 TTGO T-Watch-2020 编程系列(二) 开发环境的搭建Windows

现阶段只介绍windows下的环境搭建,Linux和Mac的环境类似。这里只介绍Arduino开发,还可以用其他的工具 visual studio code + PlatformIO或者micropython等,总之ESP32能用的开发环境TTGO T-Watch-2020都能用。只是驱动支持的好不好问题。以后会介绍基于micropython,lua或者node.js的环境搭建。主要参考文档:https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Libr

2020-10-14 11:02:39 3305 2

原创 TTGO T-Watch-2020 编程系列(一)基于ESP32可编程手表简介

T-Watch-20201什么是?它不是一个消费类的手表!待机时间短(默认程序待机不到1天),需要二次开发,比手环贵,不防水……. 总之,你不知道arduino, esp32,那么请飘过,这个手表不适合你,当然这篇文章也不适合你(不是嫌弃你,只是不想浪费你时间)。它是一块ESP322开发板(240 MHz 主频双核处理器+Wi-Fi+蓝牙的soc),+触摸屏+电源模块(380mA电池)+三轴加速度传感器++RTC时钟+震动马达+扬声器+红外信号发生器+表壳表带(作为开发板它是很值得的)+外置fals

2020-10-14 09:39:16 6827 1

原创 How to resolve `unmet dependencies, Depends: nodejs but it is not going to be installed` npm

为了安装Node-Red,将ubuntu 18.04 的node.js v8 升到node.js v10[Supported Node versionshttps://nodered.org/docs/faq/node-versions]1. 安装node.js v10sudo apt install curlcurl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -sudo apt install nodejs...

2020-05-12 11:09:32 1867 1

原创 Mosquitto MQTT Broker 服务器的配置,增加登录鉴权设置

本文的重点是从匿名访问mqtt broker(只需要Ip和port),到需要登录(用户名和密码)和鉴权(发布和订阅那些topics)的过度的 过程。安装 Mosquitto MQTT Broker 1sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppasudo apt-get updatesudo apt-get...

2020-05-07 13:20:58 2382

原创 跨平台桌面GUI程序wxPython wxwidgets wxFormBuilder

目的:快速开发跨平台(windows, linux)桌面应用程序环境搭建:Windows篇安装wxwidgetswxWidgets是一个开源的跨平台的C++构架库(framework),它可以提供GUI(图形用户界面)和其它工具。目前的2.x版本支持所有版本的Windows、带GTK+或Motif的Unix和MacOS。一个支持OS/2的版本正在开发中。https://www.w...

2020-04-21 14:55:51 1193

原创 在Windows 下用Visual Studio编译 paho.mqtt.c

Pre-condition:Microsoft Visual Studio 14.0 2015 cmake/cmake-gui Openssl下载地址:https://slproweb.com/products/Win32OpenSSL.html版本没有特别要求,我用的是Win64 OpenSSL v1.1.1d,注意两点:下载openssl Win32 Win64 和你要...

2019-10-24 14:10:34 3019

原创 [Error] assignment to expression with array type

int array1[] = {1,2,3};int *array2;int array3[3];array2 = array1;//copy pointer onlyarray3 = &array1;//errorTo elaborate, fromC11, chapter §6.5.16assignment operator shall have a mo...

2019-08-20 09:52:46 15830

原创 在lua语言中修改的模块文件(module)不会在使用的文件(require)中立即生效

硬件:ESP8266为核心的wemos d1 minihttps://s.taobao.com/search?q=wemos+d1+mini&imgfile=&js=1&stats_click=search_radio_all%3A1&initiative_id=staobaoz_20190315&ie=utf8固件:NodeMCU任务:以mod...

2019-03-15 16:47:46 1261

原创 动态链接库和静态链接库的相互包含问题及实现

动态链接库和静态链接库的基本概念请参考1.《深入理解计算机系统》第七章链接2.《程序员的自我修养》第4章 静态链接和第7章 动态链接3.http://blog.jobbole.com/86852/目的为了封装代码,简化接口,我们要把已有应用代码封装为动态链接库,应用代码又调用了其他库的文件,为了减化编译配置,我们希望动态库直接调用其他库,固测试以下四种情况(含测试...

2018-12-19 09:58:15 4451 1

原创 零基础构建OpenDDS demo quick started

零基础构建OpenDDS demo参考:OpenDDS Developer's Guide 第二章Getting Started1.建立idl内容:2. 生成工程文件2.1 运行tao_idl(此步骤可以跳过)~/Downloads/OpenDDS-3.13/DevGuideExamples/Messenger$ tao_idl Messenger.idlp...

2018-12-05 15:40:16 1994 1

原创 利用树莓派漏极输出控制电机 Using Raspberry Pi open drain output GPIO to control a moter

Keyword关键字Raspberry Pi树莓派, GPIO 通用IO, open drain output漏极输出Motivation动机项目中有一个pwm控制的电机,需要漏极开路[8]( An open collector is a common type of output found on many integrated circuits (IC), which behaves ...

2018-12-05 11:23:40 953

原创 HIgrow(ESP32 Rev1 WiFi 蓝牙电池 DHT11土壤温度湿度传感器模块)使用指南

Higrow使用指南作者:coolwaterld邮箱:[email protected]安装arduino (windows)https://downloads.arduino.cc/arduino-1.8.7-windows.exe 安装ESP32扩展https://randomnerdtutorials.com/installing-the-esp32-...

2018-11-06 10:51:50 6142 2

转载 Idioms for C programmers

Idioms for C programmersThis document collects some idiomatic examples of the C way of doing things. None of these examples have been tested. Please report errors or difficulties to comp40-staff.Fo...

2018-07-26 12:23:12 171

原创 CMakeLists 中file GLOB的陷阱:undefined symbol错误

例子:为了规范代码写了如下CMakeLists##############################################################################################################################Files include##############################...

2018-07-26 11:34:06 6384

原创 关于OPCUA 协议 Bad Certificate Untrusted问题的解决

在windows环境下运行UA demo server 和 UAexpert,解决 Bad Certificate Untrusted问题的解决

2017-07-18 15:56:38 13255 10

原创 在虚拟机下运行gazebo,关于vmw_ioctl_command error Invalid argument错误

解决 在虚拟机下不能运行 ROS gazebo的问题

2017-05-18 15:02:38 17373 12

原创 解决fatal error: Python.h: No such file or directory

解决找不到Python.h的编译错误

2016-04-29 11:34:10 4737

转载 电学发展史

关于电,磁,有线通信,无线通信,电池,点灯,电动机和电子元器件的简要历史

2016-04-29 09:39:56 2824

原创 ubuntu下安装和更新R语言

本文主要讲解在ubuntu下如何安装和更新R语言。将分别介绍什么是R语言,简单方法安装R语言,通过更新源来安装或更新R语言,和安装R语言集成开发环境。

2015-12-15 11:32:03 11463

原创 手机对焦原理

简介反差对焦,相位对焦和三角测距对焦原理和区别。

2015-08-28 12:01:03 2936

原创 Android Serialization序列化

为了方便测试传感器数据处理算法,Android 程序的采集数据,序列化保存为文件;pc程序再通过反序列化 读入对象,在PC上测试算法。

2015-07-20 14:34:55 1409

转载 Ubuntu更新包管理器失败:Requires installation of untrusted packages问题解决

最近使用的Ubuntu系统很不稳定,在关机的时候莫名奇妙的无法关机,只能强制关机。考虑进行更新,执行sudo apt-get update之后,发现有index无法获取,执行sudo apt-get upgrade也不成功,发现包是有问题的,为此,考虑在Update Manager中直接进行更新,发现出现如下问题:Requires installation of untrusted p

2015-07-06 09:22:25 1659

原创 ADB cannot bind ‘tcp:5037′ ADB server didn’t ACK

在安装genymotion之后,突然adb server连接不上了的解决方案

2015-06-03 10:41:52 2759

原创 “Nothing to push” error in Android studio with Git

如何在android studio中使用git,以及解决“Nothing to push”

2015-05-18 11:07:49 1834

原创 使用android hide API

如何调用hide api

2015-05-12 16:55:15 4143 1

空空如也

空空如也

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

TA关注的人

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