Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Device Pairing - Simple Problem??

Rank

Total Posts: 19

Joined 2013-11-21

PM

I'm setting up an embedded Atmel Micro Async System with a ANTC782M5IB module from Dynastream.

I'm trying to pair to a Garmin ANT+ HRM.

This works perfectly:
Async_rx_only_mode: (each is followed by xor CKSum)

A4 , XX , 46 , 00 , FF , .... , FF //ANT+
A4 , 03 , 42 , 00 , 00 , 00
A4 , 05 , 51 , 00 , 00 , 00 , 78 , 01
A4 , 02 , 45 , 00 , 39
A4 , 02 , 66 , 00 , 80
A4 , 01 , 5B , 00 //Open Rx Scan Mode - OK


However, this fails when opening the Slave (Receiver) channel:

Host Microcontroller sends:
Hard wire RESET
Master
A4 XX 46 00 FF …
FF
A4 03 42 00 10 00 F5
A4 05 51 00 00 00 78 01 89
A4 03 43 00 18 7E 82
A4 02 45 00 39 DA
A4 01 4B 00 EE

Slave
A4 XX 46 00 FF …
FF
A4 03 42 00 00 00 E5
A4 05 51 00 00 00 78 00 88
A4 03 43 00 18 7E 82
A4 02 45 00 39 DA
A4 02 47 00 03 E2
A4 02 44 00 14 F6
A4 01 4B 00 EE

ANT Module Replies

A4 01 6F 01 CB
Master
A4 03 40 00 46 00 A1 ok
A4 03 40 00 42 00 A5 ok
A4 03 40 00 51 00 B6 ok
A4 03 40 00 43 00 A4 ok
A4 03 40 00 45 00 A2 ok
A4 03 40 00 4B 00 AC ok

Slave
A4 03 40 00 46 00 A1 ok
A4 03 40 00 42 15 B0 Error 
$15=21
A4 03 40 00 51 00 B6 ok
A4 03 40 00 43 00 A4 ok
A4 03 40 00 45 00 A2 ok
A4 03 40 00 47 00 A0 ok
A4 03 40 00 44 00 A3 ok
A4 03 40 00 4B 15 B9 Error 
$15=21 


Assign and Open Channel result in CHANNEL_IN_WRONG_STATE

I don't understand?? Do I need to remove the battery from the HRM to reset???      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

From the messaging log above, it looks like you are attempting to configure channel 0 as both master and slave in the same device. You do not need to do that to connect to the heart rate strap; all you need to do is configure the channel as a slave.      
Rank

Total Posts: 19

Joined 2013-11-21

PM

Thank-you Alejandra for taking the time to help.

I obviously did not understand the "Device Pairing" and HRM "Device Profile" documents. So I conclude from your response that when I'm "listening" to or reading data from multiple functioning ANT+ Master devices, I simply set up my display device as a Slave without any need to alter the Master device configurations.

     
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Correct.

Have you had a look at the ANT Basics section on the website?
http://www.thisisant.com/developer/ant/ant-basics/#104_tab

This will guide you through some resources that are essential to understanding the basics of how ANT channels work.