...
Info |
---|
You should install nxbase2 (and get nxbase2_cli on your PATH) to use this module with a bringup board. |
Info |
---|
You should use an Angie probe to use this module with the ngultra devkit |
Info |
---|
You will find the documentation to flash your Sonoff s26 plug at the top level oh this project. |
classAnchor libnxembeddedtools.hw.reboot.Reboot libnxembeddedtools.hw.reboot.Reboot libnxembeddedtools.hw.reboot.
Reboot
(ip, boardType=1)Bases:
object
Anchor libnxembeddedtools.hw.reboot.Reboot.NGULTRA_BRINGUP libnxembeddedtools.hw.reboot.Reboot.NGULTRA_BRINGUP NGULTRA_BRINGUP
= 0
Anchor libnxembeddedtools.hw.reboot.Reboot.NGULTRA_DEVKIT libnxembeddedtools.hw.reboot.Reboot.NGULTRA_DEVKIT NGULTRA_DEVKIT
= 1Class used to electrally reboot your board.
Parameters: boardType (int) – Type of the board. May be Reboot.NGULTRA_BRINGUP or Reboot.NGULTRA_DEVKIT
ip (str) – IP of your Sonoff plug.
Anchor libnxembeddedtools.hw.reboot.Reboot.powerOff libnxembeddedtools.hw.reboot.Reboot.powerOff powerOff
()Send a power off request to the plug.
Anchor libnxembeddedtools.hw.reboot.Reboot.powerOn libnxembeddedtools.hw.reboot.Reboot.powerOn powerOn
()Send a power on request to the plug.
Anchor libnxembeddedtools.hw.reboot.Reboot.startSPI libnxembeddedtools.hw.reboot.Reboot.startSPI startSPI
(flashNr, external=False, tmr=False)Reboot the board in SPI flash mode using nxbase2.
Parameters: flashNr (int) – First flash used to boot.
external (Boolean) – Use external flash as flash#3.
tmr (Boolean) – Use TMR mode for flash#0-#3.
Anchor libnxembeddedtools.hw.reboot.Reboot.startSpacewire libnxembeddedtools.hw.reboot.Reboot.startSpacewire startSpacewire
(external=False, tmr=False)Reboot the board in spacewire mode using nxbase2.
Parameters: external (Boolean) – Use external flash as flash#3.
tmr (Boolean) – Use TMR mode for flash#0-#3.
...