-
Notifications
You must be signed in to change notification settings - Fork 63
Examples Not Functioning as Expected or Crashing NodeMCU 1.0 (ESP8266) #199
Comments
Hi @jrstubbington, |
Hello @jrstubbington, aside from @Sonic0 suggestion, perhaps there's also another possibility in the ESP handling of interrupt? |
Did you ever get this working? I had similar issues with rcv and send working but ranging did not |
I was getting error in my program when i didn't use ICACHE_RAM-ATTR for interrupts. As the line: the error is resolved |
Hey @Sonic0 I have been trying to understand this library, coding is not my strong pursuit. The examples with interrupts are not working for me (I am using noeMCU1.0 and DWM1000). The other examples for anchors and tag is working as it doesn't incorporate interrupts. I wanted to know if you have any draft API for this library as that should make it a lot easier to implement programs. I want to calculate distances between modules with accuracy. Thank you |
Hi @Yashvardhan001109, |
Step 1: What do you want?
Step 2: Describe your environment
Step 3: Describe the problem
Using this library, a custom breakout board, and either the NodeMCU 1.0 (ESP8266) or the ESP32 WROOM I am unable to successfully initialize a connection to the DWM1000 module when using
DW1000Ng::initialize(PIN_SS, PIN_IRQ, PIN_RST);
. However, when usingDW1000Ng::initializeNoInterrupt(PIN_SS);
I can successfully run the BasicConnectivityTest and the BasicSender/BasicReceiver (although at very limited range; like 20 feet).However when attempting the TwoWayRanging examples without the IRQ or RST pins both ESP8266s will print out the connection information for the DWM1000 but never display any other output. So I'm not sure if the IRQ and RST pins are necessary for running more advance examples.
Affected file(s) or example(s):
Steps to reproduce (for bugs only):
Follow pinout instructions from Wiki for ESP8266, including implied connections from examples for RST and IRQ pins
Using the Arduino IDE, upload any of the example sketches listed above to the ESP8266
Custom breakout board connections for reference:

Observed Results:
When not using the IRQ and RST pins, I can get the following output:
When using any example with the IRQ and RST
DW1000Ng::initialize(PIN_SS, PIN_IRQ, PIN_RST);
I receive the following outputI have attempted to use both the current master branch as well as the 0.3 release and both have the same issue.
Expected Results:
I would expect the examples to be printing out calculated ranges between the two modules, and eventually use the TWR multi-node positioning examples to calculate a position. Perhaps it is just my inexperience with these modules and SPI in general but I would have also expected the IRQ and RST pin connections to be documented in the Wiki for the ESP8266 if they are actually required.
Notes:
I've read in the Issues from the original repository that the DWM1000 can behave strangely if underpowered - I am just supplying the chip from the esp8266s voltage regulator so I've wondered if that's the problem but haven't considered it as related to this particular problem
The text was updated successfully, but these errors were encountered: