paulmandal / atak-forwarder

Forwards packets to/from ATAK over an off-grid communication layer
MIT License
390 stars 42 forks source link

Plugin cannot connect to MT service #173

Closed paulmandal closed 9 months ago

paulmandal commented 1 year ago

Opening this issue for tracking purposes, in 2.0.6 and later versions of the plugin the plugin icon will turn to "SVC" in red letters when in this state.

If you are having this issue please post your Android version, plugin version, and ATAK version to this issue.

cpt518 commented 1 year ago

Good news, I see the svc icon marked read now but it is now telling me it won’t connect to meshtastic. Meshtastic has been reinstalled, as has ATAK/plugin.

Atak4.8.1.17 Meshtastic 2.1.4 Android 13 ATAK forwarder 2.0.6 (most current)

paulmandal commented 1 year ago

@cpt518 try with Meshtastic 2.1.8 (app and firmware) You may also get the message Unable to start service Intent { cmp=com.geeksville.mesh/.service.MeshService } U=0: not found in your logcat output from your device, that is what I'm seeing on the device I can replicate the issue on at least.

Josh-SMU commented 1 year ago

Everything works for me but I also get the toast notification saying it cant connect to the Meshtastic service. Seems like a false positive as everything is working otherwise.

MT 2.1.8 FW 2.1.8 ATAK 4.7.0 Plugin 2.0.6 Android 11

paulmandal commented 1 year ago

Thanks for the post @Josh-SMU That Toast most likely fires as the plugin is starting up before it's connected to the service, if you get the SVC icon in red the issue is persisting.

SunbrightShinobi commented 1 year ago

I have this issue after updating everything after a long period. MT 2.1.4 (Joined beta and still have issue on 2.1.9) FW 2.1.5 ATAK 4.8.1.19 Plugin 2.0.6-1-4.8.1 Android 13

fastbuckink commented 1 year ago

new to this, so i might be doing something totally wrong. i have meshtastic working and communicating between devices. with atak i get the red svc android 13 meshtastic 2.1.10 atak 4.8.1.19 tbeam 2.1.8 forwarder 2.0.6 4.8.1

sam isue with tablet runnung android 13 as well

SunbrightShinobi commented 1 year ago

Same with MT 2.1.11

Jkjvinn commented 1 year ago

Seems most people that have this problem is running android 13 Android 13 MT 2.1.10 ATAK 4.8.1.19 Plugin 2.0.6 4.8.1

Devices can talk to each other in Meshtastic app, but ATAK is not getting any data, I will be able to help with testing if you need, ATAK on my main phone is for testing anyway, I just know nothing about coding so I cant help with that.

I will try install older version of ATAK and Meshtastic to see if that will work

SCWhite commented 1 year ago

I think this issue is on ATAK 4.8.1

(when disabling "Plugin Manages Device") I can connect and let those node see/communicate each other on: Android 12/13 Meshtastic app: fdroidRelease-2.1.0 Meshtastic FW: 2.1.11 ATAK.Forwarder: 2.0.6-1-4.7.0 ATAK 4.7.0

but when I change to ATAK 4.8.1 with Forwarder 2.0.6-1-4.8.1 I always got SVC error

Jkjvinn commented 1 year ago

I just switched to MT 2.1.0 Plugin 2.0.6 4.7.0 ATAK 4.7.0 and no sauce, still does not want to work and says that it cant communicate with Meshtastic app and want me to check if i have it installed

SCWhite commented 1 year ago

HI @Jkjvinn

just to be clear, are you using ATAK 4.7.0 from tak.gov? and Meshtastic 2.1.0 from Meshtastic-Android release?

I had to clear every thing and do a clean install to make it work.

also, I got stuck at reboot loop, so had to disable "Plugin Manages Device" and manually make sure the two config match.

Jkjvinn commented 1 year ago

I got the ATAK apk from pureapk because I did not want to open an account on a goverment website, I'll ask my friend to use his account to download a new file. For Meshtastic yes I got it from github

Jkjvinn commented 1 year ago

Well 1 out of 4 of my devices , the one is running android 9 is working, the one running 12 and the two running 13 does not work.

Jkjvinn commented 1 year ago

@paulmandal is it possible for you to check if its the newer android 12 and 13 permission system messing with the plugin?

Jkjvinn commented 1 year ago

Good news, got it to work, I had to use this set up ATAK 4.7.0.4 from tak.gov Radio firmware 2.1.10 Meshtastic App 2.0.21 Forwarder plugin 2.0.5 on Android 13 on Google pixel 7 pro and Google pixel 4 XL

Tyler-2 commented 1 year ago

Doesn't work:

Android 13 ATAK Forwarder: 2.0.6 ATAK version: 4.8.1.19 (playstore) Meshtastic app: 2.1.9 Meshtastic firmware: 2.1.5 and 2.1.11

Jkjvinn commented 1 year ago

Do not use playstore version, the tak.gov version is more than 250mb and the play store version is less than 100mb, they cut stuff out.

cpt518 commented 1 year ago

Still struggling with the various settings but continue to get hung up on the “service disconnected” while working thru all the various combos.

cant update the firmware for my tbeam due to errors with the web flasher so I’m stuck with the 2.0.6 FW the device came with. Any recs in which version of the forwarder/app would work best on that firmware? I was thinking the 2.0 release

paulmandal commented 1 year ago

It looks like this issue is confined to ATAK 4.8.x+, using 4.7.0.4 should work for now.

Tahkis commented 1 year ago

Did some extensive testing today. Not exactly sure where the problem is but was able to set things up and working and most importantly replicate the process.

My setup (x2) Galaxy XCover 4s running Android 11 w OneUI 3.1 ATAK v4.8.1.27 playstore ATAK Forwarder 2.0.6-4.8.1 Meshtastic 2.1.15 LilyGo t-echo v2.1.14.99a31c1

Did the BT pairing first w Android BT tool. Then set up the T-ECHOs to Meshtastic. Confirmed w Meshtastic sending messages. Then loaded the ATAK Forwarder plugin in ATAK. In Forwarder pref refreshed devices and selected paired t-echo and region. Ensured the Plugin Manages Devices is on.

After t-echo reboot I quit and relaunched ATAK. Apparently I got Forwarder plugin working on both.

HOWEVER, since my XCover 4s devices do not support QR reading, I can not set up a common channel with Forwarder.IS THERE any other way to export and import the a Forwarder created Meshtastic channel data from device to device but only the QR scan?


Further testing w Nokia XR20 W Android 13 does not yield a positive result. The plugin does not seem to communicate w Meshtastic app at all. I turned off from settings>apps for both ATAK and Meshtastic a setting saying "Pause app activity if unused" but that did not help either.

Tahkis commented 1 year ago

It looks like this issue is confined to ATAK 4.8.x+, using 4.7.0.4 should work for now.

As I can get the ATAK 4.8.1 to work with 2.0.6 on Android 11 but NOT on Android 13 (after loading Forwarder ATAK gives an error saying "Meshtastic Service not connected, check that you have the Meshtasti...") I believe the problem is related to Android AND MT versions combination.

In both my A11 and A13 I run MT v 2.1.15 and ATAK 4.8.1 (playstore). Also both MT firmwares are the same 2.1.14.99a31C1.

Screenshot_20230717-184341.png

Nordic2199 commented 11 months ago

Can anybody give me an explanation where you flash your devices with these old versions? My biggest problem is that the web flasher only allows to flash newer firmwares... The oldest one is 2.1.18

TermnlSgt commented 11 months ago

Can anybody give me an explanation where you flash your devices with these old versions? My biggest problem is that the web flasher only allows to flash newer firmwares... The oldest one is 2.1.18

@Nordic2199 https://web.esphome.io/

Nordic2199 commented 11 months ago

Good news, got it to work, I had to use this set up ATAK 4.7.0.4 from tak.gov Radio firmware 2.1.10 Meshtastic App 2.0.21 Forwarder plugin 2.0.5 on Android 13 on Google pixel 7 pro and Google pixel 4 XL

Had the same settings except of the ATAK version - got the ATAK 4.7.0.4 from playstore and it doesn`t worked :(

SCWhite commented 11 months ago

@Nordic2199 you need ATAK 4.7.0 from https://tak.gov Playstore version doesn't work

Nordic2199 commented 11 months ago

@Nordic2199 you need ATAK 4.7.0 from https://tak.gov Playstore version doesn't work

But the oldest version that is possible to download is 4.8.1

SCWhite commented 11 months ago

@Nordic2199 Ah, I see. They seems to took down the older version. Then there is nothing we can do right now, maybe we can send @paulmandal some coffee and hope for the best?

Nordic2199 commented 11 months ago

Good news, got it to work, I had to use this set up ATAK 4.7.0.4 from tak.gov Radio firmware 2.1.10 Meshtastic App 2.0.21 Forwarder plugin 2.0.5 on Android 13 on Google pixel 7 pro and Google pixel 4 XL

Are you able to provide the ATAK version? ;)

Jkjvinn commented 11 months ago

Good news, got it to work, I had to use this set up ATAK 4.7.0.4 from tak.gov Radio firmware 2.1.10 Meshtastic App 2.0.21 Forwarder plugin 2.0.5 on Android 13 on Google pixel 7 pro and Google pixel 4 XL

Are you able to provide the ATAK version? ;)

Yes but use it at your own risk, scan it before use. https://drive.google.com/drive/folders/13rqNxuNbXmhe1qjagzwKDS76Mpa37oB0

Nordic2199 commented 11 months ago

Good news, got it to work, I had to use this set up ATAK 4.7.0.4 from tak.gov Radio firmware 2.1.10 Meshtastic App 2.0.21 Forwarder plugin 2.0.5 on Android 13 on Google pixel 7 pro and Google pixel 4 XL

Are you able to provide the ATAK version? ;)

Yes but use it at your own risk, scan it before use. https://drive.google.com/drive/folders/13rqNxuNbXmhe1qjagzwKDS76Mpa37oB0

Thank you a lot Works perfectly on Samsung S20 and S22