Page 1 of 10

Java program to fix the routing behaviour of the XT(2).

Posted: Tue May 23, 2023 6:55 am
by FrankB
Update June 24, 2024:
It has been confirmed that this program also works for the XT2. See: viewtopic.php?t=2904
Therefore I have changed XT into XT(2). Meaning it works for both XT and XT2. You may find that some items are called different. For example Trip Planner is called Route Planner on the XT2.

WARNINGS

- Use at your own risk.
- This procedure involves enabling access to the .System folder of the XT(2), copying files from the XT(2) to your computer and back to the XT(2). If you don’t feel confident doing this, stop right now.
The .System folder is vital for correct operation of the XT(2).
- Only use this procedure for the Garmin Zumo XT(2).

Description

This procedure can be used to correct the routing behaviour of the XT(2), as described in posts of this forum called ‘Weird routing behaviour’
viewtopic.php?t=2030
viewtopic.php?t=2291

Multiple tests carried out reveal that a ‘Saved trip’ will recalculate the route/trip to the next Via/Shaping point when you deviate from the route. For an ‘Imported trip’ it will try to get you back by requesting U-Turns. This procedure modifies a bit in the .trip files that defines whether it’s an Imported or a Saved trip. Thus changing an ‘Imported trip’ to a ‘Saved trip’ and consequently changing the routing behaviour.

Instruction
Download and extract the attached Zip file that contains the program, instructions on setting up, and using.

Many thanks go out to all who helped.

Good Luck

Edit: For all who want more info on the internals:
hexedit.jpg
hexedit.jpg (103.77 KiB) Viewed 10069 times
See also: viewtopic.php?t=2291

Edit May 25: Added screenshots Mac

Edit May 30:
On ukgser this was posted: https://www.ukgser.com/community/thread ... st-5242062
It explains how you can change the trip from Imported to Saved on the XT. The general idea is to first start your imported trip, then go back to the trip-planner and save 'My Active Route'.
Very nice catch and credits to the original poster.

Edit June 1st:
As of now, yet another tool is available to fix the trips on the XT(2). It is an online tool and you can find it here:
https://www.javawa.nl/triprepair.html
The advantage of this tool that it works on virtually any platform and requires no installation.

There are also Dutch https://www.javawa.nl/tripreparatie.html and German https://www.javawa.nl/tripreparatur.html versions available.
Thanks to Jaco for creating and hosting this tool.

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 9:27 am
by Rofor
Many thanks to you and @jfheath for finding this and also for this fix to avoid that problem while using our Zumo XT!

I've posted a rough german explanation of this problem and the findings here in the german Naviboard in the Zumo XT threat here: https://www.naviboard.de/thread/67492-l ... post549037, with links to this and the other threat...

Hopefully it's ok for you?

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 9:42 am
by FrankB
Rofor wrote: Tue May 23, 2023 9:27 am Many thanks to you and @jfheath for finding this and also for this fix to avoid that problem while using our Zumo XT!

I've posted a rough german explanation of this problem and the findings here in the german Naviboard in the Zumo XT threat here: https://www.naviboard.de/thread/67492-l ... post549037, with links to this and the other threat...

Hopefully it's ok for you?
Very good idea. Vielen dank.
Please note that it needs testing, especially for Mac users. If you have info a) if it runs on a Mac, and b) instructions on how to do that. I will be happy to include them in the Doc.

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 10:13 am
by Rofor
Sadly can't help with this as i own a Windows PC, but i will add a note for this in my posting. As far as i know there are many Mac-Users in the Naviboard...

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 11:10 am
by danham
No joy with running the Java app on my 2017 iMac with Ventura 13.4 OS and Java 8. But the alternate method of using an online hex editor works just fine and is not dramatically slower given the need to connect the XT and transfer trip files to the computer anyway.
Screenshot 2023-05-23 at 6.42.27 AM.png
Screenshot 2023-05-23 at 6.42.27 AM.png (48.01 KiB) Viewed 10003 times

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 11:52 am
by FrankB
I have no answer. Yet. Maybe someone with Mac experience can help?

I doubt it has to do with pathnames. I just tried it on a Linux system, that worked.
One thing I noticed, the program needs a graphical window. That has to do with the folder selection dialog.

Next Thursday I will have access to a Mac and try it.

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 12:30 pm
by danham
In case this helps another Mac user to diagnose, the program does start OK and does display a file selection graphic window (attached), but crashes as soon as selection is attempted:
Screenshot 2023-05-23 at 8.19.30 AM.png
Screenshot 2023-05-23 at 8.19.30 AM.png (304.61 KiB) Viewed 9944 times

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 12:56 pm
by Grabcon
FrankB & JFHeath, great work. As a former software product manager for a global enterprise software for the utility industry there were times that customers would send our support desk code that they developed for a fix that we may have or may not have known was an issue. Our support and development teams would evaluate and make recommendations as to whether the fixed is worthy of incorporating into our software. Obviously they always required changes to meet the code requirement standards and regression testing, but many times the fixes, patches, etc would be incorporated into the product.

I would like to suggest that you contact Garmin support and see if they can review, revise, etc, and issue a patch or update so all can take advantage of your efforts.

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 12:57 pm
by Rofor
@FrankB - don't know if you've seen it by yourself already, but this problem IS NOT exclusively to the Zumo XT!

Had a answer to my posting in the Naviboard a few minutes ago from a user of a DriveSmart65 navi with exactly the same RUT problem - he verified that the directory structure of the DriveSmart65 is nearly the same as on the Zumo XT, there's also a 'Trips' folder with the imported/saved routes on it, the pre-planned routes are in the same trip-format and also all flags are present. He changed successfully the flag but couldn't test it now...

Re: Java program to fix the routing behaviour of the XT.

Posted: Tue May 23, 2023 1:35 pm
by FrankB
That's interesting. If it turns out that it works for the DriveSmart65 also, I will update the docs.