发布时间: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的代码如下点击(.........【阅读全文】
发布时间: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代码, 读取温度值后再上传.........【阅读全文】
发布时间: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.........【阅读全文】
发布时间: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, .........【阅读全文】