This document explains how to convert an Intel Edison from Yocto to Debian GNU/Linux. The conversion is done by installing Debian "in place", without having to re-flash the system.
The resulting Debian system will use the Linux kernel and modules
// Return 1 for insulin-related events, 0 for events to skip, -1 on error. | |
static int decode_history_record(uint8_t *data, int len, int family, history_record_t *r) { | |
memset(r, 0, sizeof(*r)); | |
r->type = data[0]; | |
r->length = 7; | |
switch (r->type) { | |
case Bolus: | |
if (family <= 22) { | |
r->length = 9; | |
r->time = decode_time(&data[4]); |
This document explains how to convert an Intel Edison from Yocto to Debian GNU/Linux. The conversion is done by installing Debian "in place", without having to re-flash the system.
The resulting Debian system will use the Linux kernel and modules
FROM debian | |
RUN apt-get update && apt-get install -y \ | |
npm \ | |
nodejs-legacy \ | |
git | |
COPY . /src | |
WORKDIR /src |
#!/usr/bin/python | |
from rflib import * | |
d = RfCat() | |
print 'Created RfCat instance' | |
d.setFreq(916620000) | |
d.setMdmModulation(MOD_ASK_OOK) | |
d.setMdmChanBW(300e3) |
FROM debian:latest | |
RUN apt-get update | |
RUN apt-get install -y git npm | |
# make sure nodejs binary is available as node | |
RUN cd /usr/bin && ln -s nodejs node | |
COPY . /src |