Bluetooth Time Service

Posted on
  • Hi @Gordon. I saw your new GPS Time Server app. What's your usecase for that?

    I was thinking about doing something the other way around: EspruinoHub implements the Time Service, and BangleJS has an app or boot code that receives the current time, if the time hasn't been set. But, like you said, the documentation is too difficult, so I gave up.

    Do you think that's a good idea? It would save me from having to go outside to get the current time from GPS (not that the battery ever runs out since 2v07).

  • Hi,

    I didn't have anything specific in mind, other than that it was handy to be able to use the GPS to broadcast up to date time to other places.

    But yes, if you're interested in adding a time service to EspruinoHub it'd be really neat (I guess it may not be able to coexist with the HTTP proxy though).

    It's a real shame it doesn't seem to be part of the spec for it to be in an advertising packet. I wonder whether in this case it might be worth ignoring the spec and doing it anyway - it'd be so much better to just advertise it, and then any device could pick the info up without a connection

  • Thanks. I'll let you know if/when I start looking at this. I expect I'll need a bit of help.

  • I suppose this would work in a similar way to the HTTP Proxy. You could enable one or the other, but not both.
    Would advertising affect any of the other functionality? Is it still able to scan for advertised data from other devices while it is advertising it's own?

  • You could enable one or the other, but not both.

    I think that's likely, although it may well be possible to have both enabled.

    Especially if you're just going to broadcast the time over advertising (not a service) I think it's pretty easy to have both - you can just change the advertising packets a few times a second.

    Would advertising affect any of the other functionality?

    I don't think so, no. At least it hasn't for the HTTP Proxy so far

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Bluetooth Time Service

Posted by Avatar for user91203 @user91203

Actions