Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

device number

Rank

Total Posts: 7

Joined 0

PM

Hello,

Is it possible to change the device number between two nodes ?
For example, in a first time the master send to slave data which contain the next device number, then the slave save the number and close / unasigned /reset to create new communication with the new device number.

So my question is how to pass from communication 1 to communication 2 with new device number ?

In my case, here is my code:

while (1)
{
readData()
if(data = ...) then
close channel
unasigned channel
reset
init (with new device number)
while(1)
{
writeData(...)
}
}

Thanks      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Yes, it is possible to change channel parameters (including the device number) on the fly, so you could build into your application the logic to achieve what you describe.