Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

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

   

ANT+ LGT shared channel assignment

Rank

Total Posts: 8

Joined 2017-10-11

PM

Hi, I am implementing the LGT shared channel at present.

After the initial scan I get the connect command to each of the lights, at this point I open up the shared channel on each. I am using ANT+ channel 0 for the master channel and I then open up ANT+ channel 1 for the shared channel.

My question is how do I know which channel number to use for the shared channel? In my light network I obviously know the channel number that is being used, but to work with other lights (not designed by me) how do I know what channel they have used for the shared channel?

In the document, Table 7-38. Secondary Light Connect Command Channel ID Parameters indicates the device number should contain the "Intended Main Light Broadcast channel" presumably this means the shared channel number? Can you confirm       [ Edited: 17 March 2021 03:20 PM by AllenFoster ]
Rank

Total Posts: 8

Joined 2017-10-11

PM

No answer? My question is really what channel should the ANT+ shared channel be opened on? Does the controller pass this to the other lights in Page 33?
     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

ANT+ doesn't have channel 0, 1, 2, etc. That is part of the ANT radio stack. Each channel is the same. It is the channel parameters that define what is using the channel.

For example you could open the broadcast channel on channel 4 and the shared on channel 1. The parameters are defined by the ANT+ profile as constants for some parameters, and dynamic values passed through the connect command for others.      

Signature

Ian Haigh

Rank

Total Posts: 8

Joined 2017-10-11

PM

Thanks Ian,

So considering the nRF SDK sd API...

I have already opened a channel by calling sd_ant_channel_assign() on the light to talk to the controller (cycling computer). To this is passed the channel type which will be MASTER, in this case I also pass channel number 0.

If I then open a shared master or slave channel with another call to sd_ant_channel_assign() after receiving page 33 with light idx != 0 then I obviously set the channel type to be shared master or slave as appropriate but what should the channel number be. Just another channel number other that the one I have already used? However to clarify, this channel number that does not need to be common amongst devices that are communicating over the shared channel?
     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

sd_ant_channel_assign doesn't actually open the channel. See Figure 8-2 in the ANT Message Protocol and Usage document.

Correct you choose whatever radio channel number you want of the channels not yet in use on your device. See Figure 8-3 in the ANT Message Protocol and Usage document. Two devices are communicating over a channel to each other. One uses radio channel 0 on it's radio, and the other radio channel 1 on it's radio. Different radios have different numbers of channels available. The channel number is irrelevant other than allowing the different operations such as assign, set, open to apply to the channel. Simple systems typically always allocate a fixed radio channel number to a specific profile purpose. Complex systems allocate channels dynamically as profiles are enabled and disabled. The light channel will see each of the possible numbers at some point in the products life.

For bike lights the ANT+ profile specifies the network (ant+ key and RF frequency), channel type, and device type as constants. For the broadcast channel the device number and upper nibble of the transmission type byte are determined by you (typically from device serial number), and the lower nibble of the transmission type byte is a constant defined by the profile. The device number and transmission type (whole byte) are communicated in the connect command for the shared channel.      

Signature

Ian Haigh

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

note: you need to configure the ANT+ network on the radio network number you use when assigning the channel.      

Signature

Ian Haigh

Rank

Total Posts: 8

Joined 2017-10-11

PM

Thanks Ian, that explanation makes sense and was very helpful.

I am sure I will be back with more questions!      
Rank

Total Posts: 14

Joined 2020-07-21

PM

haighi - 22 March 2021 01:12 PM
note: you need to configure the ANT+ network on the radio network number you use when assigning the channel.


HI haighi
can reply my thread?
thanks
https://www.thisisant.com/forum/viewthread/7499/