Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Invalid Network Key

Rank

Total Posts: 1

Joined 2016-06-17

PM

I am integrating the Bike Speed+Cadence profile into an existing project that uses the TI CC2564 over HCI on the MSP 430. The goal is to display data on a Garmin Edge. The response to setting the network key is 0x28, which is invalid message. Please review the communication sequence below:

TX: 32
RX: 33
TX: 01 D1 FD 05 03 00 01 4A 00
RX: 04 0E 04 01 D1 FD 00 04 FF 07 00 05 03 00 01 6F
RX: 20
TX: 01 D1 FD 0D 0B 00 09 46 00 XX XX XX XX XX XX XX
TX: XX
TX: 31
RX: 32
TX: 33
RX: 04 0E 04 01 D1 FD 00 04 FF 09 00 05 05 00 03 40
RX: 00 46 28 30
TX: 31

* above, offset 4 into the 5 byte response payload is 0x28
* I have double checked the network key as it is defined as an 8 byte const array in base/antplus.h (ANTPLUS_NETWORK_KEY)

It is possible I missing other initialization post patch. I only enable the feature with 0xFDD0 2 { 0x01, 0x00 } and disable LE (0xFF26), but LE is disabled by default. I did not reset the cortex after patch (0xFD09), or enable sleep (0xFDA8), or set the fast clk (0xFD1C).

Thank you,

-Tomas
     
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi Tomas,

Chipsets which support WiFi/BT and ANT like TI's CC2564 use 128-bit network keys instead of 64-bit keys. But you actually don't need to load the ANT+ Network Key, it is preloaded on that particular chipset. If you use Network Key #1 (instead of 0) when you open your channel, it will use the ANT+ Key instead of the ANT Public Key.

Cheers