WX ESP8266 WiFi Module error: "RX handshake timeout"
mpark
Posts: 1,305
in Propeller 1
OK, I got my WiFi module hooked up to a Propeller. I've switched it to STA mode and uploaded a little .binary file.
I think the first step is to get the reset working, so if anyone can help me out with that, I'd be grateful. Hopefully the handshake timeout will go away once reset works.
- I sent a POST request to 192.168.50.29/propeller/reset and got a 200 status back, but the Propeller did not reset.
- I then tried POST 192.168.50.29/propeller/load-file?file=2sblink.binary and got back status 400 and the message "RX handshake timeout" (and no reset).
- Now if I POST 192.168.50.29/propeller/reset I get 400 and "RX handshake timeout"--and the Prop still does not reset.
I think the first step is to get the reset working, so if anyone can help me out with that, I'd be grateful. Hopefully the handshake timeout will go away once reset works.
Comments
1. How do you have the Propeller connected to the WX module? You mention the PropPlug, but not the Propeller connections. In fact... you don't need to have a PropPlug connected at all, as the WX module replaces the PropPlug for programming the Propeller. Connecting the PropPlug to the WX module is only done to re-program the firmware in the WX module.
2. If you are using the SIP connections, then you don't have the DTR pin available, which usually resets the Propeller before programming. You could use RTS instead- take a look in the WX module web gui, (or via the API), and change the reset pin from DTR to RTS. You'll find a drop-down in the webgui settings.
Then the connections from the WX module SIP to your Propeller would be:
With this set, you can get to the WX module web gui page, update the RTS setting, save to Flash, then experiment with your POST requests.
I did not find anything in the settings gui to change the reset pin to use RTS; what I did instead was POST 192.168.50.29/wx/setting?name=reset-pin&value=15, then I clicked "Save to Flash" in the gui.
And now it works! I can reset the Propeller remotely and run a .binary file. Thank you very much, @VonSzarvas!
Of course I'd like everything to work without my having to disconnect RES every time I cycle power.
Any ideas?