自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

tangweiguo0305的专栏

java,android开发

  • 博客(78)
  • 资源 (1)
  • 收藏
  • 关注

原创 计算蓝牙信号计算距离rssi

public double rssiTodistance(int rssi) { int rssiM = Math.abs(rssi); // 发射端和接收端相隔1米时的信号强度 int Amount = 59; // 环境噪声衰减因子 double n = 2.0; double power = (rssiM- Amount ) / (10 * n...

2020-01-08 22:12:53 1404

原创 Push to origin/master was rejected解决

androidstudio 提价代码是提示Push to origin/master was rejected解决方法是在项目目录下如下操作:1.Git Bash 命令到项目目录下git pull origin master --allow-unrelated-historiesgit push -u origin master -f如果没有提示错误再次push就...

2019-12-22 16:02:09 149

原创 python2.7.13交叉编译移植到arm

  1、linux主机:Ubuntu14.04  2、嵌入式linux内核版本:3.14.26 3、嵌入式硬件:M6GxC  Cortex-A7内核   4、交叉编译工具: gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux(arm-linux-gnueabihf-gcc) 步骤:1.官网下载python-2.7.132.进...

2018-07-26 17:14:13 1595

原创 卸载python3.4

1、卸载python3.4sudo apt-get remove python3.42、卸载python3.4及其依赖sudo apt-get remove --auto-remove python3.43、清除python3.4sudo apt-get purge python3.4orsudo apt-get purge --auto-remove python3.4...

2018-06-29 19:44:56 3593

转载 python 串口工具界面及调试代码

https://gitee.com/jakey.chen/Serial-Tool

2018-06-24 23:09:58 2903

原创 PLC 固定时间切换



2018-06-22 11:23:15 1034

转载 修改mac地址,防止远程软件过期

https://jingyan.baidu.com/article/597a06432e6833312b5243f3.html

2018-06-12 15:54:17 343

转载 python-ble开发

https://draapho.github.io/2016/11/15/1616-python-ble/

2018-06-10 01:11:44 3458

转载 蓝牙4.0 BLE 多设备连接

http://www.cnblogs.com/xqxacm/p/7488444.html

2018-05-30 16:11:58 2951

转载 andriod 自动配对

https://blog.csdn.net/qq_25827845/article/details/52997523

2018-05-30 14:49:17 655

转载 修改linux网络ip及配置

https://jingyan.baidu.com/article/76a7e409daca52fc3b6e15e5.html

2018-05-25 11:58:15 459

转载 蓝牙BLE4.0服务及特性UUID

https://blog.csdn.net/zjy323520/article/details/52164025https://blog.csdn.net/qq_30552993/article/details/51822726(Android BLE最完整的工具类(扫描/连接/读写/通知设备),可以手机与设备进行通讯)...

2018-05-04 10:44:13 4057

原创 android studio 不能调试

1.在我们手机上把开发者模式打开,调试打开,依然不能在android studio上调试及debug模式安装app解决方法:在gradle.properties:android.injected.testOnly=false

2018-05-03 14:35:57 658

原创 pyserial 16进制接收显示与发送

def hexShow(argv): result = '' hLen = len(argv) for i in xrange(hLen): hvol = ord(argv[i]) hhex = '%02x'%hvol result += hhex+' ' print 'hexShow:',...

2018-03-13 21:11:20 1801

原创 byte[] 转 16进制字符串 及 16进制字符串转int

public class HtoInt { private static final char[] HEX_CHAR = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; public static void main(String[] arts) { // String h...

2018-02-09 21:15:21 1125

原创 NIO编写Socket服务器

下面程序接收客户端输入一行文本(以“\r\n”)结束,并向客户端回显输入的文本。如果输入的文本是 “get file:xxxx”模式,则把“xxxx” 解析为服务器class path下的一个文件,如果找到该文件,则回显该文件的内容,如果找不到文件,回显文件不能找到的消息。[java] view plain copyimport java.io.IOException;  import java....

2018-02-08 23:42:14 183

原创 设备二进位浮点算数标准

32位浮点数IEEE754格式: 1位符号位 + 8位指数位 + 23位尾数转换思路:1、计算整数部分的二进制格式;2、计算小数部分的二进制格式;3、位移并计算指数4、合并package com.holon.sample;    import java.util.ArrayList;  import

2018-02-04 22:31:52 176

原创 ModBuspoll+Slave模拟modBus通信

https://jingyan.baidu.com/article/39810a2383bafdb636fda6b0.html

2018-02-01 00:34:15 1201 1

原创 源代码常用网址

https://sourceforge.net/projects/jdnp3/?source=typ_redirectwww.sf.net

2018-01-30 21:00:46 185

原创 字符数组和16进制互换

//字符数组转换16进制public static String bytes2HexString(byte[] b) {        String r = "";                for (int i = 0; i             String hex = Integer.toHexString(b[i] & 0xFF);            if

2018-01-30 09:22:17 475

原创 studio 统计代码的行数

使用工具: staticstic

2018-01-24 19:31:25 244

原创 android studio SDK开发

apply plugin: 'com.android.library'// applicationId "myjar.myapplication"public class MResource { public static int getIdByName(Context context, String className, String resName) {

2018-01-24 13:59:00 223

转载 Service Intent must be explicit

http://blog.csdn.net/shenzhonglaoxu/article/details/42675287

2018-01-24 10:56:44 167

转载 cmake处理多源文件目录的方法

http://blog.csdn.net/a794226986/article/details/18616511总结:https://www.cnblogs.com/Free-Thinker/p/6163315.html

2018-01-12 14:56:55 2426

原创 json, recyclerView问题

springMVC:The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and

2017-12-15 08:43:02 1893

原创 android一行代码实现沉浸式布局效果

http://blog.csdn.net/huangxiaoguo1/article/details/54928446首先要引入statusbaruitl库 compile 'com.jaeger.statusbaruitl:library:1.3.5'1在Activity中一行代码实现: //目的是让状态栏全透明 StatusBarU

2017-12-15 08:37:31 283

转载 Recycler表格(excelPanel)

excelPanel:一个二维RecyclerView,它可以加载历史数据。(https://www.ctolib.com/excelPanel.html)地址:https://github.com/zhouchaoyuan/excelPanel

2017-12-11 11:54:45 843

转载 MPAndroidChart 动态更新

http://blog.csdn.net/u014136472/article/details/50383454

2017-12-09 23:17:26 3227

转载 android socket长连接

MinaSockethttps://github.com/Jeromeer/MinaSocket

2017-12-08 10:14:57 270

转载 查看手机的app的内存

内存泄漏:$adb shell getprop dalvik.vm.heapgrowthlimit    320m$adb shell getprop dalvik.vm.heapsize   512mhttp://huyuxin.top/2017/10/22/memoryleak/

2017-12-07 20:36:04 650

原创 retrofit2.0 解析string

public class StringConverterFactory extends Converter.Factory { public static StringConverterFactory create() { return new StringConverterFactory(); } public Converter responseBod

2017-12-07 16:05:42 534

转载 Android中应用程序如何获得系统签名权限

有些库的使用条件比较苛刻,要求同一签名的程序才可以获得访问权。此时即便是在AndroidManifest.xml中添加了相应的permission,依旧会得到没有xx访问权限的问题。比如android.permission.ACCESS_SURFACE_FLINGER 。 第一个方法简单点,不过需要在Android系统源码的环境下用make来编译:        1. 在应

2017-12-01 19:27:45 523

原创 RecyclerView baseadapter

RecyclerView 开源Adapter,可以加载更多,但是不能下拉刷新。 可以 头内容布局,多种布局显示,空布局;可以节省70%的代码.确定不能XrecyclerView一起用,XrecyclerView可以下拉刷新,加载更多。         android:id="@+id/swipeLayout"        android:layout_width="match

2017-11-09 19:43:06 245

原创 图标库

http://www.iconfont.cn/collections/detail?cid=29(图标管理)

2017-11-07 16:58:15 242

原创 android ArrayList<String> 转 String[]

String[] labels = (String[]) xLabels.toArray(new String[xLabels.size()]);

2017-10-30 11:16:44 3159

转载 linux驱动实例

1.http://www.cnblogs.com/geneil/archive/2011/12/03/2272869.html(linux设备驱动程序之简单字符设备驱动)2.http://blog.csdn.net/haomcu/article/details/44620725(linux设备驱动第三篇:写一个简单的字符设备驱动)

2017-10-29 18:00:17 493

原创 无法登陆ubuntu系统解决方法

进入ubuntu登陆界面,输入正确的登陆密码,屏幕闪一下,又回到登陆界面,无法登陆到系统解决方法: 按--键,通过console进入系统,删除home目录下的.Xauthor*文件:root@kevin:/home# find -name .Xauthor*  ./twg123/.Xauthority-c  ./twg123/.X

2017-10-25 23:33:22 938

转载 svn服务器搭建

http://blog.csdn.net/daobantutu/article/details/60467185

2017-10-25 12:22:54 125

原创 学习excel,fragment刷新

http://blog.csdn.net/z13759561330/article/details/40737381(fragment  new的问题)http://www.jb51.net/article/97788.htmhttp://www.cnblogs.com/begin1949/p/5910785.htmlhttp://blog.csdn.net/nizhuanxi

2017-10-23 00:47:11 150

转载 andorid 开源数据库 greenDao

GreenDao3.2的使用,爱不释手本篇文章包括以下内容:前言GreenDao3.2的简介GreenDao3.2的配置GreenDao3.2的使用结语前言GreenDao是一款操作数据库的神器,经过了2.0版本的升级后,已经被广泛的开发者使用。确实是很好用,入门简单,可以剩去了数据库的建表操作和数据库SQL的编写,博主用了一次之后爱不释手,和以前的数据库操作一大堆

2017-10-21 19:31:55 235

javaweb顶替震 寺院 地寺

ddaaddsafdfafafa好的苯枯燥城在职夺在震

2010-01-27

空空如也

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

TA关注的人

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