There was a DALLAS 1-wire sensor. Many devices used to deal with it. So BM1707 (MP707) also did. This is a small USB device that has one sensor on board and ability to connect much more by wire. Also it has ability to control external relay by temperature changes.
More information on device available at http://olimp-z.ru/mp707 and http://www.masterkit.ru/main/set.php?code_id=565375
So what is it all about
This repo contains files to use with OpenWRT SDK. Current version uses libstdc++ and libusb.
Step by step guide
-
Run a linux machine.
Let's say it would be Ubuntu on virtualbox. Make sure you have enough disk space on virtual machine to store SDK. -
Download proper SDK from OpenWRT.org (release, hardware). If you're not sure what release/hw to use check supported devices list at http://wiki.openwrt.org/toh/start. Follwing example will download SDK for
attitude_adjustment
realease 12.09ar71xx
platform.wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
-
Decompress SDK.
tar xjvf OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
-
Download
bmtemp
package contentswget https://github.com/bubbafix/openwrt-bm1707/archive/master.zip
-
Decompress archive
unzip ./master.zip
-
Copy package contents into proper folder.
cp ./openwrt-bm1707-master/package/* ./OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/package/
-
Go into SDK folder.
cd /OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/
-
Compile package
make
-
If everything went well find these files:
bmtemp_2_ar71xx.ipk Packages Packages.gz
atls ./OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/bin/ar71xx/packages/
-
File
.ipk
is ready to be installed withopkg install ...
command.
Important Notice
There can be hardware limitations for USB on some routers so it won't work without external USB hub. E.g. for TL-MR3020: https://dev.openwrt.org/ticket/11985
- Maxim Integrated @ http://www.maximintegrated.com/ for beautiful solution
- People from www.masterkit.ru for BM1707 device.
- Initial code samples @ http://usbsergdev.narod.ru and http://olimp-z.ru/mp707
- All contributors for OpenWrt @ https://openwrt.org
- Public monitoring project @ http://narodmon.ru
- People who tried to use this package for their feedback