pySX127x icon indicating copy to clipboard operation
pySX127x copied to clipboard

Dio3 mapping error

Open bleur opened this issue 3 years ago • 0 comments

Hi, Could help me with problem on the Jetson Nano dev kit? We are trying use sx127x to send some information from Jetson nano and use it's app. SX is connected to Jetson correctly, but after start has a proble "dio3 mapping error" or "acceleration error". We've checked all wire, configs and etc, but don't understand why isn't work. SPI works. If sx127x connected to Jetson Xavier, app work perfectly.

/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py:411: RuntimeWarning: No channels have been set up yet - nothing to clean up! Try cleaning up at the end of your program instead! "program instead!", RuntimeWarning) Config SPI Setup GPIO++++ Borad conf is: 11 /usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py:386: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings RuntimeWarning) timer start add_event SLEEP = 1 == 128, STDBY = 1 == 129, FSK_STDBY = 1 == 1, SLEEP = 0 == 128, STDBY = 0 == 129, FSK_STDBY = 0 == 1, Unhandled exception in thread started by <function _poll_thread at 0x7fa7dfa598> Traceback (most recent call last): File "otaa_ttn.py", line 211, in <module> lora = LoraWanAllinOne(False) File "otaa_ttn.py", line 26, in __init__ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio_event.py", line 238, in _poll_thread super(LoraWanAllinOne, self).__init__(verbose, do_calibration) File "/home/nvidia/lorawan_rpi/SX127x/LoRa.py", line 101, in __init__ cb_func() File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py", line 531, in <lambda> self.rx_chain_calibration(calibration_freq) File "/home/nvidia/lorawan_rpi/SX127x/LoRa.py", line 858, in rx_chain_calibration event.add_edge_callback(ch_info.gpio, lambda: callback(channel)) self.set_freq(freq_bkup) File "/home/nvidia/lorawan_rpi/SX127x/LoRa.py", line 196, in _dio3 File "/home/nvidia/lorawan_rpi/SX127x/LoRa.py", line 284, in set_freq raise RuntimeError("unknown dio3 mapping!") RuntimeError: unknown dio3 mapping! assert self.mode == MODE.SLEEP or self.mode == MODE.STDBY or self.mode == MODE.FSK_STDBY AssertionError

test passed ` nvidia@nvidia-desktop:~/lorawan_rpi$ sudo python3 test.py [sudo] password for nvidia: /usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py:411: RuntimeWarning: No channels have been set up yet - nothing to clean up! Try cleaning up at the end of your program instead! "program instead!", RuntimeWarning) Config SPI Setup GPIO++++ Borad conf is: 11 /usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py:386: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings RuntimeWarning) timer start add_event ...SLEEP = 128 == 128, STDBY = 128 == 129, FSK_STDBY = 128 == 1, SLEEP = 128 == 128, STDBY = 128 == 129, FSK_STDBY = 128 == 1, SLEEP = 128 == 128, STDBY = 128 == 129, FSK_STDBY = 128 == 1, SLEEP = 128 == 128, STDBY = 128 == 129, FSK_STDBY = 128 == 1, ...

Ran 6 tests in 0.011s

OK `

bleur avatar Sep 15 '21 21:09 bleur