Please is it possible to retrieve data from Trimble Catalyst in a form of GPGGA sentence (Global Positioning System Fix Data)?
E.g. GPS - NMEA sentence information -> GPGGA
Is there a way to detect that Trimble sensor has been connected through a USB ? For example app TerraFlex does something similar - after connection Catalyst antenna can be used immediately. In JCatalystFacadeDemo, connection is managed only with Connect/Disconnect button (no option to connect automatically / detect antenna). It could be great to include this "auto-connection" implementation in SDK demo.
Thanks & Regards,
the first question isn't easily answered:
there is no direct NMEA from Catalyst or TMM as the default way on Android are mock locations.
So Androids mock locations and location extras provide similar information and more compared to NMEA (details like currently used geodetic frame are not available in NMEA afaik).
On the other side the SDK does provide NMEA output - and you could enable NMEA output (GGA, GST, the default stuff) and retrieve the corresponding events - parse the event (string) and funnel it to your own NMEA driver.
But the amount of work is in no relation to the benefit.
Plus not even sure if it makes sense at all.
So the most simplest way would most likely be Androids location API plus location extras. Details on the content can be found in both SDK-Developer and TMM-Developer documentation.
On the second topic - this is a system USB event - and can be captured by any software.
I'll check on the explicit implementation in TerraFlex - I assume are referring to the 'you just plugged in a Catalyst antenna - do you wanna switch?' message, right (loosely translated).
" I assume are referring to the 'you just plugged in a Catalyst antenna - do you wanna switch?' " -> Yes exactly this functionality. Basically I want to be able to intercept this event of antenna being connected over USB so I can show the popup.Thanks & RegardsPeter Kucera