javascript - Read data from a Garmin GPSMap 62 device -


I need to read data from a GPSMap 62 device using Device Control Javascript Library. Unlike the old device, the problem is that this device stores its GPS points in different ways. Javascript library expects that all tracks and ventenses will be included in the current.gpx file, but 62 stores them eg Waypoints_06-May-14 .gpx and so on every day.

The lack of users that need to manually upload the appropriate file, has anyone become the DeviceControl library actually supporting newer devices with different GPX files?

As an added bonus, the Garmin Device Control Library has been removed so that any updates are forthcoming

some code

  startReadFromGps:. Function (deviceNumber) {This.plugin.StartReadFromGps (deviceNumber); // invoke external plugin},  

I checked the plugin in the version (I do not know, what version you use).

Actually startReadFromGps is the method:

  / ** is read from the GPS device which is inserted. Use finirard firmgips and getGpsProgressXml * Determine when the plugin is done with this operation. In addition, use getGpsXml to remove the actual data from the device. & Lt; Br / & gt; * & Lt; Br / & gt; * Minimum plugin version 2.0.0.4 * * @ Ultimate DeviceNumber {Plan} by plugin, see {get} for GetDevicesXml for assignment of that number. * @see #finishReadFromGps * @see #cancelReadFromGps * @see #getDevicesXml * / startReadFromGps: function (deviceNumber) {this.plugin.StartReadFromGps (deviceNumber); },  

then it uses the getGpsXml . I think it uses the specified filename that is read and returns the contents of the file to the file. My first thought is to change the name of the file - it is possible:

  / ** This is the filename on which the GPS XML after the transfer is completed. Use SetWriteGpsXml to Set * SetWriteGpsXml Also, use StartWriteToGps * Really Write * * @ Private * @The ultimate filename {string} will end on the device which is the actual file name. Only * should be name and no extensions. The name of the plugin extension will be attached to the file name - usually .gpx. * @see #setWriteGpsXml, #startWriteToGps, #startWriteFitnessData * / _setWriteFilename: function (file name) {this.plugin.FileName = file name; },  

but _setWriteFilename is the personal method function (gpsXml, filename, deviceNumber)

and

  startWriteFitnessData: function (called tcdXml, though called  StartWriteToGps , deviceNumber, file name, dataTypeName)  

Checking those methods with the specified file name will permanently cross the file name value and call forth StartReadFromGps using the new filename Will do

I can not test it, I did not use this library but you can give a shot.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -