Sample / help for bluetooth communication

Former Member
Former Member
Hi to the community,

I'm arrived to can test communication (with SDK Comm sample) and the Android Garmin application mobile SDK (connectiq-mobile-sdk-android-adb.zip - ConnectIQ Sample.apk) in tethered mode with simulator (with help of Fnt+F1 and ./adb forward .... command line).

I can't arrive to get the same result in Bluetooth. I have try to put application on Watch (Fenix 3 - I have modify the code to manage Fenix 3 UI - Button - correctly) and launch the Android Bluetooth Garmin SDK Application. But the Android application doesn't connect to watch. The bluetooth application doesn't detect anything and I get no error on watch.

I have look at documentation (SDK and bluetooth) and can't fin any informations. This part of document is really not clear for me, does I'm alone ? I have look the forum and doesn't find any sample for the bluetooth parts.

Any help or sample will be greatly appreciate.

Best,
Alan
  • Former Member
    Former Member over 9 years ago
    Hi to the community,

    I'm arrived to can test communication (with SDK Comm sample) and the Android Garmin application mobile SDK (connectiq-mobile-sdk-android-adb.zip - ConnectIQ Sample.apk) in tethered mode with simulator (with help of Fnt+F1 and ./adb forward .... command line).

    I can't arrive to get the same result in Bluetooth. I have try to put application on Watch (Fenix 3 - I have modify the code to manage Fenix 3 UI - Button - correctly) and launch the Android Bluetooth Garmin SDK Application. But the Android application doesn't connect to watch. The bluetooth application doesn't detect anything and I get no error on watch.

    I have look at documentation (SDK and bluetooth) and can't fin any informations. This part of document is really not clear for me, does I'm alone ? I have look the forum and doesn't find any sample for the bluetooth parts.

    Any help or sample will be greatly appreciate.

    Best,
    Alan


    I have asked the same question on the same problem. I'm also waiting for a reply. Hopefully the Garmin Devs will soon help us out with this.
  • Former Member
    Former Member over 9 years ago
    I have asked the same question on the same problem. I'm also waiting for a reply. Hopefully the Garmin Devs will soon help us out with this.


    I'm hope since from now it is unusable for me :(
    Making watchface is great but making real application is great too. Thanks at advance to Garmin Devs for there quick help.

    If need any tests or beta don't hesitate to ask.
  • Former Member
    Former Member over 9 years ago
    I'm hope since from now it is unusable for me :(
    Making watchface is great but making real application is great too. Thanks at advance to Garmin Devs for there quick help.

    If need any tests or beta don't hesitate to ask.


    Hi to garmin dev.

    Any answer to this thread and idea of when new information will be available?
  • Former Member
    Former Member over 9 years ago
    Hi to garmin dev.

    Any answer to this thread and idea of when new information will be available?


    Why no reply on this thread ? Is there any problem ?
    I'm really waiting to can write a companion application with my watch application. JSon is great solution but unusable if you have no network and need exchange with data/logic on smartphone.

    Hopping I will get finally a reply ....

    Alan
  • Apologies for the late reply!

    Are you pairing the watch to the Android phone via Garmin Connect Mobile? (https://play.google.com/store/apps/details?id=com.garmin.android.apps.connectmobile&hl=en)
  • Former Member
    Former Member over 9 years ago
    YES. My watch is connect to my phone and sync correctly with the garmin connect mobile.

    Seams I 'm not alone in this case in the forum. Using with USB cable is without any problem. Same with Bluetooth is impossible to all.
  • Former Member
    Former Member over 9 years ago
    YES. My watch is connect to my phone and sync correctly with the garmin connect mobile.

    Seams I 'm not alone in this case in the forum. Using with USB cable is without any problem. Same with Bluetooth is impossible to all.


    Hi,

    Could you please update documentation process to test with Bluetooth.
    What do you need on phone (except the Garmin Connect) and the Bluetooth BLE Android sample ?
    What we have to do : I have install the same application used for the USB test on my watch and it not recognized anything.
    It is possible to used simulator and Bluetooth with Desktop or only app on watch ?

    There is a big lake of sample and documentation on this part. Please clear the process from the start to the end (what is need / version / Configuration / where and attach documentation with this).

    Thanks at advance for your help.
  • The documentation is pretty sparse about this, so I'll see if we can get more information added. Generally, here's how it works (I'm specifying Android, but the procedure is similar on iOS):

    1. Install Garmin Connect Mobile on your Android device
    2. Install the Comm sample app (Comm.apk) on your Android device
    3. Install the Comm sample widget (Comm.prg) to the Garmin device
    4. Disconnect the test device from the computer
    5. Pair the test device to the mobile device via Garmin Connect Mobile
    6. Launch the Comm app on the Android device
    7. Touch the Garmin device in the device list on the Android device
    8. Launch the Comm sample widget on the Garmin device
    9. At this point, you should be able to send strings back and forth between the two devices

    I've done this myself several times, and this is essentially the same procedure that our testers use when testing for regressions on each update of Garmin Connect Mobile or the Connect IQ Mobile SDK.
  • Former Member
    Former Member over 9 years ago
    The documentation is pretty sparse about this, so I'll see if we can get more information added. Generally, here's how it works (I'm specifying Android, but the procedure is similar on iOS):

    1. Install Garmin Connect Mobile on your Android device
    2. Install the Comm sample app (Comm.apk) on your Android device
    3. Install the Comm sample widget (Comm.prg) to the Garmin device
    4. Disconnect the test device from the computer
    5. Pair the test device to the mobile device via Garmin Connect Mobile
    6. Launch the Comm app on the Android device
    7. Touch the Garmin device in the device list on the Android device
    8. Launch the Comm sample widget on the Garmin device
    9. At this point, you should be able to send strings back and forth between the two devices

    I've done this myself several times, and this is essentially the same procedure that our testers use when testing for regressions on each update of Garmin Connect Mobile or the Connect IQ Mobile SDK.


    Sorry for the delay. Thanks for the reply. It works fine, but I have 2 points :

    1. After few time the watch display a logo "IQ" (on white screen) and I must restart the watch, any information on this ?
    2. Does it is to the developer to manage the presence of the application in memory (launching at start as as service for example) or does there is any mechanism in "Garmin Connect Mobile Application" to do this (and in this case how to register this) ?

    Best regards,
  • Sorry for the delay. Thanks for the reply. It works fine, but I have 2 points :

    1. After few time the watch display a logo "IQ" (on white screen) and I must restart the watch, any information on this ?
    2. Does it is to the developer to manage the presence of the application in memory (launching at start as as service for example) or does there is any mechanism in "Garmin Connect Mobile Application" to do this (and in this case how to register this) ?

    Best regards,


    The IQ logo, if accompanied by an exclamation mark (!), means that the app has crashed. Generally, this indicates an issue with the app itself. The sample apps aren't exactly robust since they are mean as simple examples, so it wouldn't surprise me if certain error conditions aren't properly handled. Check the /GARMIN/APPS/LOGS folder for a CIQ_LOG.txt file, which will contain information about the crash.

    I don't know if I fully understand your second question, but I think I can explain some items to help clarify what I believe you're asking. On Android, the companion app (in this case, Comm.apk) asks Garmin Connect Mobile for any available, connected CIQ wearables. All of the communication is handled through Garmin Connect Mobile. It is possible to write a companion app as a service, which would sit quietly in the background and handle JSON requests, for example. The Comm.apk must be in the foreground to operate since it is not a service.