git clone https://github.com/malvira/th-12.git
git submodule init
git submodule update
cd th-12
make
This will produce the binaries that get loaded on the TH-12 hardware.
Load and flash on to the TH12 using the PROG12 programming pod and the tools in libmc1322x. The PROG12 and tag-connect pinout uses the BBMC "redbee-econotag" layout.
mc1322x-load -f coap-post-sleep_th12-lowpower.bin -t /dev/ttyUSB1 -c 'bbmc -l redbee-econotag erase'
Will load the main program in to RAM and execute it. To flash it so it persists over resets and power cycles:
mc1322x-load -f flasher_m12.bin -s coap-post-sleep_th12-lowpower.bin -t /dev/ttyUSB1 -c 'bbmc -l redbee-econotag erase'
PLEASE NOTE to flash the m12 you MUST use the m12 build of flasher. This is in the m12 branch of libmc1322x. run make BOARD=m12
Please see the TH12 Wiki for detailed documentation about how to use the coap-post-sleep firmware.
This source code is released under the same license that Contiki OS is released as.