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:
1:81b2fd407327
Parent:
0:d3ab05ed8142
Child:
2:0b47f6b25cc4
--- a/IM920.h	Fri Dec 26 15:35:20 2014 +0000
+++ b/IM920.h	Fri Dec 26 15:51:37 2014 +0000
@@ -1,3 +1,20 @@
+/* Copyright (C) 2014 Suga, MIT License
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
+ * and associated documentation files (the "Software"), to deal in the Software without restriction,
+ * including without limitation the rights to use, copy, modify, merge, publish, distribute,
+ * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all copies or
+ * substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+ * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
 #ifndef _IM920_h_
 #define _IM920_h_
 
@@ -55,7 +72,7 @@
     int sleep ();
     int wakeup ();
 
-    // ----- GSwifi_cmd.cpp -----
+    // ----- IM920_cmd.cpp -----
     int sendCommand(const char * cmd, Response res = RES_NULL, int timeout = DEFAULT_WAIT_RESP_TIMEOUT);
     int sendData(const char * data, int len, int timeout = CFG_TIMEOUT);
 
@@ -82,11 +99,11 @@
         void(*func)();
     } _state;
 
-    // ----- GSwifi_util.cpp -----
+    // ----- IM920_util.cpp -----
     int x2i (char c);
     char i2x (int i);
 
-    // ----- GSwifi_msg.cpp -----
+    // ----- IM920_msg.cpp -----
     void recvData (char c);
     int parseMessage ();
     void msgOk (const char*);
@@ -96,7 +113,7 @@
     void resRDNN (const char *buf);
     void resRDRS (const char *buf);
 
-    // ----- GSwifi_cmd.cpp -----
+    // ----- IM920_cmd.cpp -----
     void clearFlags ();
     int cmdENWR ();
     int cmdDSWR ();
@@ -113,7 +130,7 @@
     int cmdDSRX ();
     int cmdENRX ();
 
-    // ----- GSwifi_hal.cpp -----
+    // ----- IM920_hal.cpp -----
     void setReset (bool flg);
     void isrUart ();
     int getUart ();