-
Notifications
You must be signed in to change notification settings - Fork 64
Basic Receive test not receiving packets from Sender (HiLetGo ESP-WROOM-32) #192
Comments
Hi @MatthewFehl365, |
Update: I managed to get the basic receive and send sketches working on the ESP32. I occasionally receive ????? as the message but it looks good for the most part. I'm now attempting to use the 2 two ranging examples and no messages are being received or send. It appears that the initiator is never entering: // continue on any success confirmation Any ideas? |
Hi @MatthewFehl365 , can you try the latest release (not master branch) and see if it works? |
I just realized that the latest release probably didn't work with ESP32, maybe you can try the other pull requests relative to ESP32 and see if they give different results |
I am currently using the most recent release. I tinkered around for a bit and managed to get the 2 way ranging examples to run on my esp32's (somewhat). The initiator will send data for some time (approx 10 seconds) and everything works properly but then it pauses and the interrupt watchdog triggers and reboots the esp32. I'm thinking about modifying it to designate tasks to the 2 cores so it doesn't get hung up on a task. Is this a good approach? |
Oh ok, can you then try the latest master branch? Because there were some pull request merged relative to esp32 maybe they fix this |
Ok! I'll update with my progess after I try! |
I'm still getting the same error: Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1) Backtrace: 0x4008a69e:0x3ffbe620 0x40089a8c:0x3ffbe640 0x4008801b:0x3ffbe660 0x400d368d:0x3ffbe6a0 0x400d301d:0x3ffbe6c0 0x400d2dc8:0x3ffbe6f0 0x400d2e6d:0x3ffbe710 0x400d14f0:0x3ffbe740 0x400d1519:0x3ffbe770 0x400d1f73:0x3ffbe790 0x40080ead:0x3ffbe7b0 0x400845ed:0x3ffbe7d0 0x4008153e:0x3ffb1e20 0x400820b7:0x3ffb1e40 0x40081117:0x3ffb1e60 0x40081157:0x3ffb1e80 0x400d2e53:0x3ffb1ea0 0x400d1570:0x3ffb1ed0 0x400d1f6a:0x3ffb1f00 0x400d10a3:0x3ffb1f20 0x400d11e7:0x3ffb1f40 0x400d1228:0x3ffb1f60 0x400d4a41:0x3ffb1fb0 0x40088215:0x3ffb1fd0 Core 0 register dump: Backtrace: 0x40088f35:0x3ffbe150 0x4008973a:0x3ffbe180 0x40088303:0x3ffbe1a0 0x4008a515:0x3ffbe1c0 0x400845f6:0x3ffbe1d0 0x400ec73f:0x3ffbbff0 0x400d6e23:0x3ffbc010 0x40089706:0x3ffbc030 0x40088215:0x3ffbc050 Rebooting... After a short uptime, the wdt timeout is thrown. The initiator is getting held up somewhere. |
Update: After some more fiddiling around and searching the other issues, it appears that the power supply is the cause of alot of the problems I've been finding so far. I changed how the modules were powered and that fixed most of my issues. Occasionally the ESP32 wdt error will still be triggered so I'm going to keep troubleshooting but the connection is alot more stable now. |
Hi Matthew, i'm doing some tests with esp32 and reading your comments i understand that there can be problems if i don't use good power source. Could you send me your wiring configuration (miso,mosi,cs,irq,rst)? I'm facing some issues with basic receiver/sender and twowayranging examples. Thank you |
Hey @MatthewFehl365 |
Make sure you have good clean power going to the module and you are using pull up resistors on the communication lines. Esp32's built in resistors are really iffy. I fixed the problem purly by feeding it clean power |
@MatthewFehl365 |
@MatthewFehl365 So I'm having the same issues that you were having. Is this fix as simple as slapping a 10k resistor between the 5V line and the wire running to the pin on the MOSI, MISO, CS, and SCK lines? |
Yea that sounds like a good fix. the internal pullup resistors on the ESP32 are really shotty depending on which dev board you get so its always good to add them. |
Oh, sorry. I should have mentioned that i'm using a Teensy 3.2 for the initiator and an arduino uno for the anchor. I tried putting pull up resistors on both of them but it still isn't working for me. I used Serial.print to try to see what's going on and it seems when the teensy sends a 0 to the anchor, it gets some random value. I can sometimes get to to receive a zero. and very rarely it will work but give a negative range that can be something insane like -9254233.43 meters or -0.20 meters. @MatthewFehl365 @thire66 , you guys have any ideas as to what might be causing this? |
Step 1: What do you want?
Step 2: Describe your environment
Step 3: Describe the problem
Running into issues getting the receive example sketch to work with the ESP32. The sender appears to work correctly and both are setup the same way. Pins were reassigned and the both appear in the basic connectivity test sketch.
Sender hardware info:
DW1000Ng initialized ...
Committed configuration ...
Device ID: DECA - model: 1, version: 3, revision: 0
Unique ID: FF:FF:FF:FF:00:00:00:00
Network ID & Device Address: PAN: 0A, Short Address: 05
Device mode: Data rate: 850 kb/s, PRF: 16 MHz, Preamble: 256 symbols, Channel: #5, Preamble code #3
Receiver hardware info:
DW1000Ng initialized ...
Committed configuration ...
Device ID: DECA - model: 1, version: 3, revision: 0
Unique ID: FF:FF:FF:FF:00:00:00:00
Network ID & Device Address: PAN: 0A, Short Address: 06
Device mode: Data rate: 850 kb/s, PRF: 16 MHz, Preamble: 256 symbols, Channel: #5, Preamble code #3
The basic receiver ESP yields forever after attempting to receive the packet. I'm new to decawave's system and relatively new with these more advanced arduino (and others) projects. need some help trying to find whats going wrong here and if its a larger issue with library compatablility. (or more likely im just dumb and dont know what im doing).
Thank you for any help!
Will share code that anyone thinks will help!
The text was updated successfully, but these errors were encountered: