Adventures in connecting to the network

Adventures in connecting to the network  

  By: straytaoist on Oct. 8, 2017, 11:44 a.m.

If anyone is interested, a quick summary of what I did over the course of a Saturday afternoon:

  1. Write a quick microservice (and host it on one of my servers) that accepts some specific-to-what-I-want JSON and logs it (TODO: stuff it in a GIS/time series/something hip database)
  2. Set up devices and applications via the SmartCam site gubbins
  3. Generate keys
  4. Read docs on LoRaWan (it is all a bit disparate, and no one seems to have written a weblog post on it all in the way I presume would be done. Which means I'm going to have to, I guess.)
  5. Using a serial console, I got connected to the network. Twice. (It times out on me now, but as I'm close to the fringes of coverage, I might have been lucky yesterday. I intend on taking some electronics into work tomorrow to see if easier/better.)
  6. Soldered a device that measures sound, location and stored them on a memory card (as it knows whether it is connected to the network or not, and falls back for uploading later)

It moslty works, timeouts aside. Rough-and-ready, but it seems you can get up and going in a couple of hours (starting from no knowledge, either, and hacking and the like.)

I'll be happier when I see info go from my sensor through the network and hit my endpoint with a payload, but the bits are all there.

Also if anyone is interested, some cost/timings as well:

Microservice written in go (go is awesome for this kinda thing): 15 mins Scaleway hosting (where my microservice runs) 2.99/mth (recommend! Less than a cup of coffee. A month.) RAK811 LoRa Node - GBP11 (from China, came within two weeks. Awesome.) Arduino - GBP 4 (Chinese clone, but I'll end up with it on a chip, and they cost like 70p) Electranet microphone - GBP1.25 SD card reader - GBP 80p GPS unit - GBP4.75

So about 20 quid (if you use a temp/humidity sensor instead of gps/sound, and no SD, it obvs is way cheaper. You don't even need the arduino, but I digress.)

I'll probably write this all up properly on my own site when I'm done, but yeah, there it is.

I'm also interested in hearing what others have done. I mean, come one, there must be someone out there aside from me and those shadowy figures running this caper that have connected and produced something?

cheers,

m.

Re: Adventures in connecting to the network  

  By: ijl20 on Oct. 15, 2017, 11:08 a.m.

thanks for this...

When we get this forum more organised we'll have separate forums for the Cambridge Sensor Network, Buses, Car Parking, Air Quality and Traffic (and I guess whichever additional projects get added to the list). Plus we can put some initial content into the forums that provides a good explanation of the platform and the various data sources.