All Quiet on the Exploratory Front?


Nope.

We’ve been busy. Real busy. All of us. Making stuff. We even had deadlines.

You may already have been playing around with LoRa and our EE02 module. This required that you set up a dedicated network and had access to a gateway. For some time, this was the only viable option if you needed low power IoT connectivity.

But now - something has changed.

On october 1st, NB-IoT functionality was enabled in all of Telenor’s base stations in Norway. That means that you now have access to a really attractive alternative with regards to IoT technology. No more arguing with your customer’s IT guy, begging for holes to be punched in a firewall. No more gateways. No more hassle. Where you have 4G coverage, you now have IoT connectivity. Period.

Soo, how can I lay my clammy developer hands on this smokin’ piece of NB-IoT technology, you say ?

Easy! You just visit our online shop.

Yes, we just made the “I” in “IoT”. We made it cheap and we made it accessible. We also made the “missing link”, the one stop shop for data and device management. It has a really, really nice frontend. It’s primed and ready. It’s available now. Get online within minutes after receiving your device. We provide 247 self service - and tutorials. No human contact involved. Promise.

The device

module

(Our EE-NBIO-01 module to the left. The official Ublox N2 development kit to the right. The official SARA N2 dev kit is packed with features but after a while you realise all you really want is the UART.)

Hook-up

Connect the EE-NBIOT-01 to your favourite microcontroller by hooking up the following pins:

  1. Connect the 3v3 pin to MCU 3.3V
  2. Connect one of the GND pins to MCU GND
  3. Connect the TX pin to MCU TX and RX to MCU RX (Yes, we know…)

EE-NBIOT-01 can be powered from a 1.8-5.5V source (via the VCC pin), but you will have to keep in mind that the TX/RX pins are not 5V tolerant. Use a level shifter if your MCU is a 5V device.

Verify APN setup

Using the UART, send the following AT commands to the device (You can also do this by hooking it up to a USB to serial dongle and use a terminal emulator in order to do this step):

Check the APN setup by sending

AT+CGDCONT?

If it doesn’t reply with “mda.ee”, run the following commands:

AT+NCONFIG="AUTOCONNECT","FALSE"
AT+NRB
AT+CGDCONT=0,"IP","mda.ee" 
AT+NCONFIG="AUTOCONNECT","TRUE"
AT+NRB

Get IMSI and IMEI numbers

AT+CIMI
AT+CGSN=1

(AT+CIMI returns the IMSI, and AT+CGSN=1 returns the IMEI)

Register the device in Horde

You can now register your device. Go to the console (https://nbiot.engineering/) and log in with your Telenor CONNECT ID account.

  1. Select “My default collection” (Or, if you are feeling brave, you can create a new collection)
  2. Select “Add new device”. Give it a name and fill in the IMSI and IMEI numbers. Press “Create device”.

Reboot the device and verify MDA/APN and that you have got an IP address:

AT+NRB
AT+CGDCONT? (should now reply with "mda.ee")
AT+CGPADDR (return the device IP address)

You are now connected to the internet of things.

Click on your device in your collection. You will see the IMEI and IMSi numbers and a window showing a live stream from the device.

Time to send your first packet.

  1. Create a socket:

    AT+NSOCR="DGRAM",17,8888,1
    
  2. Send a packet:

    AT+NSOST=0,"172.16.15.14",1234,12,"48656C6C6F20576F726C6421"
    
  3. Close the socket:

    AT+NSOCL=0 
    

This packet will now appear in your device live stream at nbiot.engineering. If you want to send this data somewhere else, you can just define a new output via the frontend (Webhook, MQTT, IFTTT).

Read more

https://nbiot.engineering

Now, what are you waiting for? Go build stuff! The world needs more things in the internet of things! :)