Monotreme7

Previous Next

Hex Hoodoo is a Wireless XBEE or XRF serial interface that receives the output in either Hex, HTML or String text with a view to monitoring and upgrading a Netduino plus software settings from a remote location to its SD card or other storage.

 This software uses open source GPL license and is a Delphi win32 executable so as to minimise the need for a .Net development environment in your target machines that may have Android OS for use with remote control of GPS systems.
For speedier execution times windows 32 bit is the fastest.  It has a motor controller panel for use with motorised LED light shows,tank turrets, motorised cameras in security settings etc.

  This software is beta test and has no warranty implied or otherwise so use at your own risk. ( click on image below for larger size ) to test using COM11 use the FTDI mapping program found here


C# interface information

using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;

using SecretLabs.NETMF.Hardware.NetduinoPlus;
using System.Threading;
using System.IO;
using System.Reflection;

namespace SerialPortLearn
{
    public class Program
    {
        static OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
        static InterruptPort interruptPort;
        static int buttonPressCount = 0;

        //Defaults to: SerialPorts.COM11 (uses D0 and D1), 9600, Parity.None, 8, StopBits.One
        static SerialPortHelper serialPortHelper = new SerialPortHelper();
       public static void Main()
        {
     
           
            while (true)
            {
                string line = serialPortHelper.ReadLine();
             
                if (line.Length > 0)
                {
                    led.Write(line.IndexOf("on") == 0);
                  
                           string response = "Hello World";
                           string header = "HTTP/1.0 200 OK\r\nContent-Type: text; charset=utf-8\r\nContent-Length: " + response.Length.ToString() + "\r\nConnection: close\r\n\r\n";
                           serialPortHelper.PrintLine(header);
                           serialPortHelper.PrintLine(response);
                  
                 
                }
              
            }
            
            // serialPortHelper.PrintLine(line);
        }

        private static void SetupButton()
        {
            interruptPort = new InterruptPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeLow);
            interruptPort.OnInterrupt += new NativeEventHandler(interruptPort_OnInterrupt);
        }

        static void interruptPort_OnInterrupt(uint data1, uint data2, DateTime time)
        {
            buttonPressCount++;
            //serialPortHelper.PrintClear();
            serialPortHelper.PrintLine("Button pressed " + buttonPressCount.ToString() + " times");
        }
    }
}

Using the serialportLearnPlus program from filestore i wanted to run the web-server from a serial connection instead of
ethernet ( saving the ethernet for alarm panel control ) Previous page
Comments