GithubHelp home page GithubHelp logo

Comments (20)

stronnag avatar stronnag commented on August 16, 2024

You should not need socat (that fakes up a serial port for the configurator or CLI). mwp talks TCP/IP directly (both TCP and UDP). There is a somewhat detailed description in the iNav wiki https://github.com/iNavFlight/inav/wiki/iNavFlight-Missions#esp8266-1

If you need more help, can you please tell me which how the ESP8266 is configured? I have one somewhere with the vendor firmware on it.

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

I used the Manual from here: http://ez-gui.com/manual/multiwii-clearflight-wifi-to-ezi-gui-how-to/
Firmware is jeelabs ESP-Link: https://github.com/jeelabs/esp-link
Not sure atm if i used release or alpha. I flashed a few ESP8266 a few months ago for a friend and he gave me one of them.
The manual you sent is only talking about UDP to ESP-Link. I'll try this tomorrow. How to connect over TCP? I don't have any experience with UDP and don't even know what the parts of the address mean: udp://:14014/esp-air:14014

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

if you're using ESP-Link firmware, then the first part of the wiki link tells you how to do that, just set the device on mwp to tcp://host:port; the wiki link quotes exactly the same example as the ezgui example, the mwp device for that would be tcp://192.168.4.1:23.

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

ah okay it is the same command.
ok i will try this tomorrow. this should then also work through the VM if NAT bridge is enabled.
Thank you very much :)

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

Sure, the above pre-supposes that you've successfully created the wifi link and can:

  • Ping the device and
  • Access it via nc or telnet as described on the github page (you should be able to get the CLI in this way).

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

And yes, it should work from the VM with the NAT bridge.

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

I tried it with TCP Connection right Now. But MWP crashes immediately. Tested on Ubuntu 1604 LTS on my Netbook and also in VMware with Ubuntu 17.10. On 16.04 it Shows me an crash Report the first time but I don't know how to Export it. Ping works fine.

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

works just fine here.

Please run mwp from a terminal and paste all the output here, should be something like (note tcp://eeyore:3333 is a ser2net serial bridge, as I really don't want to reflash my esp8266).

 $ uname -a
Linux uvm-x64-lts 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ mwp -d tcp://eeyore:3333
2018-03-06T19:08:43+0000 mwp startup version: mwp a309712 / 2018-03-06 1.064.713
2018-03-06T19:08:43+0000 Using speech api 2 [speechd]
2018-03-06T19:08:44+0000 libchamplain 0.12.13
2018-03-06T19:08:44+0000 Starting Bing proxy 
2018-03-06T19:08:47+0000 Try connect tcp://eeyore:3333
2018-03-06T19:08:47+0000 Connected tcp://eeyore:3333
2018-03-06T19:08:47+0000 Serial ready
2018-03-06T19:08:47+0000 set mrtype=17 cap =3c
2018-03-06T19:08:47+0000 Feature Mask [10400482] : telemetry true, gps true
2018-03-06T19:08:47+0000 Data Flash 0 /  2097152 (0%)
2018-03-06T19:08:47+0000 set MSP v2
2018-03-06T19:08:47+0000 INAV v1.9.1  SPRACINGF3 (695b92a8)
2018-03-06T19:08:47+0000 Generate navconf b
2018-03-06T19:08:47+0000 Masks arm 1 angle 2 horz 4 ph 200 rth 400 wp 800
2018-03-06T19:08:47+0000 WP_GETINFO: 60/0/0
2018-03-06T19:08:47+0000 Activeboxes 4 00020004
2018-03-06T19:08:47+0000 Requesting nav_wp_safe_distance
2018-03-06T19:08:47+0000 Received (raw) nav_wp_safe_distance 10000
2018-03-06T19:08:47+0000 Arming flags: RC Link (40000), load 12% MSP_CMDS_INAV_STATUS
2018-03-06T19:08:47+0000 Sensors: Acc Baro Mag GPS  (000f)
2018-03-06T19:08:47+0000 switch val == 00020004 (00000006)
2018-03-06T19:08:47+0000 init icon 17
2018-03-06T19:08:47+0000 Timer cycle for 7 items, 43 => 112 bytes
2018-03-06T19:08:47+0000 Start poller

CLI too

$ nc eeyore 3333
#

Entering CLI Mode, type 'exit' to return, or 'help'

# status
status
System Uptime: 1864 seconds
Current Time: 2018-03-06T19:13:44.094+00:00
Voltage: 3.74V (1S battery - OK)
CPU Clock=72MHz, GYRO=MPU6050, ACC=MPU6050, BARO=BMP085, MAG=HMC5883
STM32 system clocks:
  SYSCLK = 72 MHz
  HCLK   = 72 MHz
  PCLK1  = 36 MHz
  PCLK2  = 72 MHz
Sensor status: GYRO=OK, ACC=OK, MAG=OK, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=OK
Stack size: 6144, Stack address: 0x10002000, Heap available: 1024
I2C Errors: 0, config size: 3380, max available config: 4096
ADC channel usage:
   BATTERY : configured = ADC 1, used = ADC 1
      RSSI : configured = ADC 3, used = none
   CURRENT : configured = ADC 2, used = none
  AIRSPEED : configured = none, used = none
System load: 11, cycle time: 1008, PID rate: 992, RX rate: 49, System rate: 9
Arming disabled flags: RX CLI

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024
2018-03-06T11:22:05-0800 Using Xwayland for safety:)
2018-03-06T11:22:05-0800 mwp startup version: mwp 8e7c69e / 2018-02-20 1.047.684
2018-03-06T11:22:05-0800 Using speech api 2 [speechd]
2018-03-06T11:22:06-0800 libchamplain 0.12.16
2018-03-06T11:22:26-0800 Starting Bing proxy 
2018-03-06T11:22:26-0800 Removing /home/marc/.config/mwp/.layout.xml 0
2018-03-06T11:22:41-0800 Try connect tcp://192.168.4.1:23
2018-03-06T11:22:41-0800 Connected tcp://192.168.4.1:23
2018-03-06T11:22:41-0800 Serial ready
2018-03-06T11:22:41-0800 set mrtype=14 cap =3c
2018-03-06T11:22:41-0800 Feature Mask [10402082] : telemetry false, gps true
Gleitkomma-Ausnahme (Speicherabzug geschrieben)

Log just stops here with Floating Point error

CLI Status Through Windows with Serial bridge: (Using INAV 1.7.3 because it is the last Version for my old NAZE32, my both SPR F3 FC still in shipping)

# status
System Uptime: 564 seconds
Voltage: 0 * 0.1V (1S battery - NOT PRESENT)
CPU Clock=72MHz, GYRO=MPU6500, ACC=MPU6500, BARO=BMP280
Sensor status: GYRO=OK, ACC=OK, MAG=NONE, BARO=OK, RANGEFINDER=NONE, GPS=OK
Stack size: 2048, Stack address: 0x20005000
I2C Errors: 0, config size: 1420, max available config: 2048
ADC channel usage:
   BATTERY : configured = ADC 2, used = ADC 2
      RSSI : configured = ADC 3, used = none
   CURRENT : configured = ADC 1, used = none
  AIRSPEED : configured = none, used = none
System load: 6, cycle time: 2015, PID rate: 496, RX rate: 49, System rate: 9

#

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

Thanks. It's not due to the serial bridge. It may be because you're running wayland
2018-03-06T11:22:05-0800 Using Xwayland for safety:)
(running wayland rather than X on something as old as Ubuntu is asking for trouble), or it could be something related to NAZE32 and an old iNav version. Let me have a look, I have a naze32 somewhere.

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

This was in VM with Ubuntu 17.10.
Just done the same on 16.04 and this line does not appear. I think then it uses X?
Anyway it Fails at the same Point. Unfortunately my F4 FC from my race quad is fried so cannot test with it. And I have only a 20mm Micro FC and a brushed FC laying around but both don't have UART breakouts. Only Rx Pins for Receiver. I'll ask a friend to bring me one of his SPR F3 at work tomorrow so I can do some more Tests with 1.7.3 and also 1.9 to see if it is my Setup or possibly the ESP link.

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

I very much doubt it's the esp-link. I don't have a NAZE32 anymore, but I do have a CC3D with 1.7.3. No problem in an Ubuntu VM (16.04 or 17.04) using a serial / TCP bridge. On the netbook, does it work with a direct USB cable?

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

And if it doesn't work with the USB cable, or you'd be prepared to test out something:

$ cd <your mwp directory>
$ git pull
$ git checkout development
$ git pull # perhaps not necessary
$ make && sudo make install
$ # try the esp link again, from the terminal and  post the output.

then

$ git checkout master

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

Now Connection is established but MSP runs into timout Loop. But at least MWP does not crash anymore:

2018-03-06T12:39:07-0800 Using Xwayland for safety:)
2018-03-06T12:39:07-0800 mwp startup version: mwp 1716b87 / 2018-03-06 1.065.727
2018-03-06T12:39:07-0800 Using speech api 2 [speechd]
2018-03-06T12:39:07-0800 libchamplain 0.12.16
2018-03-06T12:39:08-0800 Starting Bing proxy 
2018-03-06T12:39:08-0800 Failed to save layout, remains in /tmp/.mwp.EWR2EZ.xml
2018-03-06T12:39:37-0800 Try connect tcp://192.168.4.1:23
2018-03-06T12:39:37-0800 Connected tcp://192.168.4.1:23
2018-03-06T12:39:37-0800 Serial ready
2018-03-06T12:39:37-0800 set mrtype=14 cap =3c
2018-03-06T12:39:37-0800 Feature Mask [10402082] : telemetry false, gps true
2018-03-06T12:39:37-0800 Flash claims to be 0 bytes!!
2018-03-06T12:39:37-0800 MSP Timeout (MSP_CMDS_DATAFLASH_SUMMARY)
2018-03-06T12:39:37-0800 Flash claims to be 0 bytes!!
2018-03-06T12:39:38-0800 MSP Timeout (MSP_CMDS_DATAFLASH_SUMMARY)
2018-03-06T12:39:38-0800 Flash claims to be 0 bytes!!

I'll test with USB cable too but give me a few minutes. Need to disassemble the wings to reach the FC. This is why I Need Wreless ;)

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

Thanks. NAZE32 claims to have a data flash, then lies about the size, at least in 1.7.3. Let me fix that.

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

With USB it is the same issue. INAV configurator works fine.
Do you mean the Blackbox log dataflash? the 16MBit Flash on my naze is broken and not detected anymore, also in INAV configurator not accessible. That could cause this Report. if MWP ignores that, it should possibly work.

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

Would you please go through the same process:

$ cd <your mwp directory>
$ git pull
$ git checkout development
$ git pull # perhaps not necessary
$ make && sudo make install
$ # try the esp link again, from the terminal and  post the output.

It should now complete the startup (I forgot to move to the next state when the flash was 0).
If you could post the output again, and hopefully I can merge development into master.

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

USB:

2018-03-06T12:53:48-0800 Using Xwayland for safety:)
2018-03-06T12:53:48-0800 mwp startup version: mwp b4c1c5a / 2018-03-06 1.065.748
2018-03-06T12:53:48-0800 Using speech api 2 [speechd]
2018-03-06T12:53:49-0800 libchamplain 0.12.16
2018-03-06T12:53:49-0800 Starting Bing proxy 
2018-03-06T12:53:49-0800 Failed to save layout, remains in /tmp/.mwp.6042EZ.xml
2018-03-06T12:53:59-0800 Try connect /dev/ttyUSB0
2018-03-06T12:53:59-0800 Connected /dev/ttyUSB0
2018-03-06T12:53:59-0800 Serial ready
2018-03-06T12:53:59-0800 set mrtype=14 cap =3c
2018-03-06T12:53:59-0800 Feature Mask [10402082] : telemetry false, gps true
2018-03-06T12:53:59-0800 Flash claims to be 0 bytes!!
2018-03-06T12:53:59-0800 INAV v1.7.3  NAZE (974440df)
2018-03-06T12:53:59-0800 Generate navconf 13
2018-03-06T12:53:59-0800 Masks arm 1 angle 2 horz 4 ph 200 rth 400 wp 800
2018-03-06T12:53:59-0800 WP_GETINFO: 30/0/0
2018-03-06T12:53:59-0800 Activeboxes 4 00004002
2018-03-06T12:53:59-0800 Arming flags: Calibrating,Navigation unsafe (0a00), load 5% MSP_CMDS_STATUS_EX
2018-03-06T12:53:59-0800 Sensors: Acc Baro  (0003)
2018-03-06T12:53:59-0800 switch val == 00004002 (00000006)
2018-03-06T12:53:59-0800 message => No GPS detected
2018-03-06T12:53:59-0800 alert /usr/share/mwp/beep-sound.ogg
2018-03-06T12:53:59-0800 no GPS, sensor = 0x3
2018-03-06T12:53:59-0800 Timer cycle for 4 items, 25 => 59 bytes
2018-03-06T12:53:59-0800 Start poller
2018-03-06T12:53:59-0800 Arming flags: Navigation unsafe (0800), load 6% MSP_CMDS_STATUS_EX
2018-03-06T12:54:09-0800 Arming flags: Navigation unsafe,H/W fail (8800), load 6% MSP_CMDS_STATUS_EX
2018-03-06T12:54:09-0800 sensor health 8003 1 0
2018-03-06T12:54:09-0800 init icon 14
2018-03-06T12:54:09-0800 alert /usr/share/mwp/bleet.ogg
2018-03-06T12:54:09-0800 request sensor info
2018-03-06T12:54:09-0800 Sensor status 0
2018-03-06T12:54:14-0800 Serial doom replay 0
2018-03-06T12:54:14-0800 15s, rx 23465b, tx 8400b, (1597b/s, 572b/s) to 0 wait 0, avg poll loop 51 ms messages 1399
2018-03-06T12:54:14-0800 Close fd -1 on G_IO_IN|G_IO_ERR|G_IO_HUP (19)

WiFi:

2018-03-06T13:03:27-0800 Using Xwayland for safety:)
2018-03-06T13:03:27-0800 mwp startup version: mwp b4c1c5a / 2018-03-06 1.065.748
2018-03-06T13:03:27-0800 Using speech api 2 [speechd]
2018-03-06T13:03:27-0800 libchamplain 0.12.16
2018-03-06T13:03:47-0800 Starting Bing proxy 
2018-03-06T13:03:47-0800 Failed to save layout, remains in /tmp/.mwp.J5FXEZ.xml
2018-03-06T13:04:02-0800 Try connect tcp://192.168.4.1:23
2018-03-06T13:04:02-0800 Connected tcp://192.168.4.1:23
2018-03-06T13:04:02-0800 Serial ready
2018-03-06T13:04:02-0800 set mrtype=14 cap =3c
2018-03-06T13:04:02-0800 Feature Mask [10402082] : telemetry false, gps true
2018-03-06T13:04:02-0800 Flash claims to be 0 bytes!!
2018-03-06T13:04:02-0800 INAV v1.7.3  NAZE (974440df)
2018-03-06T13:04:02-0800 Generate navconf 13
2018-03-06T13:04:02-0800 Masks arm 1 angle 2 horz 4 ph 200 rth 400 wp 800
2018-03-06T13:04:02-0800 WP_GETINFO: 30/0/0
2018-03-06T13:04:02-0800 Activeboxes 4 00200002
2018-03-06T13:04:02-0800 Arming flags: Not level (0100), load 7% MSP_CMDS_STATUS_EX
2018-03-06T13:04:02-0800 Sensors: Acc Baro GPS  (000b)
2018-03-06T13:04:02-0800 switch val == 00200002 (00000006)
2018-03-06T13:04:02-0800 init icon 14
2018-03-06T13:04:02-0800 Timer cycle for 7 items, 43 => 107 bytes
2018-03-06T13:04:02-0800 Start poller
2018-03-06T13:04:26-0800 alert /usr/share/mwp/sat_alert.ogg
2018-03-06T13:04:27-0800 alert /usr/share/mwp/sat_alert.ogg
2018-03-06T13:04:29-0800 Arming flags: Not level,Navigation unsafe (0900), load 6% MSP_CMDS_STATUS_EX
2018-03-06T13:04:31-0800 Arming flags: Not level (0100), load 6% MSP_CMDS_STATUS_EX
2018-03-06T13:04:33-0800 MSP Timeout (MSP_CMDS_ALTITUDE)
2018-03-06T13:04:42-0800 alert /usr/share/mwp/sat_alert.ogg
2018-03-06T13:04:43-0800 Arming flags: Not level,Navigation unsafe (0900), load 6% MSP_CMDS_STATUS_EX
2018-03-06T13:05:02-0800 Arming flags: Not level (0100), load 7% MSP_CMDS_STATUS_EX
2018-03-06T13:05:03-0800 alert /usr/share/mwp/sat_alert.ogg
2018-03-06T13:05:04-0800 Arming flags: Not level,Navigation unsafe (0900), load 6% MSP_CMDS_STATUS_EX
2018-03-06T13:05:09-0800 Arming flags: Not level (0100), load 6% MSP_CMDS_STATUS_EX
2018-03-06T13:05:18-0800 alert /usr/share/mwp/sat_alert.ogg
2018-03-06T13:05:19-0800 Arming flags: Not level,Navigation unsafe (0900), load 6% MSP_CMDS_STATUS_EX

Connection works Now fine, both USB and Wifi. But when Battery is connected and GPS active, it permanently jumps between GPS fix false and true. Inav Config over USB is fine. When GPS off then correctly Shows sensor warning.

from mwptools.

b14ckyy avatar b14ckyy commented on August 16, 2024

Update:
I tested again now and it seems to work for status info, mission upload and download and so on. the only issue is that the NAV Status is not correctly submitted. It switches between fix true and false 5 times per second and shows no info update. All other data seems to be shown correctly. Even over USB connection it has the same issue. the log looks in both cases like the wifi log above. If this is fixed, all should be fine.
bildschirmfoto von 2018-03-07 09-58-47

from mwptools.

stronnag avatar stronnag commented on August 16, 2024

mwp is correctly displaying how iNav handles this particular field (which is not the same as multiwii, unfortunately). In iNav, it's basically a heartbeat, while the fix status is shown elsewhere.

You are better just using the Flight View widget with iNav, and using the Nav Status space for something else, like the artificial horizon or battery status.

Anyway, I think we have addressed the original point of the issue, so I shall close it.

from mwptools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.