Closed grasmanek94 closed 4 years ago
It was a weird issue (as expected) on my side..
I specified the same temporary output path for multiple projects in vscode-arduino, which somehow made the linker use old code?
I disabled that feature and completely recompiled every project.
It works now (on VSPI bus).
Hey all,
I have different devices:
I have tried to use them with the library, by connecting Dragino LoRa shields in the following manner:
All else on Dragino shield is set to default. When I perform the above connections to Arduino (with jumper wires) and adjusting SS from 15 to pin 10 in code (default) then the library works.
Then I connect all cables to ESP32S or a ESP32 but they won't work.
I already figured out RadioHEad library somehow didn't use HSPI bus, so I forced the HSPI bus in code (and force the pins) in RHHardwareSPI.cpp:
Init works but send does nothing (tested by using a working arduino with dragino LoRa shield to listen for messages, messages work between 2 Arduino UNOs).
Code:
Arduino (to listen, test if message is received):
And this code works on another Arduino:
So I port the Arduino Client to ESP32:
And I get this output:
Then it gets stuck. And Receiver (Arduino Server) doesn't receive anything. With two Arduino's this works fine.
I did check all connections with a multimeter (Ohms) to check if they're intact, and all are (measured from top of ESP to pins on Dragino shield, not measured on the jumper wires themselves, which means they really are connected).
I don't have access to a logic analyzer at the moment..
Edit: I have also noticed that the default SPI is VSPI on ESP32 / ESP32S, I tried that one but then communications is completely broken / doesn't work (I did revert my changes in HardwareSPI.cpp and also connected the pins correctly to VSPI pins).