Updated 1. Foundation (markdown)

KF7EEL 2022-03-15 08:43:37 -07:00
parent f3fb1d6296
commit 5f24418ef4
1 changed files with 5 additions and 3 deletions

@ -16,10 +16,12 @@ This is a modified version of bridge.py from HBLink3. It handles hotspot/repeate
Formerly known as gps_data, the [Data Gateway](https://github.com/kf7eel/hbnet/wiki/Data-Gateway) (data_gateway.py) is where all of the decoding happens for GPS locations and SMS messages. The data gateway also connects to APRS-IS and listens for incoming messages to users.
### Operation
When the core (hbnet.py) starts, it contacts the web service via HTTP POST and requests its configuration. The web service can store several configurations for different servers. Once the core (hbnet.py) has downloaded its configuration, it is ready for operation. If the web service is unreachable, the core (hbnet.py) will default to the configuration file.
When the core (hbnet.py) or data gateway (data_gateway.py) starts, it contacts the web service via HTTP POST and requests its configuration. The web service can store several configurations for different servers. Once the core (hbnet.py) or data gateway (data_gateway.py) has downloaded its configuration, it is ready for operation. If the web service is unreachable, the core (hbnet.py) or data gateway (data_gateway.py) will default to the configuration file (hbnet.cfg) and rule configuration (rules.py).
The configuration file for the core (hbnet.py) contains an extra section called **[WEB_SERVICE]**, not found in HBLink. This section contains the URL of the web service, server name and secret, and settings for generated passphrases (see [PEER Authentication](https://github.com/kf7eel/hbnet/wiki/Peer-Authentication) for more on this).
Any time a change is made to a server in the web service, the core (hbnet.py) must be restarted for the changes to take effect.
Any time a change is made to a server in the web service, the core (hbnet.py) or data gateway (data_gateway.py) must be restarted for the changes to take effect.
The [Data Gateway](https://github.com/kf7eel/hbnet/wiki/Data-Gateway) connects to HBNet via OpenBridge (or an MMDVM) connection. This will be the same for both FreeDMR and HBLink as well.
Essentially, the configuration files (hbnet.cfg and rules.py) take effect when the web service is down. Think of it as a "back up mode" or "emergency mode". The web service contains a tool for importing and exporting rules, making it easier to have a consistent configuration.
The [Data Gateway](https://github.com/kf7eel/hbnet/wiki/Data-Gateway) connects to HBNet via OpenBridge (or an MMDVM) connection. This will be the same for both FreeDMR and HBLink as well. HBNet is not required for the data gateway, meaning it is compatable with HBlink and FreeDMR.