vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
383 stars 69 forks source link

ESP 32 not able to discovered by Alexa app #91

Closed pvint closed 3 years ago

pvint commented 5 years ago

Original report by Vaibhav Chavan (Bitbucket: vaibhavdchavan, GitHub: vaibhavdchavan).


Hello,

I am trying fauxmoESP 3.1.0 library with fauxmoESP basic example but device not able to discovered by alexa app.

Please let me know how to debug this issue.

pvint commented 5 years ago

Original comment by Daniel Frankcom (Bitbucket: danielfrankcom, GitHub: danielfrankcom).


I am currently having the same issue (with ESP8266) using platformio with the latest version (3.1.0), and the example code that is provided at https://platformio.org/lib/show/1303/FauxmoESP/examples.

Putting the library into debug mode seems to show that no packets are being received from the app, and running Wireshark seems to confirm this, as I cannot see any broadcast SSDP packets originating from my phone. Perhaps this is an invalid test case, I’m not sure? I've also tried using the latest dev branch, which adds the 1c0e135 commit. This looked promising, but did not yield any different results.

I’m willing to debug or provide information as needed.

pvint commented 5 years ago

Original comment by Daniel Frankcom (Bitbucket: danielfrankcom, GitHub: danielfrankcom).


I’ve just discovered that you can do a similar discovery process from a computer using https://alexa.amazon.ca/spa/index.html?#appliances. With Wireshark running on the same machine, I can see the beginnings of the discovery protocol taking place:

  1. My computer sends out an SSDP broadcast on 239.255.255.250 which contains an M-SEARCH * HTTP/1.1 request
  2. The ESP8266 responds with an SSDP HTTP/1.1 200 OK, which contains the LOCATION field with its IP address and the location of the description.xml file

According to the resources I've found, after this the browser/app should request the XML file, but I don't see any further communication taking place. I wonder whether the M-SEARCH response is considered to be invalid, and the protocol is stopped there?

pvint commented 3 years ago

Closing stale issue.