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
Upcycle It
  • Challenges & Projects
  • Design Challenges
  • Upcycle It
  • More
  • Cancel
Upcycle It
Blog [Upcycle It] WiFi Connected Smoke Detector #2: Hello, Edison!
  • 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: vlasov01
  • Date Created: 1 Apr 2017 7:14 PM Date Created
  • Views 1184 views
  • Likes 2 likes
  • Comments 5 comments
  • mqtt
  • intel edison
Related
Recommended

[Upcycle It] WiFi Connected Smoke Detector #2: Hello, Edison!

vlasov01
vlasov01
1 Apr 2017

<< Previous

Project Index

Next >>

 

Initial setup of Edison boards

The setup process completed successfully. I was able to setup and flash both boards. But the initial setup consumed much more time then I've anticipated.

Here are some thoughts about initial configuration of Edison:

  1. The reset button is located on the board and must be used as part of the flashing process. It was not very clear for me from the documentation. A simple picture may help a lot.
  2. I think the setup process may be simplified if only one USB cable and one USB port have been used during setup/flashing.
  3. It seems it is not possible to connect two Edison boards over USB Serial connection at the same time on my PC, as only one connection works at a time. But it is not an issue once WiFi connection is on.
  4. It will be great if the documentation had a troubleshooting section. Specifically, I spent most of the time googling around to resolve a serial connection:

image

 

 

MQTT on Edison

I've flashed my Edison boards with Yocto 1.7.3 Linux. In this release Yocto comes with Really Small Message Broker (RSMB). Mosquitto broker version 1.3.4. The process is live from the start.

root@node1:~# netstat -tunl | grep 1883
tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN
tcp6       0      0 :::1883                 :::*                    LISTEN

 

It seems there is no MQTT client with Yocto, so I've used Paho MQTT client on my PC to test MQTT broker.

I was able connect to both MQTT nodes and publish test messages from Paho.

image

Next Steps

  1. Decide to keep RSMB (it is free, but not OSS, not a lot of documentation) or switch to Mosquitto broker.
  2. Build MQTT client (and may be broker) for Yocto for my project.
  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 8 years ago in reply to jasonwier92 +1
    If Mosquitto is there by default it makes sense to use that. I've been using Mosca for my testing, that runs on top of Node so should run on any platform that supports Node if you can't find an alternative…
  • vlasov01
    vlasov01 over 8 years ago in reply to DAB +1
    Thank you for the feedback. I may be able to help a bit if you run into issues with Linux. Sergey
  • vlasov01
    vlasov01 over 8 years ago in reply to DAB

    Thank you for the feedback. I may be able to help a bit if you run into issues with Linux.

     

    Sergey

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

    Nice post.

     

    I will be following your progress, though my Linux skills are very limited.

     

    So I am looking to see what tips I can pick up.

     

    DAB

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

    jasonwier92 Thank you for the correction.

    Yes, it is running mosquitto:

    root@gate1:/# ps | grep mos
      261 root      4536 S    /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

     

    So it makes things much simpler.

     

    I saw yacto 1.7.3 in console after flashing completed, but I haven't captured it. This is what I'm running, which seems the same version as yours:

     

    root@gate1:/# uname -a
    Linux gate1 3.10.98-poky-edison+ #1 SMP PREEMPT Mon Jun 6 14:32:08 PDT 2016 i686 GNU/Linux

     


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

    If Mosquitto is there by default it makes sense to use that. I've been using Mosca for my testing, that runs on top of Node so should run on any platform that supports Node if you can't find an alternative.

     

    This is another good reason to put your code in an external repository such as GitHub. If you need to reflash the board then you should be able to pull all your code back onto the Edison.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jasonwier92
    jasonwier92 over 8 years ago

    Nice intro to Paho's client for the PC.

     

    Why version 1.7.3?  That is from 2014.

     

    https://wiki.yoctoproject.org/wiki/Releases

     

    I cannot find what version I am on, except that I have 201606061707 and it has Mosquitto installed and running by default.  Plus it has mosquitto_sub and _pub installed by default.

    • Cancel
    • Vote Up 0 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