From 875b840eee955ed2cd78f37491ac25d6c41132ae Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Fri, 28 Aug 2020 15:23:01 +0200 Subject: [PATCH] updates updated the pid of pygate, added machine.pygate_reset --- content/firmwareapi/pycom/machine/pygate.md | 8 ++++++-- content/updatefirmware/expansionboard.md | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/content/firmwareapi/pycom/machine/pygate.md b/content/firmwareapi/pycom/machine/pygate.md index da83178..e9d3d8b 100644 --- a/content/firmwareapi/pycom/machine/pygate.md +++ b/content/firmwareapi/pycom/machine/pygate.md @@ -10,16 +10,20 @@ The Pygate is an 8-channel LoRaWAN gateway. Connect a WiPy, Gpy or LoPy4 board t ## Methods -### machine.pygate_init(buff) +### machine.pygate_init(config) This function is used to initialize the Pygate -- `buff`: the data contents of the gateway global config json file +- `config`: the data contents of the gateway global config json file ### machine.pygate_deinit() This shuts down the concentrator. +### machine.pygate_reset() + +Resets the Pygate and inserted development module (including the LTE modem, if present). This actually power cycles the Pygate and the attached hardware and is **not** similar to `machine.reset()`. + ### machine.callback(trigger, [handler=None, arg=None]) - `trigger`: A trigger event(s) for invoking the callback function `handler`, the triggers/events are: diff --git a/content/updatefirmware/expansionboard.md b/content/updatefirmware/expansionboard.md index 22cafd6..865c3e5 100644 --- a/content/updatefirmware/expansionboard.md +++ b/content/updatefirmware/expansionboard.md @@ -27,7 +27,7 @@ In normal operation, the expansionboard is in Application mode. However when we | Board | DFU bootloader (update mode) | Application firmware (normal mode) | | :--- | :--- | :--- | -| Pygate | | +| Pygate | `0xED15` | `0xED14` | | Pytrack | `0xF014` | `0xF013` | | Pysense | `0xF011` | `0xF012` | | Pyscan | `0xEF37` | `0xEF38` |