b3nn0 / stratux

Fork of the original cyoung/stratux with multiple patches for flying in europe
BSD 3-Clause "New" or "Revised" License
139 stars 61 forks source link

Using both external GPS and TTGO T-Beam simultaneously #93

Open Shredder opened 3 years ago

Shredder commented 3 years ago
  1. Stratux version: latest stable release (Stratux Europe Edition 1.6r1-eu022)

  2. Stratux config:

    SDR

    • [ ] single
    • [X] dual

    GPS

    • [X] yes
    • [ ] no type: TTGO T-Beam and u-Blox 7 based

    AHRS

    • [X] yes
    • [ ] no

    power source: Anker power bank

    usb cable: yes

  3. EFB app and version: (e.g., WingX Pro7 8.6.2) SkyDemon latest stable version

    EFB platform: (e.g., iOS 9.2) Android

    EFB hardware: (e.g., iPad Mini 2) Amazon Kindle

  4. Description of your issue:

When I simultaneously connect both my external GPS mouse (u-Blox 7 based) and my TTGO T-Beam (hardware version 0.7, flashed with the latest Stratux releases' OGN Tracker firmware), Stratux seems to ignore my T-Beam. For instance, no device is created for it in /dev and the web UI does not show configuration options for the T-Beam.

As I suspect that the GPS mouse is better than the GPS of the T-Beam, it would be nice if Stratux would be able to utilize both at the same time.

If possible, enable "Replay Logs", reproduce the problem, and provide a copy of the logs in http://192.168.10.1/logs/stratux/ and http://192.168.10.1/logs/stratux.log.

b3nn0 commented 3 years ago

Due to the way GPS handling is implemented in Stratux, multi-GPS-handling is not a simple task and requires quite a bit of work - I have no interest to do that myself. If someone wants to do it and PR, I'm open to it. However, normal USB GPSes are usually preferred over the T-Beam. So you can certainly have both plugged in. But you will - as you described - lose the configurability.

If you don't have to reconfigure frequently, you could just configure the Tracker once and then let it sit there for transmission. For reception, you still have the SDRs, so the T-Beam<->Stratux connection is mostly optional.

JNSwanson commented 3 years ago

I have a T-BEAM with the later GPS module, and I found the reception not too good. The backup battery has only 1mAh capacity and takes ages to charge, so it mostly has to do a cold start. I replaced the GPS antenna with this one https://www.ebay.co.uk/itm/174725227219 whic works WAY better. It now works indoors and has 20+ satellites in the solution. Jeremy.

rvt commented 1 year ago

We are currently working on having multi-GPS possibilities. This should allow to connect the t-beam and a GPS pug connected on stratux.

Here is an example of 3 GPS connected and the one with the green check is selected as the GPS used for position. Traffic will still come in over OGN...

image