Intel IDF 2015 Setup

Spent the last two weeks building (in C++, Arduino, Node.js and Python) these lasercut Intel Edison slap boxes to show off how to build an IBM Bluemix MQTT game. Martin Kronberg did amazing work putting this all together and creating the designs. Finally we got it all setup and running here at IDF, a few highlights.

Intel Edison Slap Box game

Dancing spiders

Resin.io releases official Intel Edison support

Publish to IBM Bluemix from Arduino using Intel Edison

Here is how to publish data to IBM Bluemix from your Intel Edison or other Wi-Fi enabled Arduino device. Making this work first requires that you import and add the PubSub library for Arduino (generally by copying the .h and .cpp (and examples) folder into your Arduino Libraries folder and restarting your environment. This was written using this guide from IBM (there is more comprehensive source linked way down at the very bottom as a .ino file).

Get the file here on Gist.

What the Hack! Hardware hackathon discussion with Jeremy Foster

Thanks so much to Jeremy Foster from Microsoft for spending an hour with Intel to discuss the topic of hardware hackathons. We had a great exchange of ideas about the future of Internet of Things and the importance of DX for hardware and software developers!

Use WinSCP to copy files to Intel Edison

sessionscp

Being able to use the IDE of your choice to develop for Intel Edison is very freeing. I wanted to share a Windows pro-tip about how to use a simple drag and drop action over the local network to deploy code to your Intel Edison using the SCP protocol.

Setup:

  • In WinSCP click the “New Site” icon on the upper left
  • Select “SCP” using the File protocol drop down
  • Enter in your Intel Edison’s IP address into the Host name area
  • Leave Port as 22
  • Enter in your username and password you set for your Edison (user may be root)
  • Click “Save.” There is an option to save your password you can select if you like.
  • Click “Login”

From now on, you can drag files to your Edison (they will appear in the /home/root directory which is where your PuTTy sessions will take you by default). You can double click on files to edit them directly on the device using your editor of choice!

scpexp

Introducing Bloop: CLI commands for working with Intel Edison

Having helped hundreds of people learn to use Intel Edison, I wanted to use my learning to help make everyone’s life easier . I also wanted to streamline the build / deploy process as well as the process of locating Edison on the local network (via Bonjour) or connecting to Edison via Micro-USB serial terminal.

So I created Bloop.

Here are the features and benefits to you, an Edison developer (using a Mac only, at this time):

  • bloop c: Never have to type in “screen /dev/cu.usbserial-XXXXX 115200 -L” ever again, simply type “bloop c” to do this automatically.
  • bloop list: Print out all Edison devices attached via USB Serial / Micro-USB
    • ex: /dev/cu.usbserial-XXXXX
  • bloop scan: Never have to use Bonjour Browser to detect Edison on the local network, simply type “bloop scan.” Add -r to show the raw output of the scan (otherwise, bloop scan simply returns the name of the first Edison it locates on the network).
  • bloop ssh: Instantly initiate an ssh attempt with an Edison on your local network. Add -e to select a specific Edison by name (useful with many Edisons on the local network) or -u to specify a user other than “root.”
  • bloop push: Instantly generate a command to copy your working directory to Edison’s /node_app_slot/ folder via scp. Like ssh, you can add -e or -u.
  • bloop clean: There is a problem with “Screen” which frequently results in detached screen processes resulting in confusing “Could not find a PTY” errors and “Resource busy.” Bloop clean instantly purges all those sessions and allows developers to connect again via bloop c. If you run “bloop c -f” these sessions will be purged automatically before attempting to initiate a new session.

I am very excited about bloop because I feel it will significantly ease the process for new developers (and all developers) to use Intel Edison. The ‘bloop push’ command, especially, allows you to use Sublime Text or your Node development environment of choice. Enjoy and file any bugs you find. Would like to create an equivalent Windows library at some point.

Install it globally by executing:

$ sudo npm install -g bloop