gardners
e551017896
push profiling down deeper into rhizome_fetch_poll()'s children.
2013-02-20 15:36:29 +10:30
gardners
60015a1aee
keep HTTP server running when rhizome over http is disabled, but
...
don't serve and rhizome requests.
2013-02-20 15:36:29 +10:30
gardners
506ceea309
log when BAR lookups are slow.
2013-02-20 15:36:29 +10:30
gardners
83625198cb
tweak BAR lookup filter in light of packets arriving with 20 BARs
...
at a time, which can take 4seconds(!) to process on a WR703N.
2013-02-20 15:36:29 +10:30
gardners
8befcf7c11
create indexes for ID and VERSION on MANIFESTS table to reduce the
...
time it takes to lookup whether BARs are interesting.
2013-02-20 15:36:29 +10:30
gardners
17ea1b69b3
don't look at all BARs if we are too slow.
2013-02-20 15:36:29 +10:30
Jeremy Lakeman
d80b5a0c8d
Prevent sending probe packets to invalid addresses
2013-02-20 15:36:28 +10:30
Jeremy Lakeman
eeb7fb7f9b
Reinitialise an interface when it comes back up
2013-02-20 15:36:28 +10:30
Jeremy Lakeman
748a2d8957
Squelch log messages
2013-02-20 15:36:28 +10:30
gardners
f114e6d19e
add progress data for each rhizome transfer.
2013-02-20 15:36:28 +10:30
gardners
d49649ed96
add stored bundle count to /rssi web page display.
2013-02-20 15:36:28 +10:30
gardners
3bd4c49af5
add more info to /rssi http page.
2013-02-20 15:36:27 +10:30
gardners
d251f46638
add SID to rssi display
2013-02-20 15:36:27 +10:30
gardners
b9c924c5fe
make rssi web page text really big for small phone screens.
2013-02-20 15:36:27 +10:30
gardners
66956d84ce
add /rssi page to rhizome web server to allow easy querying of
...
radio link budget.
2013-02-20 15:36:27 +10:30
gardners
610f7acdf8
fixed test for malformed packets.
2013-02-20 15:36:27 +10:30
Jeremy Lakeman
ca5eb7d8bb
Reinstate simple slip code, improve debug messages
2013-02-20 15:36:27 +10:30
Jeremy Lakeman
2d566dbd5b
Fix fake radio
2013-02-20 15:36:26 +10:30
gardners
80a5feb76a
show rejected packets iff debug.rejecteddata set
2013-02-20 15:36:26 +10:30
gardners
042cfc3fa1
add debug.rejecteddata option for reporting bad packets/manifests
...
etc.
2013-02-20 15:36:26 +10:30
gardners
6a620fe221
added command line test for serial encapsulation.
...
renamed "crypt test" to "test crypt" for consistency.
2013-02-20 15:36:26 +10:30
Jeremy Lakeman
ed7912295a
Use correct variable size for crc's
2013-02-20 15:36:26 +10:30
Jeremy Lakeman
e4d6520c46
Don't request manifests that are already in the fetch queue
2013-02-20 15:36:25 +10:30
Jeremy Lakeman
2193d8fb74
Process incoming stream packets
2013-02-20 15:36:25 +10:30
gardners
4d674d06b9
improved debugging arrangements for packetradio.
2013-02-20 15:36:25 +10:30
gardners
b79e8261d5
added missing crc32.c and fixed indenting in slip.c
2013-02-20 15:36:25 +10:30
gardners
5b26cabee3
fixed bugs in UPPER7 SLIP encapsulation.
...
Improved debugging of the same.
2013-02-20 15:36:25 +10:30
gardners
b5939f8967
display packet radio link budget periodically, even when debugging
...
disabled.
2013-02-20 15:36:24 +10:30
gardners
fea06932e5
added new slip.c with 7-bit-high packet encapsulation, packet length
...
and CRC32.
Also added in-line RSSI report reception for RFD900 radios.
2013-02-20 15:36:24 +10:30
gardners
a42c685715
don't complain if packet radio interface doesn't support fseek().
2013-02-20 15:36:24 +10:30
Jeremy Lakeman
f2025cd601
Configure rhizome announce interval
2013-02-20 15:36:24 +10:30
Jeremy Lakeman
45efb3f899
Add more raw options to serial interface
2013-02-20 15:36:24 +10:30
Jeremy Lakeman
6d9bbe2e2c
Refactor interface handling to separate encapsulation from stream type
2013-02-20 15:36:23 +10:30
gardners
95f2ed3225
added simple fake radio driver with ~100ms latency.
2013-02-20 15:36:23 +10:30
Jeremy Lakeman
ba1800012e
Only advertise BAR's on an alarm
...
- we no longer hit the database for every outgoing packet, attempting to announce bundles
- we no longer advertise manifests periodically
- when an interesting bar arrives, we ask for the manifest to be announced, which uses the existing packet format
2013-02-20 15:36:23 +10:30
Jeremy Lakeman
c7caec488a
Don't aggregate packets together on radio links
2013-02-20 15:36:23 +10:30
Jeremy Lakeman
25f1240f6e
Calculate neighbour score based on tick interval
...
Quick hack for packet radio links which should have a much longer lived relationship between neighbours
2013-02-20 15:36:23 +10:30
Jeremy Lakeman
33da5ee2da
Never send a unicast probe over a packet radio link
2013-02-20 15:36:22 +10:30
Jeremy Lakeman
84ad4debfa
Throttle serial radio devices when tx buffer is in use
2013-02-20 15:36:22 +10:30
gardners
0de64d0363
decoder state bug fix.
2013-02-20 15:36:22 +10:30
gardners
92f2573998
hex constants are easier to read than octal.
...
debug encapsulation.
2013-02-20 15:36:22 +10:30
gardners
69ae7e1706
prune some debugging.
...
avoid some segfaults due to lack of IP addresses in packet radio
native MDP payloads.
problems remain with SLIP encapsulation/extraction, but some packets
are already getting through.
2013-02-20 15:36:22 +10:30
gardners
834239863c
fixed some packet radio encapsulation bugs.
2013-02-20 15:36:21 +10:30
gardners
e82d2e73da
fixed handling of POLL flags on packet radio interface
...
(was not calling watch() when changing them).
2013-02-20 15:36:21 +10:30
gardners
e20cfdb59d
closer to working.
...
POLLOUT seems to get stuck once triggered.
2013-02-20 15:36:21 +10:30
gardners
7f0a22408a
more work on SLIP encoding/decoding for packet radio interfaces.
2013-02-20 15:36:21 +10:30
gardners
37ed7694bd
added safety catch for null message field.
...
note that debug.packettx seems to be broken.
2013-02-20 15:36:21 +10:30
gardners
b70aa9b8c6
fixed problems with interface ticking on packetradio interfaces.
...
still crashes and burns.
2013-02-20 15:36:21 +10:30
gardners
a4bfdc6c75
fixed serial port reading and interface setup bugs.
...
now crashes when trying to tick packet radio interface.
2013-02-20 15:36:20 +10:30
gardners
7287a2d599
add hook for transmitting packet via packet radio interface.
...
make serial port non-blocking (which for some reason has also
killed our ability to read from it :/).
2013-02-20 15:36:20 +10:30