Showing posts with label Internet-of-Things. Show all posts
Showing posts with label Internet-of-Things. Show all posts

Saturday, April 4, 2015

MQTT - Bridge Work-a-Round

 UPDATE:
I was using a very OLD version of "mosquitto" which did not support Bridges well, I am hoping the current version will work better.

-

To experiment with the Internet-of-Things (IoT), while waiting to receive my Esp8266's (see previous post), I have enlisted my Raspberry PI's into playing the part of a remote data collection device. My Desktop Workstation is the Control Point and the Master MQTT Message Broker.

Originally I had planned to use a Master/Slave Bridged Broker configuration, where the Workstation would be the Master, and the Raspberry PI's would be a Bridged Slave Brokers, and they would collect data and messages from the Esp8266's.

But, I have not been able to get the "mosquitto" Bridged Broker configuration to work as documented :-(

I have a work-a-round; I will temporary use an "ssh tunnel" to directly collect messages from the Raspberry PI's.

At each Raspberry PI's, an "ssh tunnel" is created for "port 1883" (the MQTT port), and therefore the Master Broker is directly available to the Raspberry PI's. A side benefit of is; the "tunnel" is compressed and encrypted.

On Raspberry PI:


$ ssh -CnNTf -L 1883:localhost:1883 <master workstation IPA>




With this setup, I can conduct; tests for camera servo control, send SMS messages to the Cell Phone, and other experiments (see previous posts).



-- Home Page: https://WA0UWH.blogspot.com

Tuesday, March 31, 2015

Esp8266 - The Intenet-of-Things

My friend Larry - KB7KMO put me onto a new interesting and inexpensive device, - the Esp8266. The breakout board is available on ebay and others for only a few bucks ( <$5.00, the prices seem to vary all over the map).

Esp8266-ESP11
Currently there are several Rev's available (e.g., -ESP03, -ESP04, through -ESP12). I have Esp8266-ESP11 and Exp8266-ESP12 on order. I will know more about what the Rev's really mean later. Found: see Link.

Apparently the device is relatively NEW, forums are starting to fill with; information, example code, and projects.

Esp8266 is WIFI Device with a Digital Interface

The Esp8266 can be used to add WIFI to any processor with just a few lines of code. Many of the standard processors (i.e. Arduino) have support libraries already available.

Or Better YET !

The Esp8266 is a processor in it own right. There is a specially constructed GitHup repository with the new (1.6.1) Arduino IDE configuration the can be used to download and run code directly on the Esp8266 board. (see the GitHub Readme file)

The number of I/O's is a little lacking on the Esp8266, but for Networked Device for checking; a simple temperature, a water level, or alarming circuit, which reports status via Text Message, this is a great little part. As a stand-alone device, the one or two digital pins may be enough for some projects, just plan for multiple devices.

The Exp8266 can be configured as a simple Web Server, Web Client, Access Point, send Text Messages, and much-much more.

I think this is going to be a fascinating part for our Ham Radio and Hobby projects, this will make them all a part of the Internet-of-Things.

More info to follow, on how I will be using this part, I am very excited.



-- Home Page: https://WA0UWH.blogspot.com