Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Can transmit but can’t receive data…

Rank

Total Posts: 1

Joined 0

PM

Hi,

I'm writing a device driver for a non-PC platform and am having an issue getting it to receive data from a HRM. I can successfully set a channel up and transmit broadcast data (viewed with ANTWare 2 on PC) but when I set the channel up to receive it just times out. These are the message I'm getting back during setup:

A4 01 6F 00 CA 03 90 - reset

A4 03 40 00 46 00 A1 - set RF (57), period 8070, network key
A4 03 40 00 42 00 A5 - and device to 120.
A4 03 40 00 45 00 A2
A4 03 40 00 51 00 B6
A4 03 40 00 43 00 A4
A4 03 40 00 4B 00 AC

A4 02 52 00 02 F6 01 - get status - 2 is searching.

A4 03 40 00 01 01 E7 - Timeout and...
A4 03 40 00 01 07 E1 - ...close.

I'm changing the TransmitType from 1 to 0 and ChannelType from PARAMETER_TX_NOT_RX to PARAMETER_RX_NOT_TX. Is there anything else I should be setting or looking for? I'm trying with a HRM and also just transmitting broadcase data from ANTWare 2.

Many thanks,
David      
RankRankRank

Total Posts: 95

Joined 2010-05-03

PM

Hi,

Have you set the network key to the ANT+ key?      
Rank

Total Posts: 1

Joined 0

PM

I found the issue, was my mistake.

When setting the channel ID, the second parameter is "deviceID". My platform returns a deviceID from when a USB device is inserted and I was wrongly using this deviceID to set the channel ID, hence it was looking for a transmitting device with that particular ID.

By using 0 (wildcard) it now finds the HRM and I can transfer data correctly.

Thanks
David