-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTGO LoRa32 (T3S3 v1.2) Error -16 #1056
Comments
Could you provide the complete log? Seems like parts of it are missing. At some point, the radio completely stops responding (as it only returns 0s on the SPI bus) but because you seem to have removed parts of the log, it's impossible to tell where exactly that happens. Are you sure you have the SX1276 and not the SX1278? The failure seems to be happen somewhere around the frequency configuration. |
The seller provided information states that i have the SX1276, since I want to send information over the 868MHz spectrum I doubt the SX1278 will be useful. Here is the full log:
|
I would try 433MHz to at least rule out a radio issue? |
This is the exact point where the radio stops responding:
Before the string "Sending uplink", everything is fine. After that, the radio is always returnign zero. This is what that section looks like in the example - I'm assuming you have not edited it, since you have not posted your code. Serial.println(F("Sending uplink"));
// Read some inputs
uint8_t Digital1 = digitalRead(2);
uint16_t Analog1 = analogRead(3);
// Build payload byte array Right after that string, there are some digital/analog read. I'm guessing that for some reason this breaks the SPI communication to the radio. Can you try to remove those |
Thank you @jgromes once I removed the This is the new output:
|
@ThePioS thanks for checking it, then I guess we will either have to remove the reading pins from the examples or make sure that they don't clash with SPI. I'm more in favor of the former, replacing them with a random number, since the latter could be prone to breaking in the future again. |
Pin 3 is used in LoRa SPI on the T3S3, yup.. |
Meh, on it. PS, I see a spreadsheet forming for pin maps, probably useful, plus the use of random() ... PSS, I only figured out the pin map for a TTGO Supreme last night but didn't twig at the time. |
Not really a bug and a situation anyone could create, particularly with the automagic pinmaps. And the template info is still MIA ... I can find some pins not being used for anything else on the automagic pinmaps but we should perhaps have an item on this in the wiki! |
I don't think we will be able to keep that up for very long, as new pinmaps can be added (see the currently open #1049). With that in mind I pushed the change from analog/digital read to random number, let's hope nobody else trips up on this until the next update. |
I have been trying to get the LoRaWAN_Starter example to work. The board i am using is a LILYGO T3S3 V1.2 ESP32-S3 LoRa SX1276 Development Board.
To run the code I mapped the pins of my module to the config.h file and added the JoinEUI, DevEUI, AppKey and nwkKey
In LoRaWAN_Starter.ino I added the following line to void setup:
After running the code my device connects to TTN and gets a join accept message but when trying to perform the payload uplink I get the error: Error in sendReceive(-16)
This is the debug output:
I am new to all of this so i am unsure what exactly is the issue.
If any additional information is needed tell me.
The text was updated successfully, but these errors were encountered: