This object is in archive! 

T: cannot connect to BRouter service

Petr Pavlicek shared this question 6 years ago
Answered

With BRouter installed and with working WiFi connection when trying to navigate to a point (in Locus maps) there comes a

message "T: cannot connect to service"

Replies (20)

photo
1

Correction: no WiFi but a mobile internet access

photo
1

Did you explicitly configured LocusMap to use the offline Brouter as the default navigation routing service ? As it looks like if you had set some online service instead, e.g. Mapquest, and there is some connection error ( either general connection problems, either specific server problems, usually temporary )

photo
1

Attached is my settings. Or is there another one?I am using Huawei p10 plus with external sd card, where my Locus maps reside. I tried to install BRouter to the sd card as well, but it was only copied to internal storage....

On 20 Sep 2017 1:50 PM, Locus Map <locus.map@asamm.com> wrote:

photo
1

Until there are downloaded RD5 routing data( can be placed on SD card) and Brouter is properly configured ( Readme and Kitkat survival guide ), it will not be really used.

http://brouter.de/brouter/readme.txt

http://brouter.de/brouter/kitkat_survival_readme.txt

photo
1

Thanks for the fast answerI have rd5 files downloaded (all middle Europe - 9 files) so my area is definitely covered. 

Complete BRouter folder are now both on my internal and external storage. 

I am experienced computer user but not a programmer. The linked file seems to be a bit complicated. Am I supposed to do some changes to storageconfig.txt file? Would need some simple step by step guidance on how to set BRouter properly. 

On 20 Sep 2017 2:45 PM, Locus Map <locus.map@asamm.com> wrote:

photo
1

There is nothing to be programmed. Those config tweaks are just to assure BRouter will not have read/write local data problems in case it does have any. Brouter does not go online at all, with exception of the explicit running the BRouter download manager for RD5 files. ( I prefer script downloding and wifi syncing to device ).


But Locus may try to go online on its own. Try for testing to switch to online service 1 or better several, what happens.

photo
1

Ok, I have deinstalled and reinstalled BRouter onto the internal storage  IT IS WORKING NOW I'll leave it at that - rd5 files don't take that much memory

Many thanks for all your help

Petr

On 20 Sep 2017 4:05 PM, Locus Map <locus.map@asamm.com> wrote:

photo
1

Good day guys,

sorry for a complications I read about here. Developers message has no good explanation mainly because I never expected it may happen. What you see is error message where Locus Map tries to say that it cannot connect to installed BRouter application to request route.

What I wanted to point on, is to what you exactly did: re-install BRouter app, because it looks like it has some problem in registration of it's routing service in Android system. I'm glad to read it helped, perfect .. and Thanks Libor for a help!

Menion

photo
1

Had the same error. Reinstalling BRouter fixed it

photo
1

Hi,

I've encountered the same problem - T:cannot conect to service. Unfortunately, reinstalling BRouter didn't fix it at all. Have any clue what should I do to in this situation?

photo
1

Hello. I had the same problem. contact with the support showed that another app on my smartphone with BRouter comes in the way. Which could not be said.

I bought the full version in the hope to fix the problem. negative. After a long trial I found a solution:

Start the BRouter> Select Main Action: BRouter App> Select routing profile ...> Select Action> Server Mode> Choose service ...> Success :-) Then start locus.

photo
1

Hi, thanks for the advice. The solution works on my device perfectly but... only to the point when I'm colosing the Locus app. After restart I have to repeat the whole procedure again:) Anyway, it's better than nothing :D

photo
1

Hi, I follow your advice, every step, but locus still shows an error message. Can anyone help me, please? My phone is Infinix note 4x. I'm searching all over the web, but still this page is the best I can find. Thanks

photo
1

Hello, did you tried some basic tasks like complete re-install of BRouter? A restart of the device? Please also check that BRouter has to write permission and has downloaded data in your internal memory/BRouter directory.

Anyway this error is still a problem for us and unfortunately, I wasn't yet able to find our reason, why this rarely happens on some devices, sorry.

Menion

photo
1

Hello, I tested the procedure decribed by A.H. twice (Start the BRouter> Select Main Action: BRouter App> Select routing profile ...> Select Action> Server Mode> Choose service ...> Success :-) Then start locus.). It seems that it works:)

photo
1

Hello, I have the same problem with Android 9. This fix works for me also. The effect is temporary but still... I believe it gets messed up when the device connects to the network. I use a dedicated phone for navigation without network connection except wifi when I choose to.


Cheers

photo
1

The problem seems to be that Locus cannot open Brouter. If I open router on line and choose a profile, Locus navigates. Then closing WiFi connection doesn't affect Locus. New navigation can start. BRouter can be turned off. If Locus is turned off, if network connection is established, then the routine needs to start over again. So network connection disturbs BRouter operation and then reset is needed to sort out smooth Locus operation. I also have the same problem with Android 6.0.1

photo
1

Yes, I've tried re install it for couple times (three times, I guess) also switch it from external to internal memory. And for write permission, I think i Grant it for the first time opening brouter. Since, there is no change. Hope that you find the problem soon. 

Pada tanggal Rab, 20 Nov 2019 14.35, Locus Map <locus.map@asamm.com> menulis:

photo
1

Hello,

my colleague also informed me, that one tested successful solution may be to exclude BRouter from the battery optimization system in a similar way as we suggest for Locus Map itself.

Menion

photo
2

This worked for me.

photo
1

Hi all

Are there any other tips to prevent this: T:cannot connect to service.

I got a new AGM X3 Phone with Oreo 8.1.0 System: actual. No root, no custom-rom....

When I choose Navigation and choose any point as target- when I tap on the blue button to start calculation, I can see a orange message described above: T: Cannot connect to Service


What I already did: exclusion of battery optimization (Locus and Brouter), this "Servermode" Tip above. I made a hard-reset and installed first Locusmap Pro 3.45.0, then Brouter 1.6api10. Still "T:Cannot connect....". Then hardreset. Then other way. First Brouter then Locus ->no progress. But the old way, with a "from" Point and a "to" Point in the point-folder, called "Brouter" and the App-Call of Brouter works fine. Due to this, I think in my case is no problem with the different "memory-locations". But it would be nicer to use the implemented dialog and in case of recalculation of the route....

If there are any other tips.... please

Christian

photo
1

Hello Christian, we were not yet able to find out any universal solution to this problem. Sorry to read you invested so much time without success into it.

I've already tested option to integrate BRouter directly into Locus Map and it looks promising. This should solve this problem.

Anyway, if none above steps does not work (really double check you excluded Locus Map and mainly BRouter from battery optimizations), I may only suggest online GraphHopper service for now.

photo
1

Hi Menion

Thanks a lot for your super quick answer.

I checked more than twice :-) if battery saving is turned off for this two Apps. It is.

I'm not an expert, so I'm asking me, if a solution of this "T:cannot connect to service" could be found in granting via ADB special permissions to Brouter or Locus? Did you think about this? or is that a complete wrong way?


I read as well about your project to implement offline Graphhopper. Do you have a idea (approx) when you can finish this or the Brouter implementation to the official version?


Thank you very much for your support!

Regards, Christian

photo
1

Hello Christian,

I'm also no expert :). Problem is that on the clean Android (Pixel devices or emulator) or on my Samsung S7, no such problem ever happens. Based on the experience of other users, it's usually about some kind of battery optimization on their device.

Directly integrated offline routing should solve this because than service will be directly in the app and no optimization have an effect anymore. We are in preparation of Locus Map 4 version and I hope (still believe) this feature will be included.

photo
1

Hi Menion. Can you tell more ? Or too early for advertising Locus future planning ?

B-router or GraphHopper ?

Favorable would be the routing data covers the same area as the map download.

Example by the (imo) excellent ,basic but simple, B-router selection method.

A "borderless" (large) region download, so not by a country selector.

Routing data + Vector map selection by the B-router segment selection.

When positioned nearby a segment corner, could ask for a 4 segments download.

By 4 segments a very LARGE area inclusive simple country border overlaps is covered !

hmmm...other opinion(s) ?

photo
1

Have you found a solution?

-I have the same AGM x3, with the same issue.

photo
1

Hello Julian,

sorry, but every after maybe two years, we were not able to find out how to solve this quite unique Android 8 issue. Anyway currently is in preparation version of Locus Map 4, that will have integrated BRouter directly inside (without need for external app), so this issue should be solved by this. Time plan? This year for sure (eh rather for 90%) :).

photo
1

Hi, my problem with connecting to BRouter was solved after de- and reinstalling the app (all downloads get lost but you can backup them on a laptop and then copy back). Petr

Am 27.04.2020 11:45 schrieb Locus Map <locus.map@asamm.com>:

photo
2

When I was setting up my new AGM X3 Phone I installed a 400GB micro SD-Card just for testing purpose. Test was ok an card remained in the phone; but I did never install or store anything on this card. Yesterday I needed a big SD-Card and I remembered that in the phone and removed it. On PC I made a copy of the data and I was surprised how much it was...

Coincidentally I tried in Locus the offline navigation with Brouter and it worked.

For testing I inserted the same, but PC formated SD-Card in the X3 again and as the first time the phone wanted to format the SD-Card. After formating it was in the system as a "removable" again. Locus navigation was still working. I removed the card and on PC I copied back the old data. After inserting the Card again in the X3 Locus offline navigation still working.....

I have no conclusion, but maybe this story can help somebody...

Happy, very happy that it works :-)


Christian

photo
2

Hello!

I really desperate - at the moment I am on trip and combination on my device (android 10) with Brouter dosn't work at all.

When planning a route always "T:cannot connect to service" appears!

No offline planning possible at all!


I really do not know what to do know, any suggestions (apps battery optimazions are all turned off)?

Thank you very, very much!

photo
1

Hello Beat,

sorry, I personally do not have any ultimate solution to this problem.

We are preparing Locus Map 4 version, where BRouter application will be (most probably) integrated into the application. So this problem should be automatically solved.

Menion

photo
1

Hello menion,

Thanks for your quick reply, but it is really not the best sitution when you realize on a journey abroad that now this combimation is not working anymore.

BRouter + LocusPro (for "offline-routing" is working on my devices with:

Android 6 (w Samsung S5n)

and

Android 9 (w Samsung Active Tab)


Now (with my new AtomL smartphone) with Android 10 I can't find a way to run BRouter with Locus...


Does anyone has a solution?

Would be a great help!


Thanks a lot!

photo
1

So has it stopped working or has it never worked on this new smartphone ?

photo
1

It didn't work ever.

(I didn't try it before - thought I would have no problems like on all my other devices...)

photo
1

Now I solved the problem with BRouter an LocusPro under Android 10:


- you have to download the BRouter apk from the brouter-website (not google play store) and install it


- then you MUST disable under Android 10 under settings -> smart assistant -> boot restrictions, start restrictions and so on


- download mapfiles


(You don't have to change the path in the config-file anymore!)


Now BRouter works!

Replies have been locked on this page!