Jump to content
Brian Enos's Forums... Maku mozo!

llevola

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by llevola

  1. On 10/30/2017 at 3:49 PM, M852 said:

     

    That's a tough one. Just guessing here, but it sounds like either the Bluetooth connection is dropping or the app is crapping out because it gets an unexpected response from the chronograph.  It's possible something like a Bluetooth power saving function is a contributing factor.

     

    On 10/30/2017 at 4:56 PM, Bobdirt said:

     

    M852 might be onto something with the sleep mode of the HM-10.  It's low-power sleep mode appears to be somewhat different from the HC-06.  Best way is to try turning it off:

     

    HM-10 sleep auto sleep mode disable:  AT+PWRM1

     

    Either way I would suspect some difference between the two bluetooth modules.  You can find datasheet for each of the modules here:

     

    HM-10 :  http://wiki.sunfounder.cc/images/f/f8/Bluetooth_4.0_BLE_module_datasheet.pdf

    HC-06:  https://cdn.instructables.com/ORIG/FQ1/CUVZ/HXA9PUVQ/FQ1CUVZHXA9PUVQ.pdf

     

    Something else I noticed is that the HM-10 seems to be a Bluetooth Low Energy device which I don't find any mention of in the HC-06 docs.

     

    The default for power mode in HM-10 is already not to auto-sleep, so that should not be a factor.

     

    I noticed that the Android app does not really make the bluetooth connection, but the iOS app does. This is despite both initially finding it and then reading "chronograph disconnected". The connection was evident from the HM-10 status led and it notifying OK+CONN through UART once I configured it to do so.

    I was able to send commands to chrono from terminal program on PC via wired UART and from Android serial terminal app via Bluetooth. But I noticed now that I don't get responses from chrono, so that might be something. Something with the wirings... 

     

    HM-10 is Bluetooth LE aka Bluetooth Smart (introduced with BT 4.0) that is a requirement for function with iOS as it lacks the Serial Port Profile. I believe the connection profile in LE is Generic Access Profile. I must say I am not a professional with the BT stack, so if somebody knows more, please fill me in. I am wondering if the app expects that some attributes, UUIDs or what-not's are defined for the peripheral.

     

    So, bobdirt, the app and chrono are fully functional for you with HM-06 and Android app, is that correct?

     

×
×
  • Create New...