Commit Graph

117 Commits

Author SHA1 Message Date
Conrad Lara - KG6JEI 0dbe83c61e feature: Make nodes advertised targeted network routes to mesh.
Makes the nodes advertise using DHCP Options 121 and 249 routes to the mesh (10.0.0.0/8) and the reserved (172.16.0.0/12) address ranges.

This change allows directing systems to prefer the mesh node for mesh ranges unless another network rule is more specific (such as a directly connected network)
This is mostly useful where a PC may have multiple network connections active as it improves the desire for the packets to travel via the mesh network.

Currently the:

10.0.0.0/8 range is used by mesh nodes and dtdlinking of mesh nodes.
172.27.0.0/16 is used for default LAN network on NAT nodes.
172.33.0.0/16 is for ad-hoc tunnels

All others in the advertised range are reserved for future network use.
2015-03-27 11:30:52 -07:00
Conrad Lara - KG6JEI 097d62ae01 bugfix: OLSRD doesn't start on node reboot
Under Barrier Breaker sometimes OLSRD gets started before any interface is up causing OLSRD to shutdown because no interfaces exist.

Forces OLSRD to stay on and wait for the interfaces to come online.
2015-03-23 22:57:48 -07:00
Conrad Lara - KG6JEI 50c4e0ed11 bugfix: nodes sometimes show up as mid1
Nodes sometimes show up as a mid1 entry when dtdlink and RF connected.

Sometimes the nodes will get the eth0 ip because wlan0 is not up yet.

Under Barrier Breaker the MainIP option is now supported as part of the uci system which allows us to restore using this setting.

We can now force the IP address that is claimed (wlan0) for the primary IP of the node.
2015-03-23 22:55:09 -07:00
Conrad Lara - KG6JEI a5d9c3ee52 Merge branch 'UpgradeToBB' into develop 2015-03-23 17:36:35 -07:00
Conrad Lara - KG6JEI 078ab54f06 bugfix: sysupgrade : OLSRD and LAN interface do not work after sysupgrade
Variables were not being being synced to _setup because they do not exist in _setup.default so we need to manually sync them over.
2015-03-23 17:25:18 -07:00
Conrad Lara - KG6JEI b3fb1ed13e bugfix:Correct Firmware not valid error when uploading a sysupgrade file
In Barrier Breaker the symlink in /etc/ has been removed so we need to refer to the file direct.
2015-03-21 23:03:24 -07:00
Conrad Lara - KG6JEI 5db6e2a747 Merge branch 'hotfix-3.0.2' into develop
Conflicts:
	files/www/cgi-bin/admin
2015-03-13 20:56:46 -07:00
Conrad Lara - KG6JEI 0b04c442dd bugfix: Remove references to WRT54*'s 2015-03-11 16:40:31 -07:00
Conrad Lara - KG6JEI c4a29903fb bugfix: Make AREDN(TM) Logo visible in "night" mode 2015-03-09 21:35:24 -07:00
Conrad Lara - KG6JEI 39a7ab878b bugfix: Cleanup display of rebraned pages.
Add missing AREDN(TM) Logo and fix other pages that were missing the footer text.
2015-03-09 19:28:59 -07:00
Conrad Lara - KG6JEI e146193b65 Rerand from BBHN to AREDN(TM)
Since a large number of the  BBHNDev team has decided to create firmware fully independent of the BBHN Project the decision has been made to rebrand the firmware to differentiate from the origional BBHN work.

We would like to thank all those whom have worked on the BBHN firmware over the years and all those who continue to work on the firmware under AREDN(TM).
2015-03-09 16:39:04 -07:00
Conrad Lara - KG6JEI 633c83f7f7 Merge branch 'hotfix-3.0.1' into develop 2015-02-04 08:16:30 -08:00
Conrad Lara - KG6JEI dc24e1d05d Merge branch 'MakeLinksFQ' into develop 2015-01-25 21:08:16 -08:00
Conrad Lara - KG6JEI 243d5fc714 bugfix: Set hidden flag on dtdlink host names so they do not show up in the "Remote Nodes" list. 2015-01-25 10:56:23 -08:00
Conrad Lara - KG6JEI 7c22853a17 Change OLSR Status button to use node FQDN 2015-01-23 18:30:39 -08:00
Conrad Lara - KG6JEI a2944c7e30 Configure status page to present FQDN's as long as the link does not contain a period. 2015-01-23 18:25:25 -08:00
Conrad Lara - KG6JEI 5c3ee1d068 bugfix: Add GPLv3 license text to core BBHN Mesh files
Program went GPLv3 last year but license text was never added to files

Default text to give credit to David as he is listed in all commits and to reference the BBHN Austin team at the same time as they were part of the group of HAM's that started this project.
2015-01-18 11:36:49 -08:00
Conrad Lara - KG6JEI fde5c1367e bugfix: olsrd-watchdog false triggers a reboot.
Using the method suggested by Henning Rogge in 2014

{{{
1) remove file
2) wait 2 intervals
3) if file exists, go to 1)
4) restart olsr, then go to 1)
}}}

With the exception that we currently wait more than 2 intervals.

Even if the script hits a collision at the same time the file is being written the file will already exist from one of the previous writes or the current write.

Removing a file in use is safe as once the FD closes the file contents are fully released.

Additional Advantages:
* Should be more efficient to check if file exists instead of reading the file and comparing date stamps.
* Removing the Perl code moves us one step closer to retiring Perl in the future.
2015-01-15 16:35:55 -08:00
Conrad Lara - KG6JEI f52513aa15 bugfix: Update url for admin downloads
Previous URL may not have latest firmware list.
2014-12-14 22:56:45 -08:00
Conrad Lara - KG6JEI 917573cf95 hardware:bugfix: AirGrid M2 0x212 remove power offset to facilitate testing
Removing the offset and increasing max power so we have full range avaliable to us.

This may not help us figure out the offset but will allow us a wider range of options.

ref BBHN->ticket:71
2014-12-14 10:54:05 -08:00
Conrad Lara - KG6JEI b7dcfdd9ce hardware🆕 Add testing support for AirGrid M2 0xe212
Reported information and board information do not appear to line up, device will need further testing to verify actual details.

Max Power and Power Offset are of concern.

ref BBHN->ticket:71
2014-12-14 10:37:48 -08:00
Conrad Lara - KG6JEI b5dba400cc bugfix: Update URL for opkg database.
Previous URL may not have latest packages.
2014-12-13 23:30:54 -08:00
Conrad Lara - KG6JEI 1ed509132f bugfix: dhcp lease dropdown lists too many addresses.
fixes BBHN->ticket:69
2014-12-12 00:08:31 -08:00
Conrad Lara - KG6JEI 44bf0bd4f0 bugfix: non mesh-gw nodes may use a less than optimum route to internet.
When a non mesh-gw node has a route via the WAN interface and through a mesh-gw it will choose the mesh-gw instead of the local WAN connection.and

We change the routing list to prefer the WAN link.

When the WAN is static configured the user will need to disable the WAN interface for the mesh internet to be chosen.

When the WAN is configured to dynamic the loss of a DHCP lease will allow the node to chose the remote mesh internet.

The simple solution would be to change the WAN to disabled and reboot to ensure a remote node is used instead if the local internet fails.

Thanks to Joe AE6XE and Clint AE5CA for pointing out this scenario.
2014-12-11 23:42:27 -08:00
Conrad Lara - KG6JEI c1de09455e Merge branch 'release-3.0.0' into develop 2014-11-25 10:25:47 -08:00
Conrad Lara - KG6JEI 4daf0e4f7e Merge branch 'sysupgradekeepsettings' into develop 2014-11-12 21:29:05 -08:00
Conrad Lara - KG6JEI cccf5a2ad7 feature: Add the ability to upgrade in place and keep settings.
By checking the "Keep Settings" box the node will run sysupgrade instead of mtd. Core settings are stored between installs and the _setup files are updated by pulling in missing items from the _setup.default files.
2014-11-12 21:25:41 -08:00
Conrad Lara - KG6JEI d5af5c97cf support status: Mark Rocket M9 as supported. 2014-11-03 20:26:47 -08:00
Conrad Lara - KG6JEI 94981313f8 bugfix: rework olsrd-watchdog to avoid race condition
The olsrd watchdog module truncates and writes the latest timestamp every 5 seconds. The olsrd-watchdog script could catch the file during write causing an instant restart.

Changed to want 3 failures before restarting olsrd reducing the chance of collision based restarts.

fixes BBHN->ticket:68
2014-11-03 19:59:34 -08:00
Conrad Lara - KG6JEI 5a39316a7e hardware: support: Loco M9, NanoBridge M9 test: RocketM9
tag NanoStation Loco M9 and NanoBridge M9 into supported status

begin testing Rocket M9 support

ref BBHN->ticket:66
fixes BBHN->ticket:51
2014-10-20 19:45:46 -07:00
Conrad Lara - KG6JEI 742f8ec4ac bugfix: Differenece between short hold and long hold on the reset button is too small.
Time is now around 5 seconds for a passwd+dhcp reset (3-7 seconds window) and around 15 seconds for a full reset (12-20 seconds window)
2014-09-17 10:53:19 -07:00
Conrad Lara - KG6JEI f5a9861700 bugfix: bbhnrecoverymode uhttpd needs to be restarted.
uhttpd may not pick up new passwords unless it is restarted after the change.
2014-09-15 16:56:41 -07:00
Conrad Lara - KG6JEI fb91eadfef bugfix: Make bbhnrecoverymode executable. 2014-09-12 12:07:16 -07:00
Conrad Lara - KG6JEI a9ed10de33 feature: Use reset button to make field recovery easier.
Cleaner version with the config files included in the commit.
2014-09-12 12:03:16 -07:00
Conrad Lara - KG6JEI 2e0b2cbd90 feature: Use reset button to make field recovery easier.
Using a press of around 5 seconds (3-7) the node will reset the passord to BBHN default and enable dhcp on the lan interface.

A press of around 10 seconds (8-12) will cause the node to reset the node to 'just flashed' status and cause the node to reboot.
2014-09-12 12:00:14 -07:00
Conrad Lara - KG6JEI 28dfb852cc bugfix: fix wscan 'unknown' network handling
Unknown networks are not quoted like known networks are.

This caused a bug where the last network name may be incorrectly used in place of the words 'unknown'

fixes: BBHN->ticket:58
2014-09-11 23:25:02 -07:00
Conrad Lara - KG6JEI ed4b583277 Due to the following commits we need to increase the protocol version to V3
changeset:0e845a1743d3693fd5e1257f38b704c864f52220/bbhn_ar71xx
changeset:8417274fc4233bf0002c721d836e4fa5953f3db1/bbhn_ar71xx
2014-09-11 23:16:27 -07:00
Conrad Lara - KG6JEI 0e845a1743 Merge branch 'newssidformat' into develop 2014-09-11 23:07:10 -07:00
Conrad Lara - KG6JEI 9ae98554cf bugfix: Disable OLSRD Secure untill we can work on it more.
Due to multiple issues that olsrd secure seems to make occur more often (but is not soley caused by OLSR Secure) causing olsr to crash olsr secure is being pulled while we work on the module.

This partialy reverts commit 553c126490.

tag: RequiresProtocolIncrement
2014-09-11 23:02:47 -07:00
Conrad Lara - KG6JEI 6da1ad8b4e feature: Change SSID format to include rf channel bandwidth and protocol version
From now on all node SSID's will be NAME-<rf bandwidth>-v<protocol version>

tag: RequiresProtocolIncrement
2014-09-11 21:29:54 -07:00
Conrad Lara - KG6JEI 6036dc3ff6 bugfix: Enable watchdog in olsrd
Watchdog never got enabled in the olsrd config files.

fixes BBHN->ticket:60
2014-08-07 23:13:54 -07:00
Conrad Lara - KG6JEI c6e4aa3903 bugfix: DHCP Lease limit is down by one from what it should be.
ref BBHN->ticket:57
2014-07-24 21:58:20 -07:00
Conrad Lara - KG6JEI 422e40c5ea Merge branch 'initialm9devices' into develop 2014-07-14 23:02:03 -07:00
Conrad Lara - KG6JEI 32a67e1b2c Add initial testing support for M9 devices
ref BBHN->ticket:51
2014-07-14 23:01:16 -07:00
Conrad Lara - KG6JEI 711dbc17f2 Add a channel bandwidth selector to the setup screen.
Required for 900mhz devices to be supported due to band size.

This can also be useful for allowing more devices to fit into the same amount of RF space as nodes may often not need full 20mhz wide channels.

2.4ghz while using standard BBHN SSID is restricted to 20mhz for compatibility.

ref BBHN->ticket:50
2014-07-14 20:40:49 -07:00
Conrad Lara - KG6JEI 70cce8c75e Resolve issue with NAT mode not working in 1.1.1 2014-07-10 20:04:06 -07:00
Conrad Lara - KG6JEI 88d532a3a1 bugfix: get_default_gw needs to follow the route the node will use to internet.
because of previous bugfix the function needs to check table 31 and 254 (with 254 taking priority)
2014-07-08 00:02:47 -07:00
Conrad Lara - KG6JEI 60b8095c08 bugfix: Resolve issue where reserved names are not being published correctly
reported by: W9HDG
2014-07-07 23:00:02 -07:00
Conrad Lara - KG6JEI 3e0ec32fca workaround: For some reason piping yes to opkg never returns when called from perl
Has been seen with yes, and echo y, etc.  Loops do not return.

In order to allow packages that do not need interaction to install we have pulled out 'yes' for now.
2014-06-26 21:29:39 -07:00
Conrad Lara - KG6JEI 2a8692d5a0 Update list of tested devices.
Officaly now supporting (XM series only for all the below):

{{{
Rocket M5
Bullet M5
AirGrid M5
NanoBridge M2
AirGrid M2
AirGrid M5 HP
NanoBridge M5
Bullet M2 Titanium
Bullet M5 Titanium
PicoStation M2
NanoStation M5
NanoStation Loco M5
}}}
2014-06-24 21:05:13 -07:00