Elmo Terminal provides functionality to test Lora radio and access SX1272 chip registers delivered with Elmo board. This firmware allows the user to control the LoRa radio parameters (eg. frequency, bandwidth, spreading factor etc.) by entering console commands via serial terminal. Application also contains "Ping-Pong" and data transmission functionalities.

Dependencies:   SX1272lib mbed

Fork of Elmo-Terminal by Michal Leksinski

Revision:
2:8d8295a51f68
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Commands/TxCmd.h	Thu Oct 01 09:40:30 2015 +0200
@@ -0,0 +1,29 @@
+#ifndef _TXCMD_H_
+#define _TXCMD_H_
+
+#include "RadioCmd.h"
+#include "Settings.h"
+#include "dbg.h"
+
+#include <string>
+
+class TxCmd : public RadioCmd
+{
+    public:
+        TxCmd(Settings* radioSettings);
+        virtual ~TxCmd();
+        
+        virtual bool execute(std::list<std::string> args);
+        virtual Cmd::Status process();
+        virtual std::string getResponse(void);
+
+        static string cmd();
+        static string desc();
+
+    private:
+        std::string txBuffer;
+        uint16_t msgSize;
+        uint16_t delay;
+        Settings* settings_;
+};
+#endif