Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Bike Power → Thread

   

establishing ant communication

Rank

Total Posts: 5

Joined 2013-04-10

PM

Hi there and first of all, thank you for your time,
i'm working on creating a little power meter and would like to display the data on my EDGE500.

i'm a little bit confused about how you manage to set the communication settings.
For instance i bought this particular transceiver https://www.sparkfun.com/products/152

I read many times the different pdf on the ant developper page, i know for instance that the first message should look like:
channel type 0x10
network key -> garmin network key
rf channel = 57
transmission type= 0x0 or 0x5
device numb= 1 < x <65535
channel Period = 8182

then "power only" messages:
0x10 power only type
update event count
0xFF (not used pedal contribution)
2bytes of accumulated power
2bytes of instantaneous power

are all of these set by antWare or other software, or do we have to write some protocol on the mcu?
could you give me a few example of messages SENT ( for TX ) by an mcu? i only got received messages on the internet.
At now, all that i tried didn't work ( sending different messages to the edge etc.. )


thanks for your help and time      
Avatar
RankRankRankRank

Total Posts: 235

Joined 2012-08-31

PM

Hi William,

I moved this thread to an ANT+ Forum as it contains details of the ANT+ bike power device profile.

A couple of corrections on the set up:
- the network key should be the ANT+ network key (http://www.thisisant.com/developer/ant-plus/ant-plus-basics/)
- the transmission type should be 0x5 NOT 0x0.

You can find all this information in the device profile on the downloads page.

It is probably easiest for you to use SimulANT+ and use the Bike Power display option to recieve data from your power meter.

You have to send the messages as described in the device profile from the power meter, and yes you will to program these. If you are new to embedded design then take a look at this page for some tips:
http://www.thisisant.com/developer/ant/starting-your-project/#74_tab

Hope that helps!

Kat      
Rank

Total Posts: 5

Joined 2013-04-10

PM

Hello Kat and thank you for your help.
I'll receive my Usb sticks in about 5days, i think using this software on one side and my transceiver on the other, might be the best way for me to get something to work.

hummm.. i am an adopter but I've never seen anywhere something mentionning the fact of getting a network key ??


I read everything many times throughout the month; still a few things not clear for me,
Could you tell me if what i figure as the first message then the following ones, are perfectly right ?


What i didn't get right is if there were some particular value for pairing, for establishing the channel etc..
Do that mean ( since we're talking about power meter for instance ) that EVERY single message sent by my transceiver ( as i want it to be recognised as power meter only ) has to start with 0x10?


to be perfectly clear, this is what i understood as being my first pairing message:
byte0 0x10 -> i am a power meter sensor
byte1 network key ( so i've got the wrong thing )
byte2 57 -> standard RF
byte3 0x05 -> transmission type ( thx for your help, wasn't sure)
byte4 0x0B
byte5 device number -> whatever
byte6 8182
checksum needed here? not clear for me

and then every following message is like
0x10 ( still power meter only )
update event count ...
instantaneous and cumulated power


thank you for your time,
don't know how i would do without the internet...      
Avatar
RankRankRankRank

Total Posts: 235

Joined 2012-08-31

PM

Hi William,

The ANT+ network key is listed online and will be visible to you as an adopter. You can click through to it from the ANT+ Basics page (the link I gave you above), or you can go directly to the network keys page using this link: http://www.thisisant.com/developer/ant-plus/ant-plus-basics/network-keys

Thanks for explaining your planned messages. It isn't quite right as you've described it yet:

1. You shouldn't send a 'pairing message' as a broadcast data message. You just configure your channel to match the configuration described in the ANT+ bike power device profile, using serial messages described in the ANT Message Protocol and Usage doc. E.g. set channel period to 8182. There's an example of how to do this in section 5.3.
NOTE: The device type indicates a bike power meter, and is not 0x10 - I think you are confusing this with the page number.

2. Then you open the channel on your power meter (which will be the master) and broadcast data messages.
These data messages are called 'pages' and should be sent as described in the ANT+ bike power device profile. (e.g. the power only page with data page number 0x10, and the required common pages with data page numbers 0x50 and 0x51).

Maybe try reading the ANT Message doc and profile again bearing in mind the explanation above? You can also take at the ANT Basics video (here: http://www.thisisant.com/developer/), if you're more of a visual learner, although you'll still need the document for the message details.

Thanks,

Kat


     
Rank

Total Posts: 5

Joined 2013-04-10

PM

Hey Kat,
your answer was perfect, thank you very much!

i'll maybe post here if i still experience trouble in the next few weeks      
Avatar
RankRankRankRank

Total Posts: 235

Joined 2012-08-31

PM

OK, Good luck!