Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT-FS → Thread

   

Time command pipe?

Rank

Total Posts: 2

Joined 0

PM

I'm wondering about the details of the command pipe time message.

13.2.5 Time (0x03)

The time message is used by the host application to send the current time to the client application. It may also be requested by the host application, in which case, the time message will be sent back to the host application as a response.


I'm wondering about the second use case here. Is that done with a Request (0x01) command pipe message and response as Time (0x03) or is this supposed to work some other way?      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

You are correct, you request using the Request command and the Client should send back the Time command as a response.      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

However,

this command isn't mandatory - to my best knowledge.
And I've seen devices that don't support having their time set via ANTFS command.

Cheeers,
OMB      
Rank

Total Posts: 2

Joined 0

PM

Sorry for digging up this old post again, but I'm still a bit unclear on what to expect back here. From a Vivofit 2 I'm getting:

[20003000
 
00000010,
 
24925525525521661032] 

(base 10, each is one byte)

This is from a Time (0x03) request. The response is not documented in the ANT-FS standard as clear as it is for Create File (0x04). Can someone shed some light on this?