Apologies for not replying sooner but I was at work.
I’ve managed to fix the WiFi module and now it connects to MissionPlanner 1.3.49 almost everytime.
Using 192.168.4.1/getstatus, my board responds:
Comm Status
Packets Received from GCS 0
Packets Sent to GCS 2720
GCS Packets Lost 0
Packets Received from Vehicle 2720
Packets Sent to Vehicle 54
Vehicle Packets Lost 0
Radio Messages 0
System Status
Flash Memory Left 487424
RAM Left 12960
Parameters CRC C97A639A
I remembered that on April 2017, I’ve flashed both my AUAV PixRacer and clone PixRacer ESP8266 boards using the latest MAVLinkESP firmware v1.1.1 and by also using 192.168.4.1/getparameters I get the following
Name Value
SW_VER 16842752
DEBUG_ENABLED 0
WIFI_MODE 0
WIFI_CHANNEL 11
WIFI_UDP_HPORT 14550
WIFI_UDP_CPORT 14555
WIFI_IPADDRESS 17082560
WIFI_SSID1 1383622992
WIFI_SSID2 1919247201
WIFI_SSID3 0
WIFI_SSID4 0
WIFI_PASSWORD1 1920493936
WIFI_PASSWORD2 1919247201
WIFI_PASSWORD3 0
WIFI_PASSWORD4 0
WIFI_SSIDSTA1 1383622992
WIFI_SSIDSTA2 1919247201
WIFI_SSIDSTA3 0
WIFI_SSIDSTA4 0
WIFI_PWDSTA1 1920493936
WIFI_PWDSTA2 1919247201
WIFI_PWDSTA3 0
WIFI_PWDSTA4 0
WIFI_IPSTA 0
WIFI_GATEWAYSTA 1
WIFI_SUBNET_STA 1
UART_BAUDRATE 921600
I remember that all I did was to flash the boards with the MAVLink firmware using my FTDI adapter, as both boards came with older firmware version than 1.0.4 and the 192.168.4.1/update page always returned FAIL
. No other parameters were changed. Today, I’ve performed another flash of one of my two boards using the same firmware (I kept the firmware file back then and it is exactly the same as the current one on the homepage) and issued the same getparameters just to check that they are the same default ones.
Using Fing on Android, I’ve checked the network connection between my tablet (Chuwi Hi8, Intel Z3736F, Android 4.4.4 / Windows 8.1 x86) and the PixRacer and noticed that the network link used as gateway the 192.168.4.1 address. Rebooting the tablet to Windows and connecting again to PixRacer, the network information shows a null default gateway address.
Re-checking the default MAVLinkESP v1.1.1 parameters, I’ve noticed that both WIFI_GATEWAYSTA
and WIFI_SUBNETSTA
had values of 1 (this applies to both boards). Changing both of these to 0 solved the problem and now MP always connects to the PixRacer via the ESP8266. I do not know if this problem (the wrong configuration) applies only to my boards or it is a case of wrong default configuration (I assume that flashing the board with the firmware erases everything, including the saved configuration, then replaces it with default values).
Now, when I remove my 3DR Telemetry module, I can connect to the PixRacer WiFi (previously this was not possible even with the 3DR Telemetry module removed). Some times MP fails to connect responding “Only 1 heartbeat packet received” but rebooting the WiFi card fixes this and connects which is an improvement. The parameter changes above do not have any effect on Tower Beta Android app, this application can connect every single time to the PixRacer, whether the 3DR telemetry is connected or not.
Hope this can help.
Again, many thanks to everyone for the time taken to help me fix this.