Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1490523
  • 博文数量: 129
  • 博客积分: 1449
  • 博客等级: 上尉
  • 技术积分: 3048
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 18:36
文章分类

全部博文(129)

文章存档

2015年(3)

2014年(20)

2013年(65)

2012年(41)

发布时间:2014-07-24 09:18:35

1. 硬件: DS9490R, 温度探头: DS18B20, 刷好openwrt的WR703N一台2. 安装python-mini, 大约占用空间1.6M.  opkg install libffi python-mini3. 提供ar71xx内核的python专用库, 文件名为: xuowpy.so  将本文件拷贝到路由器上, 并修改属性  chmod +x  xuowpy.so4. python的代码如下点击(.........【阅读全文】

阅读(2414) | 评论(0) | 转发(0)

发布时间:2014-07-21 14:52:38

1. 硬件: DS9490R, 温度探头: DS18B20, 刷好openwrt的WR703N一台2. 软件: 必须安装好libusb_0.1.12, luasocketopkg install libusbopkg install luasocket3. 提供ar71xx内核的lua专用库, 文件名为: owlua.so  用winscp将本文件拷贝到路由器上  chmod +x  owlua.so4. lua代码, 读取温度值后再上传.........【阅读全文】

阅读(3436) | 评论(0) | 转发(0)

发布时间:2013-02-25 10:00:52

1-Wire Application InterfaceThis section provides a brief description of the API functions contained inthe 'general' and 'userial' 1-Wire libraries.Link-Level 1-Wire Net functions:--------------------------------   owTouchReset - Reset all devices on the 1-Wire Net. Result of fu.........【阅读全文】

阅读(2188) | 评论(0) | 转发(0)

发布时间:2013-02-14 09:45:04

Cunsigned char CRC8(unsigned char *ip, int i){unsigned char table_crc8[256] = {0, 94, 188,226,97, 63,221,131,194,156,126,32, 163,253,31, 65, 157,195,33, 127,252,162,64,30, 95, 1, 227,189,62, 96, 130,220, 35, 125,159,193,66, 28, 254,160,225,191,93, 3, 128,222,60, 98, 190,224,2, .........【阅读全文】

阅读(5587) | 评论(0) | 转发(0)

发布时间:2012-11-27 16:32:50

......【阅读全文】

阅读(1731) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册