element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Safe and Sound
  • Challenges & Projects
  • Design Challenges
  • Safe and Sound
  • More
  • Cancel
Safe and Sound
Blog Safe and Sound - Hazardous Factors MQTT Broker - blog 9
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dougw
  • Date Created: 21 Mar 2017 11:51 PM Date Created
  • Views 1188 views
  • Likes 5 likes
  • Comments 5 comments
  • safe and sound
  • safe and sound design challenge
  • hazardous_environmental_factors
  • invisible_hazards
  • safe & sound
  • wearable technology
  • Wearables
  • safe&sound
  • doug_wong
Related
Recommended

Safe and Sound - Hazardous Factors MQTT Broker - blog 9

dougw
dougw
21 Mar 2017

I have been in the throws of struggling with software and numerous other priority interrupts. Still ordering more parts and some have come in, but they will have to wait for another blog. I just have to get something posted even though it is not as complete as I had hoped. This installment describes a bit about trying to get an MQTT broker set up to handle sensor data from my wearable sensor suite.

First, I wanted to install my own MQTT data broker so I can keep the data local for now. After choosing Mosquitto as the broker, it took numerous attempts to install properly since not all the necessary files are included in the install file. The ancillary files have to be the correct version and there are many versions to choose from. My computer already had up to 7 versions of some of these files, so finding a working combination was a huge trial and error exercise. The error messages were generally meaningless (to me) and it was not even obvious which of the files were incompatible.

So, after scouring the net for every tutorial on the subject and digging through all the forums discussing similar issues, I finally gleaned enough information to get a workable install. None of the files I'm using are the latest version. If I knew what I as doing at the beginning, it probably would have taken 5 minutes instead of 10 hours. My biggest problem with most of these projects is understanding other people's software. Sometimes it is only tenacious persistence that gets you through.

To the best of my recollection this is where to get the files I used for installation on Windows 10 (64 bit):

  1. download and install mosquitto-1.4.9-install-win32.exe from this site https://www.eclipse.org/mosquitto/download/
  2. download and install Win32 OpenSSL v1.0.2k Light from this site Shining Light Productions - Win32 OpenSSL
  3. copy pthreadVC2.dll from this site ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/ to your mosquitto directory
  4. copy libeay32.dll from your OpenSSL-Win32 directory to your mosquitto directory
  5. copy libssl32.dll from your OpenSSL-Win32 directory to your mosquitto directory
  6. copy ssleay32.dll from your OpenSSL-Win32 directory to your mosquitto directory

I still don't know enough about MQTT (Message Queue Telemetry Transport) to teach anybody about it, but the broker program will accept data on a specified topic from a remote publishing device and allow remote subscriber devices to access the data from any specified topic.

Here is a little demo of the system working with simulated sensors...

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

I will publish the Launchpad code if and when it is a little more stable.

My next blog will likely be about the custom sensor PCB I designed.

 

All links to blogs related to this project can be found in the first blog here:

Safe and Sound - Invisible Hazardous Environmental Factors Monitoring System - blog 1

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 8 years ago +3
    Sometimes it is only tenacious persistence that gets you through. I can understand that. We did a MQTT sideline in the Internet of Holiday Lights [Christmas Tree] Internet of Holiday Lights - Special Feature…
  • DAB
    DAB over 8 years ago +2
    Great post Douglas, Seeing someone else's issues with new software is always useful. The first issue with new software is trying to find out what it does TO you in addition to what it will do FOR you.…
  • mcb1
    mcb1 over 8 years ago +2
    dougw I found this when I was looking for something else. https://software.intel.com/en-us/articles/a-comparison-of-iot-gateway-protocols-mqtt-and-modbus/ Cheers Mark
  • mcb1
    mcb1 over 8 years ago

    dougw

    I found this when I was looking for something else.

     

    https://software.intel.com/en-us/articles/a-comparison-of-iot-gateway-protocols-mqtt-and-modbus/

     

     

    Cheers

    Mark

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Great post Douglas,

     

    Seeing someone else's issues with new software is always useful.

    The first issue with new software is trying to find out what it does TO you in addition to what it will do FOR you.

     

    I look forward to seeing the system up and running.  There are a lot of aspects of your implementation I might want to copy.

     

    Thanks

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 8 years ago
    Sometimes it is only tenacious persistence that gets you through.

    I can understand that.

     

    We did a MQTT sideline in the Internet of Holiday Lights

    [Christmas Tree] Internet of Holiday Lights - Special Feature

     

    not sure if it helps or not.

     

    Mark

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 8 years ago in reply to jomoenginer

    Thanks for the tips. I was going to run Mosquitto on a Pi3 but have not been able to snag one yet.

    The example on Energia was a big help although it was targeting a cloud broker. One of the problems for me, as with any new area, is translating all the specialized terminology into language I understand - the standard learning curve.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 8 years ago

    Doug,

     

    Nice.  I have not run mosquitto on a Windows system, but I have run it on Linux and Raspberry Pi's before with messaging between an ESP8266. RasPis and OpenHAB as well as with NodeRed.  The programming was all done with Python, so it will be interesting to how MQTT works with the TI devices. I believe there are some sample programs for this especially with Energia, if you have not found this already.

    In Code Composer, you might want to look for the "CC3100BOOST MQTT Twitter LED Example"  project.

     

    I'll be headed in this direction myself, so it will be interesting to see your path with this.

     

    Cheers,

     

    Jon

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube