Category Archives: Resources

Connecting an Arduino to a mobile cellular network


PubNub’s Ian Jennings demonstrates how to connect your Arduino to a mobile cellular network with a GSM/GPRS shield.


There’s a ton of tutorials out there on hooking your Arduino up to the LAN, whether it be Wi-Fi, an Ethernet, or other. But what about beyond the LAN? What if you want to connect your Arduino to the Internet in the wild?

In this tutorial from PubNub’s Developer Evangelist Ian Jennings, we’ll show you how to connect your Arduino to a mobile cellular network with a GSM/GPRS shield. This enables you to stream data bidirectionally or trigger device actions anywhere with a cellular network.

And, that’s powerful for any mobile IoT implementation (think connected car or drones) or apps without a Wi-Fi signal (think irrigation or weather sensor networks). Like like the many other DIY Arduino projects out there, it’s easy, affordable, and powerful.

So let’s get the tutorial started!

arduino mobile cellular network

What You’ll Need

  • Arduino UNO Rev3 (ATmega328)
  • Seeed Studio GPRS Shield V2.0
  • AT&T SIM Card (standalone)
  • C size batteries (x5)
  • C size battery holder (x5)
  • Smartphone
  • Laptop

Setting up the SIM Card

iphone-activation-card-600The first thing you’ll need to do is unlock the SIM card and make sure it has a data plan associated with it (hence why we included the smartphone on the list above).

Put the SIM card into your phone and read the instructions on the package. In the case of an AT&T SIM card, you may have to dial a series of numbers to activate the card, then configure the plan online, but this may vary depending on the carrier.

Note: Make sure your mobile plan supports data transfer and not just calls and texts.

Then, connect to a website on your mobile phone. If it works, you have data and the SIM card will work on your Arduino.

Setting up Arduino GPRS

Plug in your now-activated SIM card to your Arduino GPRS Shield. For how to do this, Seeed Studio has a great tutorial. Follow the tutorial, but stop and come back to this tutorial before uploading code in “Test Setup.”

Arduino Libraries

There are a fair amount of libraries needed to get setup on Arduino, but at the end, it’ll make it all a lot easier. The specific libraries for the Seeed Studio GPRS Shield v2 can be found here. In the docs, you’ll see the three libraries you’ll need to connect to a mobile network.

Import all three libraries into the Arduino setup.

Software Serial

Now that our shield and Arduino environment are ready, let’s move onto the fun part of this tutorial: playing with the cell networks. We need a way to talk to the SIM900 chip on the Arduino. Instead of using a hardware serial and talking directly to it, we’re going to use Arduino’s software serial.

Open up the SIM_900_Serial_Debug example from your Arduino examples folder.

This example is pretty simple. All we’re doing it proxying the serial data from Arduino’s serial port into SIM900’s. This enables us to use the included Arduino serial debug tool to interact with our SIM900.

void loop(){
  if(gprs.available()){
    Serial.write(gprs.read());
  }
  if(Serial.available()){     
    gprs.write(Serial.read()); 
  }
}

Call Yourself

To test everything out, we’re going to attempt to call ourselves with the Arduino GSM shield. First, load the software serial example onto the Arduino and then open up the serial debugger. Be sure to power the SIM card on the Arduino GPRS shield using the button on the side.

Power up the SIM900 by pressing the power button for around 2 seconds. The red LED will turn on. The green one beside it will begin blinking. If the shield joins the network successfully, the green LED will blink every 3 seconds. Wonderful!

Make sure you put your old SMS card back into your phone after testing the Arduino SIM. Now, type the following into your Arduino serial window.

AT

Serial output should show something like:

RDY
 
+CFUN: 1
 
+CPIN: READY
 
+PACSP: 0
 
Call Ready

If you don’t see the messages in the serial monitor, click the “send new” option that will add carriage return at the end of AT command, and then send AT command “AT+IPR=19200″ to set the baud rate of the SIM900.

Now try calling yourself. Enter the following command, replacing 1***8675309 with your own number.

ATD1***8675309;

If it succeeds, a message ATH OK will show up as the picture below. Otherwise, No CARRIER will show up instead. The reason might be nonexistent phone number or incorrect command format.

Connecting to the Mobile Cellular Network

Now that we’ve configured our Arduino to work over GSM, let’s get it connected to the mobile cellular network.

Make sure that the baud rate of SIM900 is 9600! You can use the AT Command(AT+IPR=9600) to set it through SerialDebug.

Load up the the GPRS_TCPConnection example from GPRS_Shield_Suli. This example makes a simple request tombed.org/media/uploads/mbed_official/hello.txt HTTP/1.0\r\n\r\n

However, it probably won’t run when you load it on your Arduino. This is because it’s not configured to work with your specific cellular network.

In my case I’m using AT&T, so I needed to change the following lines to configure my GPRS connection:

GPRS gprs(PIN_TX, PIN_RX, BAUDRATE,"cmnet");

This line isn’t sufficient in most cases. We’ll also need to supply an APN, username, and password. These parameters are omitted from the example but you can simply supply them on your own. You can find the relevant code here.

GPRS(int tx, int rx, uint32_t baudRate = 9600, const char* apn = NULL, const char* userName = NULL, const char *passWord = NULL);

To connect to AT&T, use the following config:

GPRS gprs(PIN_TX, PIN_RX, BAUDRATE, "wap.cingular", "WAP@CINGULARGPRS.COM", "CINGULAR1");

Now run the code. You should be able to obtain an IP and issue the request. However, the app will probably crash (SIM turns off) when the request has been issued. This might be confusing, but there’s an easy fix.

Battery Considerations

The Seeed Studio and a variety of other shields advertise to be “plug and play” with Arduino. However, this isn’t always the case. This shield in particular doesn’t have enough power from the single 5v USB supply to successfully complete TCP requests.

This is easy enough to fix though, all we need to do is give it more power! Online forums suggest adding 5 C-cell batteries to power the GSM chip, which is what we did below:

The batteries should be wired in series, with the positive end wired into the VIN input and negative wired into the GND. After you’ve added batteries, try the example again. It should connect successfully.

Great! Now we’re ready to signal with PubNub.

Signaling with the PubNub Data Stream Network

We’re going to use the PubNub Data Stream Network as our backend messaging layer for signaling our Arduino. This enables you to send and receive data bidirectionally between your Arduinos and signal to trigger device actions.

Load the following example onto your Arduino, changing the GPRS gprs() configuration as mentioned previously.

#include 
  #include 
  #include 
  #include 
 
  #define PIN_TX    7
  #define PIN_RX    8
  //make sure that the baud rate of SIM900 is 9600!
  //you can use the AT Command(AT+IPR=9600) to set it through SerialDebug
  #define BAUDRATE  9600
 
 
  GPRS gprs(PIN_TX, PIN_RX, BAUDRATE, "wap.cingular", "WAP@CINGULARGPRS.COM", "CINGULAR1");
 
  void publishData(String data) {
 
    Serial.println("attempting to publish");
 
    while (false == gprs.join()) {
      Serial.println("gprs join network error");
      delay(2000);
    }
 
    String str = "GET /publish/demo/demo/0/pubnub_gprs/0/\"" + data + "\" HTTP/1.0\r\n\r\n";
 
    // Length (with one extra character for the null terminator)
    int str_len = str.length() + 1; 
 
    // Prepare the character array (the buffer) 
    char http_cmd[str_len];
 
    // Copy it over 
    str.toCharArray(http_cmd, str_len);
 
    char buffer[512];
 
    if (false == gprs.connect(TCP, "pubsub.pubnub.com", 80)) {
      Serial.println("connect error");
    } else {
      Serial.println("publish success");
      Serial.println(data);
    }
 
    gprs.send(http_cmd, sizeof(http_cmd) - 1);
 
    gprs.close();
 
  }
 
  int counter = 0;
 
  void setup() {
 
    Serial.println("starting");
 
    Serial.begin(9600);
    // use DHCP
    gprs.init();
    // attempt DHCP
 
    while(true){
      publishData(String(counter));
      counter++;
      delay(1000);
    }
 
    gprs.disconnect();
 
  }
 
  void loop() {
 
  }

This example connects to PubNub and publishes a message every second. It works just like the previous example, but instead of retrieving data, this example streams information to the PubNub network where it’s accessible from anywhere.

Rest Client

You can see how the message is assembled by looking at the publishData() function.

See how the url is created here:

String str = "GET /publish/demo/demo/0/pubnub_gprs/0/\"" + data + "\" HTTP/1.0\r\n\r\n";

It may be confusing at first, but let’s break it down. The url is formatted according to the PubNub REST Push API.

http://pubsub.pubnub.com
/publish
/pub-key
/sub-key
/signature
/channel
/callback
/message

The domain pubsub.pubnub.com is defined later in the function. The publish key refers to is the pubnub command (you can also subscribe). The pub-key and sub-key come from your own PubNub account, but you can use thedemo keys for now. Don’t worry about signature.

The channel is really important. This is like an IRC channel for your PubNub devices to talk to each other.

Show Me the Data

Since we don’t have any other device listening for messages from the Arduino, let’s use the PubNub console to observe our channel activity.

If you’re using the default code above, you can use this link to view channel activity for your GPRS chip.

If your demo is running you should see a count like 1, 2, 3, 4 appear in the “message” pane.

We’re able to view the data coming out of the Arduino because we plugged the same publish and subscribe key into the PubNub console as we did into the Arduino. Since we’re using the demo keys the channel is shared publicly, but if you create your own account your data will be privatized.

Additional Resources and More Information

This is just one of our many Arduino-PubNub implementations. We’ve also connected Arduino Yún to the Internet, as well as showing you how to connect Arduino Uno and Seeed Studio Ethernet Shield v2. For all our Arduino related posts, here’s the full feed.


Ian Jennings is a developer evangelist at PubNub, a secure global data stream network for IoT, mobile, and web applications. He cofounded Hacker League, a site devoted to simplifying the organization of intensely collaborative tech events known as “hackathons.” Jennings recently pretty much guaranteed that he’ll always be able to keep himself stocked up on techno-gadgets with the sale of Hacker League to Intel’s Mashery subdivision for the price of more than a few PCs. But he’s not done. In fact, his latest invention, Mote.io, is a remote that connects your web browser with various music platforms like Pandora, Youtube, and Rdio, and has gotten raves on tech sites like GigaOM; he’s also in the midst of developing the Reddit app for the uber-hyped tech accessory Google Glass.

Forward secrecy made real easy


Taking a closer look at how ATECC508A CryptoAuthentication devices can help in providing robust authentication.  


Forward secrecy, which is often referred to as Perfect Forward Secrecy (PFS), is essentially the protection of ciphertext with respect to time and changes in security of your cryptographic session keys and/or primary keying material over time.

A cryptographic session key is used to authenticate messages and encrypt text into ciphertext before it is transmitted. This thwarts a “man in the middle” from understanding the message and/or altering that message. These keys are derived from primary keying material. In the case of Public Key Cryptography, this would be the private key.

Unless you are implementing your own security in the application layer, you probably rely on the TLS/SSL in the transport layer.

The Problem

One can envision a scenario in which ciphertext was recorded by an eavesdropper over time. For a variety of reasons out of your control, your session keys and/or primary keying material are eventually discovered and this eavesdropper could decipher all of those recorded transmissions.

Release of your secret keys could be the result of a deliberate act, as with a bribe, a disgruntled employee, or even someone thinking they are “doing the right thing” by exposing your secrets. Or, it could be the result of an unwitting transgression from protocol. Equipment could be decommissioned and disposed of improperly. The hard drives could be recovered using the infamous dumpster dive attack methodology, thus exposing your secrets.

If you rely solely on transport layer security, your security could be challenged knowingly or unknowingly by third parties controlling the servers you communicate with. Recently leaked NSA documents shows powerful government agencies can (and do) record ciphertext. Depending on how clever or influential your snoopers are, they could manipulate the server system against you.

There are many ways your forward security could be compromised at the server level, including server managers unwittingly compromise it due to bad practices, inadequate cipher suites, leaving session keys on the server too long, the use of resumption mechanisms, among countless others.

Let’s just say there are many, many ways the security of your session keys and/or primary keying material could eventually be compromised. It only takes one of them. Nevertheless, the damage is irreversible and the result is the same: Those recorded ciphertext transmissions are now open to unintended parties.

The Solution

You can wipe out much of your liability by simply changing where encryption takes place. If encryption and forward secrecy are addressed in the application layer, session keys will have no relationship with the server, thereby sidestepping server based liabilities.This, of course, does not imply transport layer security should be discarded.

A public/private key system demonstrates the property of forward secrecy if it creates new key pairs for communication sessions. These key pairs are generated on an as-needed basis and are destroyed after a single use. Their generation must be truly random. In fact, they cannot be the result of a deterministic algorithm. Once a session key is derived from the public/private key pair, that key pair must not be reused.

Atmel’s newly-revealed ATECC508A CryptoAuthentication device meets this set of criteria. It has the ability to generate new key pairs using a high quality truly random number generator. Furthermore, the ATECC508A supports ECDH, a method to spawn a cryptographic session key by knowing the public key of the recipient. When these spawned session keys are purposely short-lived, or ephemeral, the process is known as ECDHE.

Using this method, each communication session has its own unique keying material. Any compromise of this material only compromises that one transmission. The secrecy of all other transmissions remains secure.

The Need for Robust Authentication

Before any of the aforementioned instances can occur, the identity of the correspondents needs to be robustly authenticated. Their identities need to be assured without doubt (non-repudiation), because accepting an unknown public key without robust authentication of origin could authorize an attacker as a valid user. Atmel’s ATECC508A provides this required level of authentication and non-repudiation.

Not only is the ATECC508A a cost-effective asymmetric authentication engine available in a tiny package, it is super easy to design in and ultra-secure. Moreover, it offers protective hardware key storage on-board as well a built-in ECC cryptographic block for ECDSA and ECDH(E), a high quality random number generator, a monotonic counter, and unique serial number.

With security at its core, the Atmel CryptoAuthentication lineup is equipped with active defenses, such as an active shield protecting the entire device, tamper monitors and an active power supply circuit which disallows the ability to “listen” for bits changing. The ECC-based solutions offer an external tamper pin, so unauthorized opening of your product can be detected.

Atmel launches next-generation CryptoAuthentication device


Atmel becomes first to ship ultra-secure crypto element enabling smart, connected and secure systems.


Just announced, the Atmel ATECC508A is the first device to integrate ECDH (Elliptic Curve Diffie–Hellman) security protocol — an ultra-secure method to provide key agreement for encryption/decryption, along with ECDSA (Elliptic Curve Digital Signature Algorithm) sign-verify authentication — for the Internet of Things (IoT) market including home automation, industrial networking, accessory and consumable authentication, medical and mobile, among many others.

Atmel_September2014_pg2

Atmel’s ATECC508A is the second integrated circuit (IC) in the CryptoAuthentication portfolio with advanced Elliptic Curve Cryptography (ECC) capabilities. With built-in ECDH and ECDSA, this device is ideal for the rapidly growing IoT market by easily providing confidentiality, data integrity and authentication in systems with MCU or MPUs running encryption/decryption algorithms (such as AES) in software. Similar to all Atmel CryptoAuthentication products, the new ATECC508A employs ultra-secure hardware-based cryptographic key storage and cryptographic countermeasures which are more secure than software-based key storage.

This next-generation CryptoAuthentication device is compatible with any microcontroller or microprocessor on the market today including Atmel | SMART and Atmel AVR MCUs and MPUs. As with all CryptoAuthentication devices, the ATECC508A delivers extremely low-power consumption, requires only a single general purpose I/O over a wide voltage range, and available in a tiny form factor, making it ideal for a variety of applications that require longer battery life and flexible form factors.

“As a leader in security, Atmel is committed to delivering innovative secure solutions to the billions of devices to be connected in the IoT market,” explained Rob Valiton, SVP and GM of Atmel’s Automotive, Aerospace and Memory Business Units. “Atmel’s newest CryptoAuthentication IC is the first of its kind to apply hardware-based key storage to provide the full complement of security capabilities, specifically confidentiality, data integrity and authentication. We are excited to continue bringing ultra-secure crypto element solutions to a wide range of applications including IoT, wireless, consumer, medical, industrial, and automotive, among others.”

CryptoSecurityALT_HPBanner_980x352_Final_v_2

Key security features of the ATECC508A include:

  • Optimized key storage and authentication
  • ECDH operation using stored private key
  • ECDSA (elliptic-curve digital signature algorithm) sign-verify
  • Support for X.509 certificate formats
  • 256-bit SHA/HMAC hardware engine
  • Multilevel RNG using FIPS SP 800-90A DRBG
  • Guaranteed 72-bit unique ID
  • I2C and single-wire interfaces
  • 2 to 5.5V operation, 150-nA standby current
  • 10.5-kbit EEPROM for secret and private keys
  • High-Endurance Monotonic Counters
  • UDFN, SOIC, and 3-lead contact packages

In the wake of recent incidents, it is becoming increasingly clear that embedded system insecurity impacts everyone and every company. The effects of insecurity may not only be personal, such as theft of sensitive financial and medical data, but a bit more profound on the corporate level. Products can be cloned, software copied, systems tampered with and spied on, and many other things that can lead to revenue loss, increased liability, and diminished brand equity.

Data security is directly linked to how exposed the cryptographic key is to being accessed by unintended parties including hackers and cyber-criminals. The best solution to keeping the “secret key secret” is to lock it in protected hardware devices. That is exactly what this latest iteration of security devices have, are and will continue to do. They are an inexpensive, easy, and ultra-secure way to protect firmware, software, and hardware products from cloning, counterfeiting, hacking, and other malicious threats.

Interested in learning more? Discover the latest in hardware-based security here. Meanwhile, you may also want to browse through recent articles on the topic, including “Is the Internet of Things just a toy?,” “Greetings from Digitopia,” “What’s ahead this year for digital insecurity?,” and “Don’t be an ID-IoT.

Atmel launches new radiation-hardened mixed-signal ASICs for space apps


ATMX50RHA ASIC delivers flexible analog capabilities for up to 22 million routable gates simplifying the design process for next-generation space applications.


Atmel has announced a new radiation-hardened (rad-hard) mixed-signal ASIC platform for high-performance and high-density solutions for space applications. Manufactured on 150 nm Silicon on Insulator (SOI) process, the ATMX150RHA adds to Atmel’s portfolio of rad-hard solutions.

Space

Providing a platform that simplifies the design process for space application, the new ATMX150RHA delivers up to 22 million routable gates, includes non-volatile memory blocks, flexible form factor with compiled SRAM and DPRAM blocks, and supports 2.5/3.3/5V and high-voltage (25-45-65V) I/Os with pre-qualified analog IP. This flexible and highly-integrated ASIC brings an overall lower bill of materials for space applications, which range from transportation and communication to Earth observation to scientific research. The ATMX150RHA ASIC platform is supported by a combination of state-of-art third-party and proprietary design tools such as Synopsys, Mentor and Cadence.

Leveraging Atmel’s nearly 30 years of flight heritage, the ATMX150RHA integrates Atmel’s proven rad-hard solution and offers a full service option for customers designing ASICs up to the qualified flight models. As previous Atmel ASIC platform generations, all ATMX150RHA products are fully designed, assembled, tested and qualified in Europe.

“With our long-standing flight heritage and more than 3,500 flight models delivered, we are a leading ASIC provider for space applications with proven, reliable solutions,” explained Patrick Sauvage, General Manager of Atmel’s Aerospace Business Unit. “Atmel’s ATMX150RHA ASIC adds to our proven aerospace portfolio, and delivers a fully integrated solution that allows aerospace designers a flexible, yet complete solution to help accelerate their space mission. The new ASIC is further testament to our aerospace leadership.”

Key features of the ASIC:

  • Comprehensive library of standard logic and I/O cells
  • Up to 15 usable Mgates equivalent NAND2
  • Operating voltage 1.8+/-0.15V for the core and 5V +/-0.5V, 3.3+/-0.3V, 2.5+/-0.25V for the periphery
  • High voltage I/O’s 25-45-65V
  • Memory cells compiled (ROM, SRAM, DPRAM, Register file memory cells) or synthesized to the requirements of the design
  • 32KB NVM memory block
  • Cold sparing buffers
  • High-speed LVDS buffers 655Mbps
  • PCI buffers
  • Set of analog IPs
  • Low-cost NRE with a Space Multi Project Wafer (SMPW) option
  • No single event latch-up below a LET threshold of 75 MeV/mg/cm² at 125°C
  • SEU hardened flip-flops
  • TID test up to 300kRads (Si) for 1.8V and 3.3V devices and 150kRads (Si) for 5V and HV I/OS according to Mil-Std 883 TM1019
  • CCGA, CLGA and CQFP qualified packages catalog
  • ESD better than 2000V
  • Applications include satellites, space probes and space station launchers

Interested in learning more? Soar over to the ATMX150RHA’s official page here.

Arduino Day 2015 set for March 28, 2015


Mark your calendars! One of the biggest Maker ‘holidays’ is just around the corner. 


As Makers, there’s one special occasion that we just can’t help but love: Arduino Day! It is a 24-hour celebration – both official and independent – where hobbyists, tinkerers and even some experienced engineers from all over the world come together to share their DIY experiences. This year, the second annual ‘holiday’ is slated for March 28, 2015.

ARDUINODAY15_banners_720x300

2014 saw more than 240 user groups, Makerspaces, hackerspaces, fablabs, schools, studios and educators throughout Europe, North and South America, Asia, Africa and Australia involved in planning activities, workshops, and events for a wide range of audiences and skill sets. Those needing a refresher can tune-in to Massimo Banzi’s official announcement from last year here.

“You can attend an event or organize one for your community. It doesn’t matter whether you are an expert or a newbie, an engineer, a designer, a crafter or a Maker: Arduino Day is open to anyone who wants to celebrate Arduino and all the things that have been done (or can be done) with it,” the team writes. “The events will offer different types of activities, tailored to local audiences all over the world.”

As far as official events are concerned, the company has organized five of them in Torino, Malmo, Bangalore, Boston and Budapest. Meanwhile, local events are put together by the community, just supported and curated by the Arduino crew. If you’re interested in creating a get-together at your Makerspace, you can do so by submitting an application.

ArduinoUno_r2_front

Like we’ve previously discussed on Bits & Pieces, Atmel is at the very heart of nearly ever Arduino board on the market today, thereby helping tinkerers bring their wildest creations to life.

Indeed, as our resident Wizard of Make Bob Martin noted, our 8- and 32-bit MCUs have been the chips of choice for Arduino since the boards first hit the streets way back in 2005 — as you can see in the first prototype below. More specifically, he attributes the success of Arduino to its easy-to-use, free cross-platform toolchain and simple do-it-yourself packages with Atmel MCUs.

“These factors helped initially steer the Arduino team to choose our AVR microcontrollers – and today, both our AVR and Atmel | SMART ARM-based MCUs,” Martin explained.

4441590461_26c63592a8_b

In addition to young Makers and educators, it’s no surprise that the open-source electronics platform has even become increasingly popular among experienced designers, architects and engineers as well.

Now just a few weeks away, you can follow along with Arduino’s official countdown and locate an #ArduinoD15 meet-up near you! In the meantime, as you get started on your next project to celebrate the occasion, you can find out which Atmel based ‘duino is right for you here. Of course, we’ll also be celebrating Arduino Day at Atmel with extra project coverage, so be sure to stop by and check out our upcoming blog posts around the Maker favorite platform!

Realtime tech is changing the way we build online experiences


Users don’t want to wait for updates anymore, they want information in realtime.


App users were once content with static apps, single-user experiences where content changes only when a user requests a new page, clicks a button or refreshes the page. New information is presented only when a user requests it.

RealTimeTechnology

But times have changed. The average attention span of a human is 8 seconds, according to the National Center for Biotech Information. Users don’t want to wait for updates anymore; they want information in realtime. As a result, we’re seeing a major shift from static apps to realtime apps, web and mobile apps that mimic real life behaviors, pushing content and information “as it happens.”

The result is the birth of applications that have created industries that wouldn’t have otherwise been possible without this realtime functionality. Realtime technology is at the core of these apps and services; its lifeblood. And these apps are just a couple examples of the exponential growth of realtime web and mobile applications.

We’re seeing increased understanding of the benefits of realtime web tech so it’s not surprising that the number of apps using the technology is rapidly increasing. Common functionality includes simple data updates for notifications, dashboards (sports, finance, site analytics and anything that’s stat-heavy), realtime news and activity streams. Or more complex functionality for multi-user chat, collaborative applications, multiplayer games, interactive 2nd screen experiences, realtime mapping and GIS.”

– Phil Leggetter in 10 Realtime Web Technology Predictions for 2014

Taxi/Ridesharing Applications: A tight realtime loop

CarIconCircle

The days of standing out on the curb to hail a cab are dwindling. In fact, I’ve watched people let empty cabs drive right by them. Why would somebody do this? It’s the realtime user experience. Users prefer to hail, track, and pay for their fare seamlessly, all in one mobile app.

Realtime maps have become a staple feature of taxi and ridesharing applications. Users expect to be able to watch their car on a live updating map, giving them an ETA and assuring them that a car is really coming. But there are also other realtime features in these apps that are vital to the overall user experience. The apps are able to dispatch drivers in under a quarter of a second with the click of a button. They’re able to monitor and track fleets of vehicles, accurately dispatching vehicles without ever double booking or dropping rides. And most of all, they’re able to create one smooth ride experience, from hailing to payment, and everything in between.

This tight information loop, fast and efficient communication between themselves, the driver, and dispatch is the reason these ride sharing and taxi apps are so popular. And that tight information loop requires realtime technology to make it all possible.

Examples: Lyft, Sidecar, Uber, GetTaxi, Flywheel

Sports Score Applications: Updates as they happen

ScoreboardIconCircle

Static or slow sport applications can’t emulate the fast-paced action of actually viewing a live sporting event. To create this user experience, there’s needs to be information pushed to the user as quickly and often as possible. A simple clock and score board that updates every 10-20 seconds doesn’t have the real life feel and speed it needs to capture the attention of its users.

Realtime technology has changed that. Information is now pushed as it happens, to thousands of users simultaneously, anywhere in the world. These apps no longer just update the score and time, but rather are fully featured applications for out-of-stadium audience interaction. This includes collaborative features like polls and trivia, social feeds, live blogging, and live statistics. The app obviously won’t completely emulate the feeling of watching a live sporting event in the flesh, but it is changing the way that somebody out of stadium can experience a live sporting event entirely from their phone.

Examples: Manchester City FC Match Day Centre, ScoreCenter

Online marketplaces: Emulating a real life auction house

AuctionIconCircle

If you remember the early days of eBay, you probably pulled your hair out with the frustrations of the last 5 minutes of a heated bid war, repeatedly tapping ‘refresh’ to see if you were still the highest bidder. Then you refresh again, the auction is over, and you’ve been outbid. A static bidding application doesn’t mimic the excitement of a real life auction, and more importantly doesn’t enable users to bid rapidly with one another for an item.

“Behavioral emails are one of best ways to capitalize on in-app activity,” said Dane Lyons, Founder and CTO of Knowtify.io, the smart email engagement platform. “People really appreciate a brand that provides the information they really need when they need it.”

Today, online auction houses need to push high volumes of data as quickly as possible. They may have hundreds or even thousands of buyers watching and bidding on a single item. Data stream networks can power this, no matter where each bidder is located across the globe. This creates a reliable, low latency connection between all the bidders, the auctioneer, and auction application, ensuring a smooth and solid bidding platform.

ExamplesTopHatter, Catawiki

Home Automation: Reliable and secure realtime signaling

HouseIconCircle

When a user presses a button on their phone to turn on a light, they expect that light to turn on as if they’re flipping a switch. Or when you cross over a certain geographical location in your vehicle, you expect your garage door to open and your house’s heater to turn on.

It seems as though every home appliance these days has an IP address. Home automation solutions are becoming increasingly popular, and our houses are getting smarter and smarter. To provide and power a full home automation product, speed, reliability and especially security are paramount requirements.

This is where realtime device signaling comes into play, a key component of any home automation product. Device signaling requires a system that is bidirectional, where updates are sent through a dedicated channel that can trigger events (such as a light turning on). This signaling is needed on both the send side and the receive side. Though low latency is key for this signaling, security and reliability are just as important. When the security of your home rests in an home automation solution, encryption and additional security features need to be a core feature of the application. This ensures that unauthorized users can’t access the home automation application.

When you lock the door from your smartphone, you want that door to lock every time, and you definitely don’t want somebody else to be able to unlock it.

ExamplesRevolv, Insteon

These are just a couple different types of web and mobile apps that reflect the exponential growth and reliance of realtime technology. We want information as it happens. And realtime technology delivers that.

Interested in learning more? Be sure to browse through a number of PubNub’s latest blog posts, as well as surf through our archive on the company’s realtime network here.

Open-source hardware is eating the world


Our good friend and Hackster.io founder Adam Benzion explores the latest advancements in open hardware and what it means for our future.


Open-source hardware has been making headlines in industry publications and tech communities for years, but only now is it finally enjoying the same mainstream adoption that the Creative Commons and open-source software have enjoyed for over two decades. With growing numbers of hardware designs publicly available to study, modify, distribute, and replicate, resistance is futile!

06a5a8e

Move Over Patent Trolls

Much like its immediate software relative, open-source hardware uses existing hardware design licenses rather than creating new ones, to co-innovate and share it forward. In a stark shift from the usually guarded patent world of hardware, we find a new environment for the sharing of ideas. Literally hundreds or thousands of hardware designs—circuit design, component integration, machines, tools, processors and practically anything that can be physically invented—are getting published and made available for anyone to use. There are many upsides to this, although it also seems to be encouraging more red-faced patent trolls to sue unsuspecting users of open-source hardware on Kickstarter and Indiegogo, because someone, some time ago, was already awarded a patent. (It’s just my opinion, but if you filed without the intention to ever build or share your invention, you deserve to get out-innovated.)

You’re Either In Or On The Way Out

Right now it seems like everyone is joining, but you might be less enthusiastic if you’re a Fortune 100 that established itself on the grounds of proprietary technology. Remarkably, however, many of the companies I would have bet on being slow in adapting into this new world are actually fully endorsing it. From Intel, to Atmel, Freescale, and TI, these silicon tankers have proved agile and responsive, powering most of the kits we all know and love (and maybe by doing so, they will start opening up some of their core chip designs?) Maybe it shouldn’t be surprising: They’ve been publishing reference designs for their boards for decades as a way to make it easy for customers to get started. And now they’re also learning from open-source electronics royalty like Arduino, while juggernaut creative hits like SparkFunSeeed Studio and Adafruit, show how to further adapt, share more, and be part of a community.

I’d rather build on the shoulders of giants, share everything we’ve learned, and learn a thing or two from others. At the end of the day, SparkFun is successful because of the products, value and service we deliver, not our IP portfolio.

Nathan Seidle Founder & CEO, SparkFun Electronics

And it doesn’t stop with electronics. Just take a look at Toyota’s CES 2015 announcement. The company is following the example of Tesla Motors, making all of its 5,680 patents related to fuel cell technology available, royalty-free, to anyone in hopes of driving more innovation. Sure, you can argue that all of this is done in the name of self-servitude: They save on R&D resources while broadening the market, and eventually sell more products as a result. Autodesk is also working on a similar initiative with Spark: an open platform that allows any hardware manufacturer, software developer or material scientist to automate, simplify and improve 3D printing. Regardless of the motivation, this is happening, and the beauty of it is that it taps the collective crowd for exponential brainpower and innovation.

atmelbooth

A Freeway Without Speed Limits

By distributing hard earned engineering IP via the Creative Commons Attribution and the GNU General Public License and a widespread “Copylefting” attitude, innovators are transforming the world of hardware creation at speeds we’ve never seen before. The implications reverberate across the playing field, affecting everyone from hardware hackers to major players, and beyond.

  1. Startups. With little to no hardware engineering experience, startups can now hack their way into building hardware prototypes, fully capable of connecting to the “internet of things”, skipping months and thousands of dollars traditionally associated with such creations.
  2. Community. Open-source hardware is creating new communities that share recipes of creation. For me this became a personal obsession. Myself and Ben Larralde, co-founders of Hackster, are helping people everywhere co-create and learn open-source hardware. We see a massive wave of hardware innovation resulting from this movement, with firmware, schematics and inventive combination of electronics being developed, shared, redesigned and shared again from every corner of the planet in speeds we never seen before.
  3. Kids. If you are a parent like me, you are starting to see how this movement is accelerating your child’s abilities to design complex creations. My daughter who is only 4 years old can assemble strangely beautiful hardware creations using littleBits and thinking through “what if” scenarios. What happens when she’s 10 and can actually build complex blocks using LittleBits version 8.0? Does she even buy hardware at Best Buy or just build it herself because it’s more fun and possible better? When everything is open, big changes are inevitable.

Hardware innovation is driven by demand chain not supply chain, and open hardware provides the creative engine.

Eric Pan, Founder and CEO of Seeed Studio

Why Is This Happening Now?

We’ve lived through many decades since the computer revolution, the invention of the microprocessor, and the mainstream Internet. Maybe it’s not a surprise that all of the technology required to create software and hardware has finally come together, simplified and affordable to almost anyone on earth. Today, all you need is free cloud computing account from Microsoft’s Azure, an Intel Edison or Spark’s new Photon, basic programming skills and an access to a 3D printer. Voila, you are well on your way to creating a basic, functioning, piece of hardware. Unfathomable even 5 years ago. When I built my first hardware company in 2010, much of the above was generally unavailable.

RepRap_v2_Mendel

Disrupted Again

Built on the heels of open-source software and the new sharing economy, open hardware is a disruptive evolution. It will create massive changes to how hardware innovation is co-created and monetized in rapid new cycles. It will shift the tight hold of old power that was jealously guarded by the few, to the new power which is open, participatory, and peer-driven, forceful as it surges.

But the real change in open-source hardware will come when you see a consumer product released as fully open-source — not something for programmers, hackers and hobbyists. The day that Samsung release a phone or a GE a washing machine that ships open will be the signal that the value in hardware openness is here to stay.

This post was originally published on LinkedIn by Adam Benzion along with the help of Nathan Seidle, Tom Igoe, Sean Geoghegan and Eric Pan. You can also learn all about Hackster.io and explore a wide-range of the latest Maker projects here.

Hive’s smart home system will keep you informed and entertained


Hive was designed to completely simplify your connection to your home and protect everyone, and everything, inside it.


Undoubtedly, 2015 will be the year that we see connected living go mainstream. Evident by the sheer number of smart home devices on display back at CES, we can surely expect an uptick in products hitting the market, ranging from hubs to lights to speakers. Now, what if you rolled all those those things into one? That’s exactly what one Salt Lake City startup has done.

47b1d58d7386b98bc5c832e1904be73d_large

Called Hive, the team has set out to create a smart home that is easy to use, and more importantly, even easier to afford. The system — which recently made its Kickstarter debut — is comprised of a smart hub and audio system that offers a complete package of in-home entertainment, automation and security.

The simple, elegantly-designed Hub supports nearly every major wireless networking technology, including Bluetooth, Wi-Fi, ZigBee and Z-wave. The device boasts a dual-core 1GHz CPU, 1GB of RAM, 4GB Flash storage, Ethernet, 3G for backup Internet, Wi-Fi, Bluetooth 4.0, Z-Wave, IEEE 802.15.4 (for ZigBee or Thread), a battery, a Libre audio streaming module with Google Cast support, as well as a wireless transceiver for compatibility with Honeywell security sensors. What’s more, the plug-and-play Hub provides hassle-free setup and customization, allowing users to easily switch on/off the lights, unlock the doors, or activate a number of appliances.

4fc2c9b0722d4fdf23ec390387fe10a5_large

In addition, the Hive Sound is a Wi-Fi and Bluetooth-enabled speaker system that can emit the same (or different) tunes to various parts throughout your connected house. The speakers, which insert right into a standard wall outlet, not only stream beats straight from your Google Play, iHeartRadio, NPR One and Pandora playlists, but can receive alerts and notifications of the important things happening around you as well. In the event of an emergency, the system is equipped with two-way voice for instant communication for first responders.

5bc098acc8d292817d499493e18ddf99_large

The speakers are packed with a pair of drivers and a passive radiator for full sound, a series of RGB LEDs for visual notifications, a microphone with noise cancellation, and a Libre wireless audio module. For good measure, the Sound also features a built-in backup battery that allows the system to run, even if the power goes out or Internet goes down.

1281943d4d2439b96d4c4408dc52d19f_large

Like a number of smart home devices on the market today, Hive was developed with simplicity in mind. With its companion app, homeowners can control each Hive Sound throughout the home, as well as individually. Having a get-together or want to blast the radio? You can also pair them together and have a dynamic, surround-sound experience.

Currently live on Kickstarter, the team is seeking $100,000. If all goes to plan, the well-rounded smart home devices are expected to begin shipping in May 2015. Interested in learning more or backing the project, head over to its official page here.

Arthur C. Clarke was spot on with his 21st century predictions


Nailed it. 


In 1976, AT&T and MIT held a conference that brought together of number scientists, theorists and academics to explore the future of technology. There, Bell System news magazine had the chance to catch up with Arthur C. Clarke to discuss the next generation of computing, communication and more. What you will notice is that the 2001: A Space Odyssey author was pretty darn accurate… decades before.

clarke

Courtesy of the AT&T Tech Channel, the vintage 1:1 session with Clarke reveals several of his predictions coming to fruition including mobile devices, home computers, the Internet, Skype, email, the death of newspapers, telecommuting, and of course, “Dick Tracy wrist-radios.”

We’re going to get devices which will enable us to send much more information to our friends. They’re going to be able to see us, we’re going to see them, we’re going to exchange pictorial information, graphical information, data, books, and so forth.

[The ideal communication device] would be a high-definition TV screen with a typewriter keyboard, and through this, you can exchange any type of information. Send messages to your friends … they can wait, and when they get up, they can see what messages have come in the night.

You can call in through this any information you might want: airline flights, the price of things at the supermarket, books you’ve always wanted to read, news you’ve selectively [chosen]. The machine will hunt and bring all this to you, selectively.

While other researchers and Hollywood films predicted ubiquitous flying cars, hoverboards and robots, Clarke was more interested in where communication was headed. Watch the interview below.

Learn how to #InventAnything with littleBits


Ready to become a BITSTAR? littleBits has launched a self-guided, open curriculum for Makers.


As you’re probably well aware, littleBits is all about inspiring more people around the world to become Makers and not just consumers of technology. The company seeks to place the power of electronics into the hands of everyone with their easy-to-use, modular components that enable those just starting out to connect their projects to the Internet, program IFTTT recipes, and even create their own analog synthesizers. Taking their initiative of supporting DIYers’ journeys one step further, the New York-based startup has just launched a series of free online courses to help anyone around the world discover how to #InventAnything using littleBits.

BoqLnJUIUAAk9eJ

What’s more, the courses are entirely free, online, and in true Maker community fashion, open to anyone who wants to participate. It is peer-powered by P2PU, and you can follow the five week curriculum starting on February 23rd — or join in later if you want to go at your own pace. This program has been created to reach both those who are brand new to littleBits, as well as those with some experience points. At the end you will graduate with exclusive bitSTAR status, joining the leaders league of their community and unlocking a 20% discount. After all, who doesn’t love a little savings?!

How it works is relatively simply. The system is comprised of various tracks, which you can think of as departments in school. These include everything from the Internet of Things and hardware to music and design, or for those looking to dip their toes in the Maker waters, there is an entry-level basics session as well. Throughout the course, you will be introduced to various components such as the Arduino (ATmega32U4), MP3 (ATmega168) and servo (ATtiny25) modules to name a few, and how to incorporate them in your next project.

tracks-600x392

As the littleBits team notes, most of the activity is designed to encourage peer-to-peer learning and takes place in their online discussion forum. If you haven’t used a forum before, don’t fret as their helpful team will guide you through the process.

Every Wednesday, Makers are invited to join a real-time hangout with other so-called bitsters. There, you can enjoy live networking, technical support, and perhaps even partake in some collaborative brainstorming. Each week, littleBits will also have special guests joining us for a fireside chat, including folks like Eric Rosenbaum of MaKey Makey, Dr. Mitch Resnick of MIT, and Ariel Waldman of NASA.

becomeabitstar-600x361

Those participating in #InventAnything will have the opportunity to go beyond all the making and teach others in your local community how to channel their inner DIY spirit and make something great. At the end of the course, you will have the chance to devise your own playful event using littleBits, whether in your backyard or at your local makerspace. To celebrate the occasion, the team will host a global make-a-thon with everyone who took the course. Think of it like a virtual Maker Faire!

If you’ve read the blog post this far, we’re sure that you’re pretty excited to get started. If so, head over to littleBits to sign up. Weekly assigments will commence Feburay 23, but in the meantime, you can go ahead and introduce yourself in their forums as well as browse the various tracks. What a great idea to enable, inspire and connect with likeminded individuals. Let’s get to making!