zs6buj / AntTracker

Antenna Tracker for tracking a moving model aircraft or drone with a small high-gain UHF or SHF antenna
GNU General Public License v3.0
155 stars 42 forks source link

esp32 dev board - not working #30

Closed pan-sattan closed 3 years ago

pan-sattan commented 3 years ago

anyone can help me?

I am using:

betaflight + fport R9mm

X9D + R9M ACCESS - S.PORT + GND pins used

esp32 dev board

define ESP32_Variant 1

OLED display GND, 5V, SDA - PIN 21, SCL - PIN 22

define Display_Support

define SSD1306_Display

Serial port on PIN27, GND

define Telemetry_In 0

GY-271 GND, 5LV, SDA - PIN 21, SCL - PIN 22

const uint8_t Heading_Source = 2;

nothing else is connected or changed in config...

oled display is working, but in debug I can see that no telemetry is going inside... I tried inverter and the same... on the screen is that telemetry is not going into esp32 board

Any idea what should be wrong? could be, that I dont have in my flat any gps sats found? zero values comes from taranis..

Is there any possibility to switch in config FAKE VALUES?

20210225_091223

20210225_090441

Almischalmi commented 3 years ago

I have a similar issue. Baud detection works, but no mavlink detection (Mavlink 1/2, 115k/57k)

mello73 commented 3 years ago

Hello, I'm 'not a Betaflight user but I have some questions

  1. What is your telemetry settings and possibility in betaflight ? (Mavlink / sport / fport )
  2. Firmware version in the FC ?
  3. Board FC model ?
  4. Version and type Firmware R9 ? ( Access/ Accst ) Regards
pan-sattan commented 3 years ago

all infos are there... latest betaflight, fport, access protocol, latest opentx... I am able to decode s.port from R9m with another arduino and code... but want to uae this one for tracker

zs6buj commented 3 years ago

Hi Guys,

Merci d'être venu Marius.

I will look at this today. One thing you have not given me is firmware version number.

Remember f.port is 115200 b/s.

pan-sattan commented 3 years ago

firmware of betaflight is 4.2.2 I checked it right now... or do you mean another firmware? opentx 2.3.9, R9m flex firmware ACSST 20190117, R9mm flex fport 20190201 sorry I have hare two modules, but using this one

pan-sattan commented 3 years ago

and if I use bluetooth mod for my R9m together with app telemetry viewer, it works normally. My HC-05 is set to baud 57600, even that works with arduino decoder from Pawelsky

zs6buj commented 3 years ago

No, I meant AntTrack version number. So are you using Mavlink, and serial or BT

Almischalmi commented 3 years ago

I've tried several of the newer versions. Mavlink on serial.

pan-sattan commented 3 years ago

I used v2.15.4 and frsky protocol, serial input Now I tried v2.15.5 and it moves on! I will keep testing...

20210226_112117

20210226_112133

zs6buj commented 3 years ago

Oops, it's my bad!

I added frInvert for FrSky telemetry input (for mello73), but left it so it is also inverting Mavlink telemetry.

Please, in the meantime, go to your ESP32 variant setup, and change frInvert line like this:

bool frInvert = false; // DON'T INVERT FOR MAVLINK

I am about to publish a new version, with FrSky UDP input and a few other improvements. I will fix this issue there.

Sorry for the inconvenience. No excuses for this!

pan-sattan commented 3 years ago

I am glad, that I can test it, or help you in development... I change it and thats the result:

pan-sattan commented 3 years ago

20210226_134022

20210226_134149

20210226_134058

zs6buj commented 3 years ago

Yeah, it looks correct now. Thanks for the feedback.

Now maybe activate these macros to see some telemetry:

#define Debug_Mav_Heartbeat  
#define Debug_Mav_GPS   
pan-sattan commented 3 years ago

I tried, but it stops with Mavlink 2 found... nothing else is comming

pan-sattan commented 3 years ago

could be the betaflight issue? or maybe non GPS signal in my flat

pan-sattan commented 3 years ago

2021-02-26 14_15_55-AntTrack_v2 15 5 - config h _ Arduino 1 8 10

zs6buj commented 3 years ago

I'm not sure what protocol Betaflight outputs these days

pan-sattan commented 3 years ago

I think the same like INAV

20210226_161406

pan-sattan commented 3 years ago

this works for me with decoder from Pawelsky

zs6buj commented 3 years ago

Can your fc connect to a Mission Planner. I'm afraid I don't know Pavelka. Can you post a link?

pan-sattan commented 3 years ago

I will try later mission planner.

https://www.rcgroups.com/forums/showthread.php?2245978-FrSky-S-Port-telemetry-library-easy-to-use-and-configurable

pan-sattan commented 3 years ago

I am not able to connect my FC in MP

image

image

zs6buj commented 3 years ago

Could you do some research and find out which protocol you are using.

pan-sattan commented 3 years ago

its Frsky protocol

zs6buj commented 3 years ago

Ok pan-sattan, we should be able to solve this. I just tested FrSky S.Port again and it works here, but now I see above you mention F.Port. I have not added F.Port support yet.

pan-sattan commented 3 years ago

ok, is there something what I can do or help you somehow?

zs6buj commented 3 years ago

Thanks for offering, but I already have written the F.Port code for other projects. I just need to adapt it here.

zs6buj commented 3 years ago

@pan-sattan:

From your images I can't see where you pick up the F.Port telemetry. Could you show me were your wiring brings in the P.Port FrSky telemetry, I don't have a fport R9M, mine is S.Port.

But I just ordered one. It will take about a week to come I think. I have wanted to try the new R9M/R9 mini OTA for a while now. :)

pan-sattan commented 3 years ago

source for esp32 is here: from top s.port,+5V,GND

20210228_080452

zs6buj commented 3 years ago

ok, got it. Thanks.

On Sun, 28 Feb 2021, 09:09 pan-sattan, notifications@github.com wrote:

source for esp32 is here: from top s.port,+5V,GND

[image: 20210228_080452] https://user-images.githubusercontent.com/59567959/109410600-41c1a180-799c-11eb-8220-3a096d646ddc.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zs6buj/AntTracker/issues/30#issuecomment-787407410, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCLS5PNDXKBCZTZYODRACDTBHT3FANCNFSM4YGXHUCQ .

zs6buj commented 3 years ago

I have posted a Beta of V2.16.1 which adds support for F.Port (1 & 2).

I can only test it properly once I get me new ACCESS Rm9/R9

pan-sattan commented 3 years ago

image

zs6buj commented 3 years ago

Thanks. I see you activated some of the debugging. Try only this one:

define Debug_FrSky

Make sure your flight computer is powered up, and it would be good if your GPS could see the sky without obstruction.

pan-sattan commented 3 years ago

image

20210303_204706

20210303_204650

20210303_204635

zs6buj commented 3 years ago

I was able to debug S.Port.

Please could you try V2.16.2 (Beta). You should get something like this:

Starting AntTrack_F version:2.16.02
Display support activated: Landscape 
 version:2.16.02
Target Board is ESP32 / Variant is LILYGO® TTGO T-Display ESP32 1.14 inch ST7789 Colour LCD
Mavlink Serial In
Heading_Source = Flight Computer
Serial port rx pin 13 is IDLE_LOW, inverting rx polarity
AutoBaud - sensing rxPin 13
Baud rate detected is 57600 b/s
FrSky S.Port found
FrSky read good!
 FrSky 0x5004 Dist to home=0.0 Rel Alt=30.0
Passthru dialect detected
 FrSky 0x5002 Num sats=12 gpsStatus=3 HDOP=8 gpsAlt=15.2 hdopGood=1 neg=0
 FrSky 0x800 latitude=-25.9462109
 FrSky 0x800 longitude=28.0435505
 FrSky 0x5005 Heading=129.2
 FrSky 0x5004 Dist to home=0.0 Rel Alt=30.0
 FrSky 0x5002 Num sats=12 gpsStatus=3 HDOP=8 gpsAlt=15.2 hdopGood=1 neg=0
 FrSky 0x800 latitude=-25.9462109
GPS good
GPS lock good! Push set-home button anytime to start tracking.
pan-sattan commented 3 years ago

yes, its finally work, I am able to see Heading, which is moving...

image