LoRa Node registrating at LoRa Gateway - iot

I am starting a project for my university and starting to play around with the LoRa stuff, working through this pdf , filled with some examples.
I've used the code examples from page 47 (Client, Server). It's working fine but I don't understand how the node is registering at the gateway. I mean, where is the part in the code?

The links you have posted to Github appear to be using the RFM95 module in a peer to peer fashion rather than utilising LoRaWAN style communication. Can I suggest you try using the LoRa LMIC library instead, this has a full implementation of LoRaWAN and can be used with TheThingsNetwork & RFM95 modules - https://github.com/matthijskooijman/arduino-lmic.
As for the gateway I am unsure of the Dragino gateway hardware / software, however I believe they are capable of acting as a Single Channel Gateway / Packet Forwarder. There is a decent forum thread here discussing how to use the Dragino gateway with TTN, https://www.thethingsnetwork.org/forum/t/dragino-gateway/6154 and the Dragino wiki has a comprehensive how to guide http://wiki.dragino.com/index.php?title=Connect_to_TTN. However there are short comings with single channel gateways, and some do not support downstream messages, so depending on your use case this may or may not be so useful.
If you can describe more in depth your use case I'd be keen to offer up more advice / ideas, I use LoRa a fair bit, but I only have experience with the Arduino Dragino hats not their gateway.

Related

OpenNMS: Can I do Industrial IOT and LTE Mobility

Hi everyone I am new to OpenNMS and for now I am in learning phase. I have request from one of my client to done some research on the following two thing.
1- Can we do Industrial IOT with OpenNMS
2- Private LTE mobility and Monitoring of devices
I have very short time to conclude the result and give it back to the client. Although I searched myself for these points but I cannot conclude because I have not in depth understanding for OpenNMS for now. So my questions is can we do these features in OpenNMS. Its really helpful If someone with more experience in OpenNMS share his thoughts. Please don't consider the details about devices and their protocol I just want to know if OpenNMS is capable for doing industrial IOT for oil, gas and mining sectors.
Note: My client already have NMS build in OpenNMS that is why he is interested in OpenNMS for these features.
There is a MQTT Plugin developed which allows to consume event data and performance data over MQTT. Craig Gallen is the main author and gave a talk about OpenNMS and IoT capabilities at our conference. I personally gave it a try and got it work with Mosquitto MQTT broker and some sensor using Home Assistent. I've documented my findings here: https://pad.no42.org/uHN8csNkQB23rJsgt62SlQ.
The plugin is in early stage and need probably some more iterations. I hope the information help you to get more ideas where OpenNMS is heading. Feel free for more questions in our chat in channel opennms-discussion.
I've been involved with using OpenNMS for IoT data collection for years. Also a professional geologist having worked in O&G and mining. Short answer is yes.

Is there a published protocol standard for home environment and appliance control via the Internet?

I am starting to look into home environment and appliance control via the Internet.
I have an infotainment background that includes audio transport in distributed infotainment systems via MOST and Ethernet. For the latter I have experience with IEEE1722 (IEEE 1722 - LAYER 2 TRANSPORT PROTOCOL WORKING GROUP FOR TIME-SENSITVE STREAMS).
As I looked into IoT and the home domain (I use that term loosely to include appliances, security, environment, landscape maintenance) I had hoped to find a standard command and control protocol, for example something analogous to IEEE1722.1, but applicable to command and control in the home domain.
I did some searching and I see there are a number of packaged solutions (i.e. products and software recommendations) available. There are also a number of kits out there (e.g. RPI3 and Beaglebone Black, TINI) that would be useful platforms for a type of home controller however I found no mention of a standard protocol for command and control of the home apps. We have the lower layer protocols like IP, TCP, UDP, SSL, HTTP ... etc but as far as I could tell no standard application layer protocol.
Does such a protocol standard (either formal or de-facto) exist? If so could you please provide a pointer to it?
BTW there was a hit on my search in Stackoverflow:
"Is there any standard for Smart Home?" But from what I could tell that was someone asking for the answer to questions posed by their classroom lecturer. It had -1 votes. My questions is not that.
Thanks in advance.
Jim
I did further searching and found https://developer.apple.com/homekit/ and http://www.knx.org/media/docs/Flyers/KNX-Basics/KNX-Basics_en.pdf and https://www.electronichouse.com/smart-home/home-automation-protocols-what-technology-is-right-for-you/#comments Thanks

Arduino-LoRa module code doesn't work

I am trying to develop an Arduino sketch in order to send Temp-humi data from a dht11 sensor to KPN (Dutch) Network throughout a LoRa module (Dragino).
There are plenty of sketches around internet with similar function, but none of them has the right function I expect, since most of them ONLY send a simple 'Hello world' data throughout the ABP or OTAA Keys that the Network provides. In the other hand, I have also found sketches that ONLY makes the temp/humi functionality, withouth having the chance to write the Activation Keys.
So, I am actually trying to join these two codes with these functionalities (Request the Activation Keys to connect with KPN Network, as well as the sender sensor data), and it seems to compile properly, however, it is not sending any data, so probably the code is wrong.
May I get any link to the right one or any recommendation, please?
Many thanks in advance.
Project Code:
enter link description here
I have also had my problems with the Dragino shield and dht11 but i got it working.
My script: https://github.com/FelixKunz/LoraDraginoDHT
I would recommend you to use the RN2483. I've had rarely any troubles with this chip and it is not as expensive as the dragino shields.
en prettige dag

Implementing ospf topology collector

I need to implement a software module that is able to retrieve the topology of an autonomous system.
Looking at the various protocol that are implemented in Cisco routers i concluded that the only two alternatives to obtain topology are smnp and ospf.
The first one is a workaround and i don't want to use it, this leads to ospf.
I haven't found library in c, java and python that are usable; this one ( http://www.ospf.org/ )is probably the most complete but comes without documentation and i don't have enough time to analyze all the code.
So i found quagga that can implement a software ospf router; seems the perfect alternative since it can work with both real network and simulated network in gns3.
But it's possible to obtain the ospf routing table from quagga since everything is from command line?
This are my conclusions and doubts if someone can suggest something better or help me with the next step it would be appreciated since i'm stuck at the moment.
Use quagga's ospfclient feature. There is already an example provided in the ospfclient directory (see ospfclient.c) which will show you how to retrieve the LSA database from a quagga/ospfd instance. For this solution to work you need to attach a PC to one of your OSPF backbone routers and configure quagga/ospfd on it to successfully learn the routes then you start your ospfclient to retrieve any information you need.

iOS to iOS device connection through streams (over IP-Address)

As a final school-graduation project I try to develop a kind of spying-car. Which means there is an iPhone placed on a little LEGO-car and an iPad used as a "steering wheel" for the car. Also it is planned to transmit Audio and Video from the iPhone's microphone/camera to the iPad (more than the steering data vice versa).
In the first place the connection from iOS to iOS should be established over a local WiFi network and later - if possible - over 3G (by using the iOS devices network-IP and a DNS server to deal with frequently changing addresses).
My question is: which technology do you recommend using? I read about GameKit, peer-to-peer and so on, but I think these technologies are too abstract for later being able to communicate over 3G. I guess I need to go a little deeper into the low levels of the communication progress. Any suggestion that could bring me a step forward is highly appreciated! (also regarding other parts of my project)
One more thing: Some user suggested using a third party service and to route the sent (video) data over an external server. If possible, I'd rather not use any "middle man". It should just be a basic server-client communication where the iPad is the server and the iPhone the client.
It is kind of an open ended question, but interesting.
First of all, GameKit do have 3g p2p support, see here:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Matchmaking/Matchmaking.html
It will handle the peer-to-peer addressing and establisment of the socket. It can also handle voice chat, but I personally never tried this feature so I can't say if it is feasible in your case.
One idea is to leverage existing video-chat services. This will give you a low-latency audio/video channel with peer-to-peer addressing (well, likely using a central server).
Apple's FaceTime is such a service, but there is no public API to it (AFAIK). Same goes for Skype and Google.
There are some paid services that look like they have nice iOS APIs:
http://tokbox.com/platform
http://docs.weemo.com/sdk/ios/
You have to figure out a way to transmit control commands to the peer iPhone, I did not see if the services above had any possibility of sending text messages/arbitrary data.
Tokbox has a free trial so you could try it out and see if it works for you.
I would go for GameKit if this is a hobby project on a budget and there is time for hacking, and probably look into a more high-level API if there is a deadline...
sorry for writing this as an answer, but i don't have enough rep to comment...
i'm working on a similar project and i currently don't have any advice regrading video-streaming, however, from what i read (extensively) i came to the conclusion that i need to use p2p connection between devices for better performance and use socket programming in order to achieve this (although not the most easy to implement choice).
I considered using GameKit which i think will probably answer most of your needs as Krumelur pointed out. but in my case, eventually the app will be cross platform so i had to use low level network programming. you can check out my question here to see the sources i used to try and make the connection between 2 peers, hopefully you'll have better luck than me...

Resources