Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

LoRa constructor does not set power_mode #178

Open
@campbellsinclair

Description

@campbellsinclair
  • System configuration:
    • Pycom board: LoPy1.0r (with deep sleep shield DS v1.0)
    • Firmware version: (sysname='LoPy', nodename='LoPy', release='1.17.5.b6', version='v1.8.6-849-56d00234 on 2018-05-18', machine='LoPy with ESP32', lorawan='1.0.2')
    • 5V power supply
    • LoRa antenna connected.
    • Use a USB to UART adaptor to interface with the LoPy.
    • pycom.heartbeat_on_boot(False)
    • main.py is:
print('Hello')
  • Exact steps to cause this issue:
    • Reset the LoPy using the hardware push-button.
    • Connect to the LoPy using UART and Visual Studio Code
    • Invoke the following commands using the micropython interpreter:
from network import LoRa

lora = LoRa(mode=LoRa.LORA,
            region=LoRa.AU915,
            frequency=925500000,
            tx_power=5,
            bandwidth=LoRa.BW_500KHZ,
            sf=7,
            preamble=8,
            coding_rate=LoRa.CODING_4_5,
            tx_iq=False,
            rx_iq=False,
            public=False,
            power_mode=LoRa.SLEEP,
            )
    • With a multimeter connected in series with the 5V power supply, observe that the current is approximately 103 mA.
    • Invoke the following command:
lora.power_mode(LoRa.SLEEP)
    • Observe that the current is approximately 93 mA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LoRaIssues related to LoRa

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions