Closed hpssjellis closed 3 years ago
Can just use this instead? https://github.com/sandeepmistry/arduino-LoRa/blob/master/API.md#set-pins
LoRa.setPins(ss, reset, dio0);
@IoTThinks I have been messing around with that. I think since the Portenta uses Serial3 that the commands
LoRa.setSPI(spi);
LoRa.setSPIFrequency(frequency);
need to be working, but they don't for me and I can't even see the code for those functions in either the .h or .cpp file. I think they don't work anymore. Another weird issue is I can't even get the LoraVisionShields working on TTN, so either I am doing something wrong (most likely) or my vision shields have issues (not likely). I know people have tested the Vision Shields in Europe, but have not heard from anyone in North America yet.
Thanks for the suggestion?
This library is for SPI LoRa. Serial3 is not relevant here.
It is LoRa library. For TTN, you need LoRaWAN library.
@IoTThinks Thank you so much, that makes so much sense. I will try again and see if I can get it working as if it is the same as the MKRWAN boards.
Back to the lab again. Things still are not working for the Portenta LoRa Vision Shield. Any suggestions would be appreciated. I would really like to get this Library working on the shields.
I believe this board has its own MCU with LoRa firmware. The SPI interface of LoRa (MISO, MOSI, SS, SCK...) is not exposed. Hence, you can not use this library. You must use the UART interface provided with the board. Check the documentation of the board.
@IoTThinks Thank you, nice to finally understand why it isn't working. I was really hoping to get point-to-point LoRa working on these shields. I am looking into mbed versions, do you have a suggestions?
You have two choices:
I posted a similar issue on the MKRWAN library github
That library has code from this library but it does not work.
@IoTThinks I am trying to understand your 2 solutions. The Portenta has a possible 160 pins so accessing anything low level is a bit confusing at the moment.
Could the definitions for the Lora Vision Shield that connects to the Arduino Portenta be added to the LoRa.h file.
The following is already there
Curious about the SPI frequency should it be the same.
Also here is the pins info for the PortentaH7