         showHelp();
         break;
       case 'i': // set node id
-        config.nodeId = (config.nodeId & 0xE0) + (value & 0x1F);
-        saveConfig();
+        if (value > 0 & value < 32) {
+           config.nodeId = (config.nodeId & 0xE0) + (value & 0x1F);
+           saveConfig();
+        } else {
+           showHelp();
+        }
         break;
       case 'b': // set band: 4 = 433, 8 = 868, 9 = 915
-        if (value)
-          config.nodeId = (bandToFreq(value) << 6) + (config.nodeId & 0x3F);
-        saveConfig();
+         value = value == 4 ? RF12_433MHZ : 
+                 value == 8 ? RF12_868MHZ :
+                 value == 9 ? RF12_915MHZ : 0;
+        if (value) {
+         config.nodeId = (value << 6) + (config.nodeId & 0x3F);
+         config.frequency = 1600;
+         saveConfig();
+        } else {
+            showHelp();
+        }
+        break;
+      case 'o': // set frequency
+        Serial.print(config.frequency);
+        config.frequency = value*(20*25*band);
+        Serial.print("->");
+        Serial.print(config.frequency);
+        rf12_control(config.frequency); 
+        }
+        Serial.println();
         break;
       case 'g': // set network group
         config.group = value;

  "Available commands:" "\n"
  "  <nn> i     - set node ID (standard node ids are 1..30)" "\n"
  "  <n> b      - set MHz band (4 = 433, 8 = 868, 9 = 915)" "\n"
  "  <nnn> g    - set network group (RFM12 only allows 212, 0 = any)" "\n"
  "  <n> c      - set collect mode (advanced, normally 0)" "\n"
  "  t          - broadcast max-size test packet, request ack" "\n"

// 2009-05-06 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php

// this version adds flash memory support, 2009-11-19
// Adding frequency features. 2013-09-05 JohnOH
#include <JeeLib.h>
#include <util/crc16.h>
#include <util/parity.h>
