Could you help me to run pySX127x at the Jetson Nano.
After start I give a problem
nvidia@nvidia-desktop:~/pySX127x$ sudo python3 test_lora.py
/usr/local/lib/python3.6/dist-packages/Jetson.GPIO-2.0.17-py3.6.egg/Jetson/GPIO/gpio.py:386: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings
Traceback (most recent call last):
File "test_lora.py", line 129, in <module>
BOARD.setup()
File "/home/nvidia/pySX127x/SX127x/board_config.py", line 58, in setup
GPIO.setup(BOARD.LED, GPIO.OUT)
File "/usr/local/lib/python3.6/dist-packages/Jetson.GPIO-2.0.17-py3.6.egg/Jetson/GPIO/gpio.py", line 393, in setup
File "/usr/local/lib/python3.6/dist-packages/Jetson.GPIO-2.0.17-py3.6.egg/Jetson/GPIO/gpio.py", line 187, in _setup_single_out
OSError: [Errno 5] Input/output error
nvidia@nvidia-desktop:~/pySX127x$ sudo python3 lora_util.py
/usr/local/lib/python3.6/dist-packages/Jetson.GPIO-2.0.17-py3.6.egg/Jetson/GPIO/gpio.py:386: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings
Traceback (most recent call last):
File "lora_util.py", line 29, in <module>
BOARD.setup()
File "/home/nvidia/pySX127x/SX127x/board_config.py", line 58, in setup
GPIO.setup(BOARD.LED, GPIO.OUT)
File "/usr/local/lib/python3.6/dist-packages/Jetson.GPIO-2.0.17-py3.6.egg/Jetson/GPIO/gpio.py", line 393, in setup
File "/usr/local/lib/python3.6/dist-packages/Jetson.GPIO-2.0.17-py3.6.egg/Jetson/GPIO/gpio.py", line 187, in _setup_single_out
OSError: [Errno 5] Input/output error
Before start I configured the nano to work with SPI througt jetson-io.py and modprobe -s -v spidev, after the nano has /dev/spidev0.0 , spidev0.1, spidev1.0, spidev1.1
We’ve made an application with pySX127x to Xavier and it works well, with out any problem.
How I said erlyier, we made the app to Xavier based on pySX127x and it works well with SX127x module, but after we copied it to Jetson Nano connect module to NANOs GPIO and it isn’t work.
Is Jetson.GPIO same on Nano & Xavier?
I’ve tested with spidev-test and SPI dev worked properly.
HI,
I’ve checked Pinouts, there is some GPIO different, but I can’t understand why it isn’t work. I use Python library “Jetson.GPIO” which have to use gpio and control PINs by BCOM numbering.
import Jetson.GPIO as GPIO
import spidev
import time
class BOARD:
""" Board initialisation/teardown and pin configuration is kept here.
Also, information about the RF module is kept here.
This is the Raspberry Pi board with one LED and a Ra-02 Lora.
"""
# Note that the BCOM numbering for the GPIOs is used.
DIO0 = 4 # RaspPi GPIO 4
DIO1 = 17 # RaspPi GPIO 17
DIO2 = 18 # RaspPi GPIO 18
DIO3 = 27 # RaspPi GPIO 27
RST = 22 # RaspPi GPIO 22
# LED = 13 # RaspPi GPIO 13 connects to the LED and a resistor (1kohm or 330ohm)
yes, I double checked it. Installed LEDs at the pins 7, 11, 12, 13, 15, configured at OUTPUT and found that PINs have low voltage, only 1.8v instead 3.3v. I think it’s problem. How to change voltage to 3.3v?