Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Can’t linke to 2 sensor (HRM + SCM) anymore

RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

Dear Sir,

We have a big problem about the device sometime can't link to 2 sensor any more.

We reset the device and the device link to 2 sensor before, means the device get the 2 sensor id, and link to 2 sensor by id.

Reset the device sometime it is workable. We don't let 2 sensor search at the same time, it is separate the time to do AP1 command.

Our search timeout = 12 (means 30 seconds), message rate is 4 (means 4 package / 1 seconds).

We find out when can't link to 2 sensor, program send to AP1 command have some ACK fail, it means that we can't get the AP1 feed back (can't receive the response package), but the next time command is ok, the device still can't link to 2 sensor.

The log look like normally, list in below.
Can you give us some idea ?

------------------------------------------------
Info:> InitOK
Send:>[a4][1][4a][0][ef]
Info:> ResetSystem OK
Info:> Set Callback OK
Send:>[a4][9][46][0][XX][XX][XX][XX][XX][XX][XX][XX][64]
Rcv:>(23:28:59)[a4][3][40][0][46][0][a1]
Info:> SetNetworkKey OK
Send:>[a4][3][42][0][0][0][e5]
Rcv:>(23:28:59)[a4][3][40][0][42][0][a5]
Info:> AssignChannel OK
Send:>[a4][5][51][0][be][43][78][1][74]
Rcv:>(23:28:59)[a4][3][40][0][51][0][b6]
Info:> SetChannelId OK
Send:>[a4][3][43][0][86][1f][7d]
Rcv:>(23:29:00)[a4][3][40][0][43][0][a4]
Info:> SetChannelPeriod OK
Send:>[a4][2][45][0][39][da]
Rcv:>(23:29:00)[a4][3][40][0][45][0][a2]
Info:> SetChannelRFFreq OK
Send:>[a4][2][44][0][6][e4]
Rcv:>(23:29:00)[a4][3][40][0][44][0][a3]
Info:> _ANT_SetChannelSearchTimeout OK
Send:>[a4][1][4b][0][ee]
Rcv:>(23:29:00)[a4][3][40][0][4b][0][ac]
Info:> T OpenChannel OK
Rcv:>(23:29:15)[a4][3][40][0][1][1][e7]
Search Time Out (23:29:15)
Send:>[a4][1][4c][0][e9]
Rcv:>(23:29:15)[a4][3][40][0][4c][15][be]
Info:> Set Callback OK
Send:>[a4][9][46][0][b9][a5][21][fb][bd][72][c3][45][64]
(23:29:15)
Info:> CloseChannel done.
Err:> Wait for ACK timeout!
Info:> SetNetworkKey Fail
Send:>[a4][9][46][0][XX][XX][XX][XX][XX][XX][XX][XX][XX]
Rcv:>(23:29:18)[a4][3][40][0][46][0][a1]
Info:> SetNetworkKey OK
Send:>[a4][3][42][1][0][0][e4]
Rcv:>(23:29:19)[a4][3][40][1][42][0][a4]
Info:> AssignChannel OK
Send:>[a4][5][51][1][7d][5c][79][1][a8]
Rcv:>(23:29:19)[a4][3][40][1][51][0][b7]
Info:> SetChannelId OK
Send:>[a4][3][43][1][96][1f][6c]
Rcv:>(23:29:19)[a4][3][40][1][43][0][a5]
Info:> SetChannelPeriod OK
Send:>[a4][2][45][1][39][db]
Rcv:>(23:29:19)[a4][3][40][1][45][0][a3]
Info:> SetChannelRFFreq OK
Send:>[a4][2][44][1][6][e5]
Rcv:>(23:29:19)[a4][3][40][1][44][0][a2]
Info:> _ANT_SetChannelSearchTimeout OK
Send:>[a4][1][4b][1][ef]
Rcv:>(23:29:19)[a4][3][40][1][4b][0][ad]
Info:> T OpenChannel OK
Rcv:>(23:29:34)[a4][3][40][1][1][1][e6]
Search Time Out (23:29:34)
Send:>[a4][1][4c][1][e8]
Rcv:>(23:29:34)[a4][3][40][1][4c][15][bf]
Send:>[a4][1][4b][0][ee]
(23:29:34)
Info:> CloseChannel done.
Err:> Wait for ACK timeout!
Info:> OpenChannel Fail
Rcv:>(23:29:49)[a4][3][40][0][1][1][e7]
Search Time Out (23:29:49)
Send:>[a4][1][4b][1][ef]
Rcv:>(23:29:49)[a4][3][40][1][4b][0][ad]
Info:> T OpenChannel OK
Rcv:>(23:30:04)[a4][3][40][1][1][1][e6]
Search Time Out (23:30:04)
Send:>[a4][1][4c][1][e8]
Rcv:>(23:30:04)[a4][3][40][1][4c][15][bf]
(23:30:04)
Info:> CloseChannel done.
----------------------------------------------      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

Looks like you are configuring your channels correctly, which is supported by the fact that you have gotten your two devices to link. I would suggest checking your RF environment and making sure your transmitters are actually transmitting while your receiving device is searching.
Just a couple other comments:
1. You are actually setting your search timeout to 6 (i.e.15 seconds), you might want to change this.
2. You donâ??t have to wait for the first channel to acquire or timeout before opening the second channel. You can open them both concurrently and this will ultimately result in a faster overall acquisition time, as the radio can search for both devices in parallel. Please refer to the AN11 ANT Channel Search and Background Scanning Channel application note (I believe Alejandra posted the link previously) for more details on the ANT search mechanism.
3. Once a channel search times out â?? ANT will automatically close the channel. You do not need to send a close channel command after a search_timeout message. That is why you see the error after sending that command.