That may concern two issues:
1. after reset:
https://github.com/Wei1234c/SX127x_driv ... /issues/14
2. power supply:
please see the post above by kurt at Fri Feb 08, 2019 1:08 am
viewtopic.php?f=16&t=3871#p33923
That may concern two issues:
Code: Select all
device_spi = machine.SoftSPI(baudrate = 10000000,
polarity = 0, phase = 0, bits = 8, firstbit = machine.SPI.MSB,
sck = machine.Pin(device_config['sck'], machine.Pin.OUT, machine.Pin.PULL_DOWN),
mosi = machine.Pin(device_config['mosi'],machine.Pin.OUT, machine.Pin.PULL_UP),
miso = machine.Pin(device_config['miso'], machine.Pin.IN, machine.Pin.PULL_UP))
lora = SX127x(device_spi, pins=device_config, parameters=lora_parameters)
Could you share the device_config and lora_parameters objects that you passed into this to make this work? I have the same board and there is scant documentation for anything.kodsi wrote: ↑Mon Jan 10, 2022 7:32 pmHello,
I had the same problem with esp32 Heltec board, running micropython 1.17.
Fixed it by calling machine.SoftSPI instead of machine.SPI in the first argument of the SX127x class constructor(SPI is deprectated)
I hope this helps,Code: Select all
device_spi = machine.SoftSPI(baudrate = 10000000, polarity = 0, phase = 0, bits = 8, firstbit = machine.SPI.MSB, sck = machine.Pin(device_config['sck'], machine.Pin.OUT, machine.Pin.PULL_DOWN), mosi = machine.Pin(device_config['mosi'],machine.Pin.OUT, machine.Pin.PULL_UP), miso = machine.Pin(device_config['miso'], machine.Pin.IN, machine.Pin.PULL_UP)) lora = SX127x(device_spi, pins=device_config, parameters=lora_parameters)
cheers
lora_parameters = {dawgshalmer wrote: ↑Wed Jan 12, 2022 3:57 amCould you share the device_config and lora_parameters objects that you passed into this to make this work? I have the same board and there is scant documentation for anything.kodsi wrote: ↑Mon Jan 10, 2022 7:32 pmHello,
I had the same problem with esp32 Heltec board, running micropython 1.17.
Fixed it by calling machine.SoftSPI instead of machine.SPI in the first argument of the SX127x class constructor(SPI is deprectated)
I hope this helps,Code: Select all
device_spi = machine.SoftSPI(baudrate = 10000000, polarity = 0, phase = 0, bits = 8, firstbit = machine.SPI.MSB, sck = machine.Pin(device_config['sck'], machine.Pin.OUT, machine.Pin.PULL_DOWN), mosi = machine.Pin(device_config['mosi'],machine.Pin.OUT, machine.Pin.PULL_UP), miso = machine.Pin(device_config['miso'], machine.Pin.IN, machine.Pin.PULL_UP)) lora = SX127x(device_spi, pins=device_config, parameters=lora_parameters)
cheers
Thanks!kodsi wrote: ↑Wed Jan 12, 2022 8:51 amlora_parameters = {dawgshalmer wrote: ↑Wed Jan 12, 2022 3:57 amCould you share the device_config and lora_parameters objects that you passed into this to make this work? I have the same board and there is scant documentation for anything.kodsi wrote: ↑Mon Jan 10, 2022 7:32 pmHello,
I had the same problem with esp32 Heltec board, running micropython 1.17.
Fixed it by calling machine.SoftSPI instead of machine.SPI in the first argument of the SX127x class constructor(SPI is deprectated)
I hope this helps,Code: Select all
device_spi = machine.SoftSPI(baudrate = 10000000, polarity = 0, phase = 0, bits = 8, firstbit = machine.SPI.MSB, sck = machine.Pin(device_config['sck'], machine.Pin.OUT, machine.Pin.PULL_DOWN), mosi = machine.Pin(device_config['mosi'],machine.Pin.OUT, machine.Pin.PULL_UP), miso = machine.Pin(device_config['miso'], machine.Pin.IN, machine.Pin.PULL_UP)) lora = SX127x(device_spi, pins=device_config, parameters=lora_parameters)
cheers
'address': 1,
'frequency': 868E6,
'tx_power_level': 2,
'signal_bandwidth': 125E3,
'spreading_factor': 8,
'coding_rate': 5,
'preamble_length': 8,
'implicit_header': False,
'sync_word': 0x12,
'enable_CRC': False,
'invert_IQ': False,
}