1

i have one query actually i have 3 xbees series2.
i want xbee 1 (sensor+xbee(end device)) and xbee 2 as coordinator,where XBee2 will be attched to MCU. now i have xbee 3 which again ((sensor+xbee(end device)). now i want to make xbee3 also to communicate with coordinator(Xbee2). now i have kept the same pan ID of Xbee1 and xbee3 as like Xbee2. and again i have set xbee1 and xbee3 destination address for the Xbee 2 .

now my question are

  1. how do i program the MCU using eclipse environment for receiving both Xbee1 and Xbee3 data?
  2. and i want to communicate all Xbees with UART communication means i want to read data using pin 2 and 3 of Xbee..is it possible??

can anyone provide me the code for developing this procedure???

thanks

4

1 に答える 1

1

これは一般的なシナリオです。コーディネーターを API モードで実行し、エンド デバイスを AT モードで実行します (これらのノードをルーターとして開始し、他のすべてが機能したら、「スリープ状態のエンド デバイス」の詳細を把握します)。

DHおよびが 0 に設定されている「AT モード」デバイスは、DLシリアル データをコーディネーターに渡すだけで、MCU は API フレームを解析して、どのデバイスがデータを送信したかを判断できます。MCU は、他のデバイス (リモート AT コマンドまたはシリアル ポートから送信するデータ) への要求にも対処できます。

通常どおり MCU のコードを記述します。選択した言語が移植可能な ANSI C ライブラリです。API フレームを解析して、ネットワーク上の通信を簡素化できます。

于 2016-09-14T20:08:55.363 に答える