So - I just reviewed the schematics for the Xiao-ESP32S3 and Wio-SX1262, and I don’t see how this can ever work using the B2B connector. Here’s the diagram:
Based on this, GPIO1 isn’t even connected to the Wio-SX1262, so it can’t possibly be used as a wakeup. It’s probably floating, hence my code wakes up immediately.
What’s more, it seems the Wio-SX1262 pins that could be used for wakeup (i.e. LORA_DIO1 and maybe LORA_BUSY) are NOT connected to RTC GPIOs on the ESP32S3 via the B2B connector - they’re connected to regular GPIOs, which can’t be used for deep sleep wakeup.
Interestingly, the schematic for the Wio-SX1262 does show that the B2B connector has access to GPIO14-18, but I guess they weren’t chosen to connect to the SX1262. That’s a design choice that seems to limit the ability to deep sleep these devices and wakeup for packet reception.