Author Topic: Bitcloud's Routing table  (Read 2639 times)

0 Members and 1 Guest are viewing this topic.

Offline DaurenDTopic starter

  • Newbie
  • Posts: 5
  • Country: kz
Bitcloud's Routing table
« on: February 15, 2016, 11:22:36 am »
I have nodes which connected in that way:
Router2 -> Router1 -> Coord
I am able to send messages over the air to each  of them using short address. But if I would connect more devices, I need to create routing table by myself? Or Bitcloud has internal one? I couldn't find information about it in documentation. Zigbee specification says that devices should have the routing table.

And also how to indicate that routing happens? For example, if R2 and Coord can't directly send messages to each other, but R1 is located between them.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11260
  • Country: us
    • Personal site
Re: Bitcloud's Routing table
« Reply #1 on: February 15, 2016, 07:37:06 pm »
Everything happens automatically, you don't need to worry about routing. If route to the destination is unknown, BitCloud will perform route discovery.
Alex
 

Offline DaurenDTopic starter

  • Newbie
  • Posts: 5
  • Country: kz
Re: Bitcloud's Routing table
« Reply #2 on: February 16, 2016, 07:08:06 am »
How to define, if router has routed frame? Is there any event?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11260
  • Country: us
    • Personal site
Re: Bitcloud's Routing table
« Reply #3 on: February 16, 2016, 07:16:58 am »
How to define, if router has routed frame? Is there any event?
There are no event foo the fact of routing, but you can detect if your frame was received directly on the receiving side. In the APS_DataInd_t structure there are members srcAddrMode, srcAddress and prevHopAddr.

prevHopAddr is always a short address. srcAddress can be a long address or a short address depending on a srcAddrMode. If it is a long address, you can do a lookup and get the corresponding short address. It is guaranteed to get a result, since translation short->long would have been performed locally.

Now compare that short address to prevHopAddr. If they are equal, then frame was received directly. If they are different, then prevHopAddr indicates the last device in the chain.
Alex
 

Offline DaurenDTopic starter

  • Newbie
  • Posts: 5
  • Country: kz
Re: Bitcloud's Routing table
« Reply #4 on: February 18, 2016, 08:29:52 am »
How interpret rssi field of APS_DataInd_t? It's value more than value from datasheet.
Maybe, AND it with 28? 28 is maximum value of Rssi from datasheet
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11260
  • Country: us
    • Personal site
Re: Bitcloud's Routing table
« Reply #5 on: February 18, 2016, 08:33:28 am »
How interpret rssi field of APS_DataInd_t?
It is a real signal level in dBm. So it is a negative value in most cases, hence the type int8_t.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf