Commit Graph

262 Commits

Author SHA1 Message Date
Bart Van Der Meerssche 112661303d [avr] add debugging to INT{0,1} ISRs 2011-01-25 20:51:08 +01:00
Bart Van Der Meerssche 33cffa6b79 [fluksod] -d switch will put fluksod.lua in debugging mode 2011-01-25 15:10:18 +01:00
Bart Van Der Meerssche 3d41fba408 [fluksod] encode/decode all sensor board commands 2011-01-25 14:54:40 +01:00
Bart Van Der Meerssche 6084528217 [fluksod] enclose dbg.vardump in a DEBUG switch 2011-01-25 10:32:47 +01:00
Bart Van Der Meerssche 769df42192 [openwrt] add 990-add_timerfd_support.patch to install script 2011-01-25 10:19:36 +01:00
Bart Van Der Meerssche c2c2dd051b [fluksod] set msg.received.{l,u} to nil when equal to empty string 2011-01-25 10:09:55 +01:00
Bart Van Der Meerssche fc1f955b51 [avr] set commands should repeat the params in the reply 2011-01-24 22:16:48 +01:00
Bart Van Der Meerssche 5dcac14c60 [avr] change SPI definitions to hex values 2011-01-24 22:14:48 +01:00
Bart Van Der Meerssche 8d28890acb [fluksod] return timestamp as first part of the delta reply 2011-01-24 18:53:51 +01:00
Bart Van Der Meerssche 728ac3e059 [nixio] enclose numexp with a __linux__ switch 2011-01-24 15:42:38 +01:00
Bart Van Der Meerssche c754127df2 [fluksod] set up a timerfd to poll the sensor board periodically 2011-01-24 14:40:52 +01:00
Bart Van Der Meerssche 3da4eee152 [nixio] add timerfd and numexp functions to get timer notifications via fds 2011-01-24 14:15:30 +01:00
Bart Van Der Meerssche abaefa00ad [uClibc] include linux-specific timerfd syscalls 2011-01-24 14:11:27 +01:00
Bart Van Der Meerssche 3cc10bde7d [nixio] clean up compiler warnings 2011-01-24 13:34:30 +01:00
Bart Van Der Meerssche 528a121b2e [nixio]: add a setitimerfd function to the library 2011-01-24 10:50:27 +01:00
Bart Van Der Meerssche d7a4425662 [openwrt] add luaprofiler and ucitrigger packages to the build 2011-01-24 10:46:22 +01:00
Bart Van Der Meerssche 0ff4f20cfc [fluksod] put an advisory lock on spidev 2011-01-22 00:07:01 +01:00
Bart Van Der Meerssche 2fa9a53766 [fluksod + nixio] add { ctrl, delta, uart } dispatching 2011-01-21 20:31:18 +01:00
Bart Van Der Meerssche 0d3f076b5f [spidev + nixio + fluksod] allow the bitbanged spi max speed and inter-byte delay to be dynamically set from user space 2011-01-19 22:12:49 +01:00
Bart Van Der Meerssche d208545000 [avr + fluksod] enable crc checking in both spi directions 2011-01-17 11:11:44 +01:00
Bart Van Der Meerssche e282a750de [avr] add comments to commands 2011-01-16 23:41:53 +01:00
Bart Van Der Meerssche b641230fc8 [avr] add {hw,sw} {major,minor} sensor board versioning 2011-01-16 23:25:11 +01:00
Bart Van Der Meerssche b2e7f486f9 [openwrt] add spi tuning patch to install script 2011-01-16 19:39:46 +01:00
Bart Van Der Meerssche dedbb4daf6 [avr] add interrupt tracing to TIMER1 ISR 2011-01-16 17:32:21 +01:00
Bart Van Der Meerssche 8813c816ff [avr] fix interrupt tracing and remove unneeded volatiles 2011-01-16 17:30:55 +01:00
Bart Van Der Meerssche b224ffdf23 [avr] optimize btoh and htob for 8-bit uc 2011-01-16 12:00:41 +01:00
Bart Van Der Meerssche 0af40cf27d [avr] couple the LED heartbeat to activity on the SPI bus 2011-01-16 10:44:48 +01:00
Bart Van Der Meerssche 9c47f71514 [avr] inline htob and btoh functions 2011-01-15 23:30:59 +01:00
Bart Van Der Meerssche 65db2fe1dd [avr] add debug macros for tracing interrupts 2011-01-15 23:06:48 +01:00
Bart Van Der Meerssche f74b124884 [avr] add DOW CRC8 function and add the checksum to a ctrl message 2011-01-15 23:03:16 +01:00
Bart Van Der Meerssche 968e25c863 [fluksod] spi half-duplex logic is now handled in the kernel driver 2011-01-15 19:56:40 +01:00
Bart Van Der Meerssche f033d465ad [spidev] tune the spi bitbanging driver for interaction with an AVR slave 2011-01-15 10:27:58 +01:00
Bart Van Der Meerssche d3dd4366da [fluksod] implement spi read operation in C 2011-01-11 09:24:29 +01:00
Bart Van Der Meerssche aa412d1dc4 [nixio] implement hextonum and numtohex in C 2011-01-10 14:50:10 +01:00
Bart Van Der Meerssche 7c3ad70ff2 [nixio] implement dow_crc8 in C 2011-01-10 01:22:20 +01:00
Bart Van Der Meerssche d60e749873 [openwrt] add the luaprofiler package 2011-01-09 22:18:50 +01:00
Bart Van Der Meerssche 3298f30ead [fluksod] compile luad against the gnu99 standard 2011-01-09 19:57:22 +01:00
Bart Van Der Meerssche 9a27a1f22d [fluksod] chmod 666 /dev/spidev0.0 in rc.local 2011-01-09 14:01:37 +01:00
Bart Van Der Meerssche f3516415bd [fluksod] skeleton implementation of message processing on spidev bus 2011-01-09 12:00:50 +01:00
Bart Van Der Meerssche 221636f5cf openwrt: luad is a libdaemon-based generic daemonization framework for Lua code 2011-01-07 14:41:46 +01:00
Bart Van Der Meerssche 3e258f13f8 openwrt: add flukso as a user/group 2011-01-05 20:58:27 +01:00
Bart Van Der Meerssche 619b6e0436 openwrt: add 120-add_gettimeofday.patch to luci/patches 2010-12-30 23:34:01 +01:00
Bart Van Der Meerssche 0dc94a5994 openwrt: add gettimeofday to nixio library 2010-12-30 23:33:01 +01:00
Bart Van Der Meerssche b0fd16364e avr: add version field and s/gv [set/get version] command 2010-12-29 21:45:41 +01:00
Bart Van Der Meerssche 21984e237a avr: port INT0 and INT1 ISRs to flukso v2 2010-12-29 17:43:17 +01:00
Bart Van Der Meerssche db42f36f91 avr: return an [e]rror in case of an unrecognized command 2010-12-29 16:22:01 +01:00
Bart Van Der Meerssche 20a13be0d3 avr: flush the ctrl Tx buffer when decoding a new command 2010-12-29 15:29:31 +01:00
Bart Van Der Meerssche 9c5842f262 avr: adapt scaling factor in power calc to increased sampling freq [667Hz] 2010-12-29 15:28:43 +01:00
Bart Van Der Meerssche d80377ee19 avr: set up the ADC with bandgap as a reference 2010-12-29 14:08:20 +01:00
Bart Van Der Meerssche 381e235af3 avr: port analog input sampling + power calculation and implement gd [get delta] command 2010-12-28 23:23:16 +01:00
Bart Van Der Meerssche b63f36cba0 avr: move SPI_... defs to header file, change value into counter name 2010-12-28 14:34:56 +01:00
Bart Van Der Meerssche 263d3d107a avr: prevent race conditions when getting/setting parameters 2010-12-28 00:34:50 +01:00
Bart Van Der Meerssche 1ada193cea avr: implement g/sw [get/set watchdog time-out events] and g/sb [get/set brown-out events] 2010-12-27 23:23:15 +01:00
Bart Van Der Meerssche 3d1b67f221 avr: implement gm [get meterconst] and sm [set meterconst] commands 2010-12-27 23:12:52 +01:00
Bart Van Der Meerssche 80ae936348 avr: implement gv [get value] and sv [set value] commands 2010-12-27 23:04:55 +01:00
Bart Van Der Meerssche 98496e442d avr: implement char/short/long read and write functions from/to ctrl buffer 2010-12-27 21:39:55 +01:00
Bart Van Der Meerssche 01863a6594 avr: implement the ct [commit] command 2010-12-26 22:30:51 +01:00
Bart Van Der Meerssche 90645f81c2 avr: implement sp [set phy-to-logical] command 2010-12-26 19:54:15 +01:00
Bart Van Der Meerssche 2e6336b0f8 avr: remove hex encoding for ctrl messages 2010-12-26 19:31:59 +01:00
Bart Van Der Meerssche 6f377bdc53 avr: implement the gp [get phy-to-logical] command 2010-12-26 19:03:22 +01:00
Bart Van Der Meerssche d0dfd67d30 openwrt: include kmod-spi-gpio 2010-12-26 12:14:10 +01:00
Bart Van Der Meerssche 17456428dd openwrt: prettify the install script output 2010-12-24 10:56:35 +01:00
Bart Van Der Meerssche af6a4d20ce openwrt: add rrdtool 1.0.x to the build 2010-12-21 22:06:02 +01:00
Bart Van Der Meerssche 05bb8a88d3 openwrt: select avrdude package for inclusion in flukso v2 image 2010-12-21 21:49:23 +01:00
Bart Van Der Meerssche 2c8f97aadb openwrt: swap MOSI and MISO pins on bitbanged SPI 2010-12-20 13:23:51 +01:00
Bart Van Der Meerssche 1a9ada411f openwrt: clean up luci nixio tls and unix domain socket patches and apply them to luci 0.9 2010-12-19 21:17:16 +01:00
Bart Van Der Meerssche 6fe1376501 openwrt: port install shell script to flukso v2 2010-12-19 21:01:24 +01:00
Bart Van Der Meerssche f5d4df2b2a openwrt: port .config file with enabled kmod-spi-bitbang and kmod-spi-dev for flukso v2 2010-12-19 21:00:43 +01:00
Bart Van Der Meerssche 4652104d5c openwrt: flush outdated patches in flukso v2 2010-12-19 20:58:01 +01:00
Bart Van Der Meerssche c2e0d32a53 openwrt: port patches to flukso v2 and update numbering scheme 2010-12-19 20:55:18 +01:00
Bart Van Der Meerssche b99af29cbd openwrt: port files dir to flukso v2 2010-12-19 20:53:54 +01:00
Bart Van Der Meerssche b12a52ae87 openwrt: port avahi plus dependencies [expat, gdbm, intltool, libdaemon] to flukso v2 2010-12-19 20:50:47 +01:00
Bart Van Der Meerssche fbfc451971 openwrt: port customized LuCI 0.9 package to flukso v2 2010-12-19 20:47:20 +01:00
Bart Van Der Meerssche c44b378450 eagle: clean up PCB layout for sensor board, shorten current paths for decoupling capacitors 2010-12-04 10:14:54 +01:00
Bart Van Der Meerssche 164300276f Merge branch 'develop' of github.com:icarus75/flukso into develop 2010-12-03 22:38:43 +01:00
Bart Van Der Meerssche 76b5ef7a3d openwrt: update the installation instructions for a Backfire tailored to Flukso platforms 2010-12-03 22:04:37 +01:00
Bart Van Der Meerssche a97b135c99 eagle: swap LED and AR_TXO pins, relocate a couple of GND vias 2010-11-29 11:17:32 +01:00
Bart Van Der Meerssche d3cb9618f7 avr: replace quad nand with hex inverter for level shifting 2010-11-12 14:05:55 +01:00
Bart Van Der Meerssche c058f0e896 openwrt: increase SPI clk speed to 16kHz 2010-11-12 10:39:24 +01:00
Bart Van Der Meerssche 558d74d352 avr: include analog comparator and pulse input code into basiciotest 2010-11-12 10:36:59 +01:00
Bart Van Der Meerssche 66e2cebf10 openwrt: avrdude does not like GPIO0 in its pin definitions, this patch spreads the GPIO0 love 2010-11-05 21:26:27 +01:00
Bart Van Der Meerssche 54e38ad77e openwrt: adapt the avrdude rst/sck/mosi/miso gpio pin mapping for Dragino 2010-11-05 21:23:56 +01:00
Bart Van Der Meerssche 9130c5294f openwrt: change the SPI GPIO pin mapping to work for Dragino 2010-11-05 21:22:03 +01:00
Bart Van Der Meerssche 4d5a3a2a39 avr: improve the L2/L3 protocol on the SPI interface 2010-10-16 21:39:35 +02:00
Bart Van Der Meerssche 0e2405b496 avr: customize makefile for v2 sensor board (atmega168 @3.69Mhz) and add make rprogram command for remote programming through avrdude 2010-10-16 21:28:58 +02:00
Bart Van Der Meerssche 56848df315 avr: add ctrl Rx and Tx buffer functions 2010-10-16 21:25:57 +02:00
Bart Van Der Meerssche 04e4a6cc99 openwrt: clean up the button Makefile 2010-10-13 11:08:23 +02:00
Bart Van Der Meerssche c0543f206d avr: allow 32-bit meterconstants for pulse inputs 2010-10-13 11:07:51 +02:00
Bart Van Der Meerssche c8e1cd6975 openwrt: add multiple sensors to avahi config file 2010-10-13 10:28:37 +02:00
Bart Van Der Meerssche 23b3b2f83e openwrt: add button package to v1 backfire build 2010-10-13 00:12:33 +02:00
Bart Van Der Meerssche e5e352d5ca avr: make pulse constant and half parameters configurable per input 2010-10-10 20:06:11 +02:00
Bart Van Der Meerssche 8f1836e8b8 openwrt: add avahi support plus dependencies 2010-10-05 00:10:48 +02:00
Bart Van Der Meerssche 850cb3d307 openwrt: Switching from lucid to uhttpd. The restful.lua CGI script has been kept sober on purpose to boost performance. The RESTful API can now handle 10 calls/s. 2010-10-05 00:05:50 +02:00
Bart Van Der Meerssche 23ad638752 openwrt: enable avahi/bonjour 2010-10-03 21:22:19 +02:00
Bart Van Der Meerssche fe37a7f417 openwrt: localVersion should be 1.0 2010-10-03 21:12:40 +02:00
Bart Van Der Meerssche 332d3ef4e1 openwrt: nan should be string encoded 2010-10-03 21:12:01 +02:00
Bart Van Der Meerssche f8a732c88b openwrt: only keep the values within the last cutoff secs, not entries, and stuff the time series with nan 2010-10-01 20:05:05 +02:00
Bart Van Der Meerssche 1a2468dc20 openwrt: add jsonp support to local RESTful API 2010-10-01 19:28:08 +02:00
Bart Van Der Meerssche 47e2268abc openwrt: add versioning to local RESTful API 2010-10-01 17:14:50 +02:00
Bart Van Der Meerssche 8de03f950f openwrt: bump version to 111 to align with flukso daemon 2010-10-01 16:23:13 +02:00
Bart Van Der Meerssche 3d4c7dc5b2 openwrt: use Flukso UCI file as param input for heartbeat 2010-10-01 16:19:06 +02:00
Bart Van Der Meerssche 6889fa3594 openwrt: if msec decreased, just update the value in the table, but do not perform any calculations since the AVR might have gone through a reset 2010-10-01 15:43:51 +02:00
Bart Van Der Meerssche 099e00c8f6 openwrt: math.max converts int32 to float, use two > comparisons instead 2010-10-01 14:20:45 +02:00
Bart Van Der Meerssche 40ce61e4a6 openwrt: use uci file for setting daemon parameters 2010-09-30 14:34:39 +02:00
Bart Van Der Meerssche 57a0d071aa openwrt: add a Flukso RESTful API to the lucid dispatcher 2010-09-29 16:42:21 +02:00
Bart Van Der Meerssche 536ac403a2 openwrt: introduce a UCI file to centralize Flukso params 2010-09-29 16:41:18 +02:00
Bart Van Der Meerssche aaf1d86028 rm indexcache when stopping lucid 2010-09-29 14:34:23 +02:00
Bart Van Der Meerssche 1fb8df8e8b openwrt: add a fluksorest LuciWebPublisher and restful daemon to lucid config file 2010-09-29 08:45:44 +02:00
Bart Van Der Meerssche 9a0240b5ca openwrt: disable https in lucid & make webroot default location 2010-09-28 13:42:32 +02:00
Bart Van Der Meerssche 7463453a70 openwrt: comment out WPA[2]-EAP-specific part of the wifi form 2010-09-28 11:34:33 +02:00
Bart Van Der Meerssche c7076a4acf openwrt: disable WPA(2)-EAP modes 2010-09-27 23:59:04 +02:00
Bart Van Der Meerssche d2cdc444d7 openwrt: remove encryption message on wifi page 2010-09-27 23:30:35 +02:00
Bart Van Der Meerssche 3cc27cb8ee openwrt: load the nixio.fs module for using the readfile method later on 2010-09-27 21:57:01 +02:00
Bart Van Der Meerssche 66af3380ab openwrt: make hostname non-editable on the system page 2010-09-27 20:21:52 +02:00
Bart Van Der Meerssche d132f79529 openwrt: disable telnet client and daemon 2010-09-23 18:33:47 +02:00
Bart Van Der Meerssche f82ee79cb3 openwrt: introduce shell script for setting up a flukso build environment 2010-09-23 17:38:49 +02:00
Bart Van Der Meerssche f7db05a9e4 openwrt: enable the wifi led pin (= GPIO 4) in blinking mode 2010-09-23 17:32:31 +02:00
Bart Van Der Meerssche 65530970e4 openwrt: bump backfire to r23107 and disable rdate in busybox 2010-09-22 01:26:55 +02:00
Bart Van Der Meerssche 4aa9a2f632 openwrt: switch to backfire .config file 2010-09-21 19:49:00 +02:00
Bart Van Der Meerssche 575caca3d9 openwrt: custom init.d/network and sysctl.conf not required anymore 2010-09-21 19:47:49 +02:00
Bart Van Der Meerssche afeea3e5f0 openwrt: configure /dev/ttyS0 with -echo -onlcr params 2010-09-20 21:01:46 +02:00
Bart Van Der Meerssche a2e6ef8d9f openwrt: bump ntpclient package version to 2007_365_4 2010-09-20 20:39:44 +02:00
Bart Van Der Meerssche 61e4a58b1d openwrt: rename patches 2010-09-20 19:56:17 +02:00
Bart Van Der Meerssche 4f73acfa65 openwrt: adapt console patches for 2.6.30 kernel in backfire 2010-09-20 19:45:24 +02:00
Bart Van Der Meerssche 75517fa598 openwrt: set AR5315_RESET_GPIO to 6 in backfire 2010-09-20 19:37:59 +02:00
Bart Van Der Meerssche dbd325d948 openwrt: add -std=c99 compile flag to luaxyssl makefile 2010-09-20 18:51:32 +02:00
Bart Van Der Meerssche ba27080b4c openwrt: include --std=c99 compile flag to luaexpat makefile 2010-09-20 17:34:41 +02:00
Bart Van Der Meerssche 266097d24f openwrt: add stock openwrt luasocket package 2010-09-20 17:33:23 +02:00
Bart Van Der Meerssche c45a953433 openwrt: remove custom luasocket package 2010-09-20 17:32:18 +02:00
Bart Van Der Meerssche bca34157c7 openwrt: add flukso.ca.cert to files 2010-09-20 10:14:55 +02:00
Bart Van Der Meerssche dec84822d5 openwrt: add LuCI 0.9 branch to the package repository with Flukso patches applied 2010-09-20 00:58:29 +02:00
Bart Van Der Meerssche adbb953b1c openwrt: remove LuCI 0.8.6 from the package repository 2010-09-20 00:56:50 +02:00
Bart Van Der Meerssche e00f6a91ec openwrt: remove the host directory within the LuCI package 2010-09-20 00:53:06 +02:00
Bart Van Der Meerssche 67e0594ae6 Merge branch 'develop' into bbh 2010-09-17 18:52:41 +02:00
Bart Van Der Meerssche a6f3300ffc openwrt: Lua allows 0xFFFFFFFF to overflow. Use decimal notation instead. 2010-09-10 12:01:56 +02:00
Bart Van Der Meerssche 8032327cc2 avr: add support for a configurable PULSE_CONST and PULSE_HALF 2010-09-10 10:16:35 +02:00
Bart Van Der Meerssche 09fd007bb2 openwrt: fill the power entries in reverse order which works perfectly with pulse interfaces 2010-09-09 22:07:02 +02:00
Bart Van Der Meerssche 4a7ae875ec openwrt: index tables by x, not by the contents of the variable x 2010-09-09 22:04:32 +02:00
Bart Van Der Meerssche ce102cfb54 openwrt: add support for pls xxx:yyy:zzz messages in the buffer coroutine 2010-09-09 19:36:49 +02:00
Bart Van Der Meerssche 61910f82ad openwrt: make variables local in daemon dispatch loop 2010-09-09 15:29:27 +02:00
Bart Van Der Meerssche 8f4e7a17a2 openwrt: support pls xxx:yyy:zzz type messages with zzz = 32-bit millisec counter on the AVR 2010-09-09 15:28:53 +02:00
Bart Van Der Meerssche fdc2e35e0f avr: Improve the accuracy of pwr measurements and prevent an underflow condition in a boundary case by rounding down the multiplication constant. Thanks Mario! 2010-09-08 17:53:57 +02:00
Bart Van Der Meerssche 431fefa5f2 avr: add a ms timestamp to a pls message for pulse inputs 2010-09-04 19:44:54 +02:00
Bart Van Der Meerssche 8d1ccbc8fc openwrt: better error checking and zombie process handling in rrdtool server 2010-09-03 11:50:58 +02:00
Bart Van Der Meerssche 41fa14cf61 openwrt: add an rrd.server module for connecting to rrdtool in pipe mode from Lua 2010-09-02 14:35:24 +02:00
Bart Van Der Meerssche 7856a4bb5e openwrt: attach a wifi/eth toggle and return to network defaults to the reset button 2010-08-30 21:08:38 +02:00
Bart Van Der Meerssche 06318eea07 fix hotplug button timer bug in 2.6.30.10 2010-08-30 10:24:09 +02:00
Bart Van Der Meerssche 48f946e6aa openwrt: allow unix domain sockets in nixio sendto and recvfrom 2010-08-11 20:50:22 +02:00
Bart Van Der Meerssche 505ce638f5 openwrt: add chipselect line to bitbanged SPI interface 2010-08-08 16:05:55 +02:00
Bart Van Der Meerssche c8271f5fd0 openwrt: include LuCI nixio_tls_ctx_set_verify_locations method 2010-08-08 14:01:07 +02:00