Interplan IM920 library, 920MHz module

Dependents:   IM920_sample IM920_SDlog IM920_sample IM920_sample3 ... more

IM920 ライブラリ

データモード、低速、長距離 の設定で通信するライブラリです。

920MHz無線モジュール

http://www.interplan.co.jp/images/contents/solution/im920.png IM920 (インタープラン製)

  • mbedとモジュールとは、シリアル(TX,RX)、BUSY、RESET端子を接続します。
  • モジュールはあらかじめ、コマンドでノード番号などを設定しておきます。

NECの920MHz近距離無線モジュールもおすすめ

Revision:
3:db269462ad1c
Parent:
2:0b47f6b25cc4
Child:
4:ba939555ed35
--- a/IM920.h	Mon Jan 05 03:47:08 2015 +0000
+++ b/IM920.h	Thu Jan 08 13:25:46 2015 +0000
@@ -59,9 +59,11 @@
         STAT_SLEEP,
     };
 
-    IM920 (PinName tx, PinName rx, PinName busy = NC, PinName reset = NC, int baud = IM920_BAUD);
+    IM920 (PinName tx, PinName rx, PinName busy, PinName reset, int baud = IM920_BAUD);
 
-    int init (int node);
+    int init ();
+    int setNode (int node);
+    int getNode ();
 
     void attach (void(*fptr)() = NULL) {
         _func.attach(fptr);
@@ -90,7 +92,7 @@
 private:
     RawSerial _im;
     DigitalIn *_busy;
-    DigitalOut *_reset;
+    DigitalInOut *_reset;
     int _baud;
     FunctionPointer _func;
 
@@ -152,3 +154,4 @@
  };
 
 #endif
+