-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ESP8266 Bridge] [BUGFIX] Add check for WIFI params for ESP8266 bridge #12348
base: master
Are you sure you want to change the base?
Conversation
This seems a bit like fixing the symptom not the problem. How come these parameters are missing? Aren't they required? |
TBH, I don't know. Are those nested inside Ardupilot? Or in QGC? And, can QGC (GS in general) set new params? That is, send from external world and AP will save it? It's possible for LUA scripts to add new params, and they will be seen from now on in AP parameters list. |
Those params should come from the device itself. When QGC does a request for parameters from the vehicle it should get these as well. Somehow it got this:
But not the other parameters. That is very odd. Can you help clean this code to at least tell the user that the UI isn't going to work? Right now it's just gonna show nothing in the UI for the wifi ssid/password fields. And they won't work. There should be some sort of 'valid' bool on the controller or something which indicates the whole things is hosed up. And then the ui lets the user at least know. |
When you run a build with your fix. Do you still get a parameters missing error when you go to the setup page? |
@zdanek Any updates on this? |
@DonLakeFlyer I'm back with this. Apparently I found original problem with params. ESP8266 bridge is popular in several flavors, best of them is Beyond Robotix Kahuna. I used that one as a base. Still I introduced many fixes and improvements for my own use. Nevertheless, it had a few params "misspelled", for example Do you know where is any "official" spec of those params? I dug through mavlink docs but found nothing. So, after that fixes in ESP8266 bridge firmware, it works again in QGC but I see that UI can be a bit adjusted. Also WIFI mode set to "STA" doesn't disable AP fields. Baud rate is also incorrect - might be problem in QGC or in ESP8266 bridge. And now the best part - with that params problem I accidentally discovered a nasty "bug/feature" in QGC that effectively blocks fetching component's params other than Ardupilot FCU component (autopilot). I will create a bug report and I can do a fix. The problem is that after connecting to a Ardupilot Vehicle, QGC fetches all params via FTP. That setting effectively blocks broadcasting request for param list from components attached to that particular Vehicle. They should react on If I disable ftp (just set |
Description
When using WIFI ESP8266 bridge for the first time, QGC was not checking for existence of WIFI parameters. It resulted in SIGSEGV
Test Steps
Create fresh build, with fresh ini config, connect ESP8266 bridge to Ardupilot board.
This fix checks for existing WIFI params.