Originally Posted by bdbcat
...You should be able to export the routes from OCPN, and then import
to the 400c in Mass Storage mode.
Does this work at all?
As I said before, simply placing a .gpx route file into the directory structure is not sufficient to have it recognized by the GPS
. It's much more complicated than that.
I just ran another test to see how Garmin's Homeport software
exports routes into the Oregon
400c. Since Garmin software
has been successful uploading my OpenCPN
routes, I figure it would be helpful to see how it does it.
With the Oregon connected in mass storage mode and Homeport open on my computer, I imported a route from my hard drive into Homeport that was originally created in OpenCPN. I then exported that route into the Oregon using Homeport's commands. While still connected in mass storage mode, I went to F:\Garmin\GPX\temp.gpx, was that the modification date/time had changed, and looked at the file contents with a text editor. The route was there. I then looked at F:\Garmin\GPX\Current\Current.gpx and confirmed that the route was NOT placed there. Its mod date/time corresponded to when I attached the device, NOT when I exported the route.
I quit out of Homeport, ejected the Oregon, booted it into GPS
mode, and confirmed that the route was present there.
I shut off the Oregon and plugged into the computer's USB port and selected mass storage mode. For a split second there was a message that the device was creating the current.gpx file. Upon navigating to F:\Garmin\GPX\Current I could see the modification data/time of Current.gpx corresponded to the startup time. Looking at the file contents with a text editor confirmed that the route was there.
I disconnected and rebooted in GPS mode. This time I deleted the route that I had previously exported. I then reconnected in mass storage mode. This time, the Current.gpx file did not have the route, but the temp.gpx files still did have it.
So in summary, it appears that Homeport's process for exporting new files is to insert them into the temp.gpx file, where the Oregon detects it upon bootup. The Current.gpx file is not changed until the Oregon reboots in USB mass storage mode, at which time it is updated with the new route.
Homeport will not delete routes from the Oregon - that must be done withing the device. When I do that and boot into USB mass storage mode, the new Current.gpx file does not have the route, but apparently the temp.gpx file still has it for historical purposed.
FYI, the temp.gpx file is significantly larger than Current.gpx (92 KB vs. 23 KB). Temp.gpx is nicely formatted with line breaks and indents, while Current.gpx is a "run-on sentence" with almost no line breaks or indents.