Real time data collection through Connect IQ

Former Member
Former Member
Hey everyone,

I am a new user of Connect IQ and also I own a Felix 3 HR device. For a personal project I'd like to record real time metrics in a remote service that I have created.

I had a look around the docs and I can see that my Garmin can connect to my mobile device via Bluetooth and send data using this. However, I'd like to ask the more experienced users here:

1. Is it possible to track real time data from my Garmin device?
2. Is a there a send rate limit for the Connect IQ SDK (i.e can I send data every second or does it get blocked?)
3. Has anyone done anything similar before?

Apologies if my questions is too noobish but I am new to this and the documentation is very limited.

George
  • There was another guy trying to do something similar. You can read about it in this thread. I don't know if he was successful or not.

    It seems that this is something that would be possible, but you may have to make some compromises. There is a limit to the number of outstanding web requests. I believe that the limit is three, but this is not a documented value. Given that it isn't documented, it could vary by device or by firmware version. So, you may have to drop data or maybe save it to transmit later.

    Travis
  • Former Member
    Former Member over 8 years ago
    There was another guy trying to do something similar. You can read about it in this thread. I don't know if he was successful or not.

    It seems that this is something that would be possible, but you may have to make some compromises. There is a limit to the number of outstanding web requests. I believe that the limit is three, but this is not a documented value. Given that it isn't documented, it could vary by device or by firmware version. So, you may have to drop data or maybe save it to transmit later.

    Travis


    Thanks Travis. Yes, they seem to be doing something very similar to what I want to do. That's very helpful.

    Do you have any idea where I can find what the web request limit might be? Did you know that it's 3 (per second?) out of your own experiences?

    In any case, one possible solution would be to cache the recordings and send them in batch.

    George
  • Do you have any idea where I can find what the web request limit might be?

    I found the limit by testing on several devices that were based on ConnectIQ 1.x. It isn't documented anywhere that I know of, and I don't believe there is any information about it in ${SDKROOT}/bin/devices.xml.

    Did you know that it's 3 (per second?) out of your own experiences?

    It isn't three per second, it is three outstanding requests. If you make two requests, don't get a response for a few seconds, then issue two more, the final request would fail. I believe that your response callback will be invoked with code -101 when this happens, so it is a recoverable error. You just need to take care to keep track of the data you've sent until the response has come back.

    Travis
  • Former Member
    Former Member over 8 years ago
    I found the limit by testing on several devices that were based on ConnectIQ 1.x. It isn't documented anywhere that I know of, and I don't believe there is any information about it in ${SDKROOT}/bin/devices.xml.


    It isn't three per second, it is three outstanding requests. If you make two requests, don't get a response for a few seconds, then issue two more, the final request would fail. I believe that your response callback will be invoked with code -101 when this happens, so it is a recoverable error. You just need to take care to keep track of the data you've sent until the response has come back.

    Travis


    Very useful. Thanks Travis.