 Good morning. Yeah sound is working. So my name is Karina Popova. I'm a developer evangelist at Link Mobility. You should see right now my slides. So today I would like to tell to talk to you about real-time communication for IoT how it can simplify our everyday life. Because we think that we all know that the main goal of all development what we are doing now it's to increase communication between things and IoT is like a main keyword right now for many projects. And usually I previous year I gave around 15 talks about IoT and usually I start with a nice story nice example and this time I was really struggling I was flying an airplane thinking oh my god so what what this time because of cause it should be something new. We live in a smart hotel. It was wow for me as I work closely to IoT like you will have this panel where you control everything the temperature of the floor lightning and the bathroom temperature in the shower so it's really cool and but the one thing like as you remember that my talk was to simplify our life I realized that every time when I'm going to a bathroom for example I need to do two movements now I need first to activate display and then I need to then only I can choose it I want to turn light on. So the company where I work. I work in a German company but recently we were bought seven other companies and now we're a big one we're situated in Scandinavia Baltic countries and Germany our office so our background is a messaging business and we do two factor notifications for big German banks like Deutsche Bank and so on and so it means a lot of security we have we provide services worldwide for more than 400 we have contracts with more than 400 operators worldwide and have excellent platform availability and then we were thinking okay messaging business what's next and we decided to move in IoT so what first what we thought about that who is our potential customers and that's we were reading a lot of articles and we come up with this term which is like quantified self which means that it's a self-knowledge through self-tracking with technology because a lot of people around us all of us we try to explore different aspects of our life every day and collect as much data as possible first we all the time want to monitor all different inputs like food consumption and so on also different states of our mood like how to remember how I felt two weeks ago and what will be next because sometimes it's also can predict your mood and there is also a performance applications nowadays physical we all know there is also cool some cool mental applications which is every day my phone tells me do I have depression or not just kind of cool because on these days when I have a notification today it seems today you don't have depression I really feel that they don't and I'm much more happy so what's going on now basically all these IT technologies they're driving the old-style system and infrastructure to kind of highly available highly interactive applications and services so shortly about IOT there is a prediction that in 2020 we will have lots of connected devices per person tons of data per sess per second and of course we are not including yet all these connected cats and dogs that I believe will be also a thing in some years and sometimes it helps to stop for a moment and like seeing where it will bring us all if we would really simplify our life or not and what future will we have of course the IT is the main factor but as we on the PHP conference I today will talk a lot also about PHP okay yeah so when I sell to my friends like I have a talk about PHP in IT usually people say me are you crazy how does it work is it really a thing or not and then I always tell like PHP is really cool language it's so easy to learn so fast it has so many like have so many libraries and so on so it's so easy to work with it so why not PHP can really play important role in IOT and because the picture which we see when we just think about PHP in IOT it's not so large when we when we can combine them together so everyone talking about houses car boats connected stuff but some PHP developers they really interested in building IOT applications I have some friends who is doing all this that all IOT devices in his houses house all the time tweet about something and it's done with PHP but the basic example which I usually say it's GPS sensor that can constantly publish your location and it's connect PHP application which can stream data in the real time and you can monitor your location and that browser it's like the most simple so okay so PHP and Iot can yeah IOT work with PHP and basically IOT producing a lot of data and what we need we always searching kind of a needle in all this data we have we need to get a relevant information relevant data and for this for PHP if we will we call it PHP in IOT it's like a bit big thing because if we just have data it means nothing if we will visualize it and we will see in the real time what's going on it will mean a lot so then because we are from messaging businesses you remember I told at the beginning we decided that it would be cool for us to work in IOT field connected like more close to connectivity and internet of things converting around a lot of things around us into community of information kind of all these things and we have a lot of sensors around us and all these sensors turn billion of information into data generating things which can interact with the environment all the time and these IOT devices can certainly connect through different ways but we decided to focus on cellular connectivity and we thought that it's really cool because obviously when you have Wi-Fi reception it's always limited to a one access point and it's also you have a lot of problems with device configuration or network configuration and with the cellular connectivity it's no you don't have really any maintenance efforts and really a large investigation of any event is possible because we have so many sim based devices around us and this is possible to observe event event in any location any time and yeah so you see if you have a sim card or some and then because we had this contract with 400 operators worldwide we decided that would be cool that the sim card can be just a multi-network and work everywhere and because we as developers to usually experience a lot of difficulties like when we have one operator one provider that we it's not so flexible it's really hard to understand security policies it's a lot of limitations from someone so we thought would be cool to do something to create or develop a feature which can work everywhere and when we look on IoT functional view it's we see that first you need to create information it's of course made by sensors basically or any IoT devices then you have to communicate and this is what we jump in with our connectivity solution but then you have to aggregate this information and that's where we start to use PHP to aggregate information to in a secure way then we have a plan in the next year that we will analyze this information with different intelligence systems as we hope that it will be possible to do and then act of course but nowadays acting is more like a human but hopefully in 2020 it will be more computer so our another thing was that there are some IoT issues which we wanted to avoid and first of all it was that there are so many whenever you use an IoT application so many useful useless sorry dashboard and notifications so if you have thousands of devices you basically have notifications every second they all want to talk to you and you don't know what to answer to them because basically each device it's just a huge number ID numbers that's all and we also would like to do enable developers with the service which we created that for them it would be much easier to crew to adapt to their users and so we decided to have five needs like the first was a connection connection quality which means that we required a permanent connection on any device at any time so with the maximum possible existing coverage worldwide and with the strongest network so which means that sim cards which we provide this can connect can switch all the time to the strongest network the next need was advanced security because in IT you know we talk a lot about security that it's very important that no one receives our data so we thought it would be cool to have IP restrictions that the sim card of course can be locked to specific IoT device and also integration via VPN and so this is how our VPN architecture look like usually you have to have a VPN client on the device in our case you don't need to sim card place a really cool role you can all the time connect just to our IP and service and then we're encrypted like a picture below it's what we do and we encrypt it both way when they connect to our IP and and then to any sim card so it's less power consumption it's no VPN client required and so another need was access to the device and we thought that it's cool to have a static IP address so every sim card has a static IP address it's of course enable and establish a bi-directional communication and we can monitor it in real time of course about flexibility that we had some weird cases like when people wanted to track a polar bear so it should work with minus 50 degrees or someone want to use it in a harsh environment like in metal production and where it's super hot it's also resistance to vibrations humidity in all this stuff and then a really cool thing is a control of all these sim cards and IoT devices so we thought it would be really cool if you can control everything in real time you can monitor it on one portal and so we had a customer portal and we created also our API and this is mostly a place where we use PHP a lot so from the implementation side there were no more difficulties because you are not dependent anymore on any mobile operator you basically have your own mobile network there is no different roaming prices you don't need to change sim cards when you're moving from country to country and we know that GSM connection available almost everywhere so but each subset of sim cards is API programmable which means you can basically play with it around and do what you want yeah so this we have two types of control their access control where you can collect data from all your sim cards and represented in real time and API as I told already so of course what you can see we had to collect a lot of information we had a huge databases and everything should be connected smoothly where PHP work very well so what you can see is that you can manage all your endpoints you can manage your sim cards which means you can actually go and debug your endpoint and see what's going on if why it's not working what was a problem without physically being on a place and you can turn on and turn off like do you want to have LTE or not do how many you can put limits how many SMS your device should send and you can also choose between different tariff profiles because if you have most in cards of course you have the price is usually cheaper so this is how it looks like it's in real time you can see if devices on or off you can see to which network attach device right now and it's all in real time so if the device is just moved to another room and you can also see in real time how much data has been used and what you are paying everything is in real time and for this of course we need to collect a lot of information and around time on PHP really a huge thing here and you can also patch your IoT device with API and so entire ecosystem is built around different PHP libraries and with curl it allows you easy and repeatable concept and user API remotely and things which you need to do to have to work with IoT it's actually you just need to have knowledge about PHP which I think all of us has and you also need to have a development environment like Apache or nginx and like a text editor as we all see and you have to connect and at this point we provide this connectivity so there are different use cases now it's an interesting part so we know that IoT devices now around us everywhere so this is where our SIM cards were used and PHP were used also so it's a payment terminals fleet management smart metering security stations and e-house management a simple thing is just a simple examples is that your device can communicate with you which means for example our alarm system whenever someone enters a room it can send you a message another thing is when you communicate with the device in Germany it's very popular is that whenever you want to enter your garage you just want to do to call on special number and the door is open and there is also we provide access to to use ussd it's very popular on the ships because traveling along the coast and where a GPS connection is JSM connection is not so good but it's still available so they can't really connect to internet but they can use ussd and open dialogue and talk to each other in a real time so the first example which we had a use case was about e-house monitoring we did it for Google conference in previous July yeah and so they asked us to create quickly a e-house monitoring IoT device so we thought like why it was a case because if you are senior and you're already usually you have to stay at your home on your relatives would want you to move to assistant accommodation that someone is looking around you but of course when you are old you don't want to change your lifestyle you would like to stay at home and do normal stuff what you do there are a lot of health devices but they all usually have a Wi-Fi or Bluetooth connectivity which means they're not so flexible they can't monitor what's going on when seeing your went to magazines to the shop sorry and if this if something happened with him in the shop the SIM card can immediately trigger a message yeah and to your relatives a doctor or emergency message depends on so our solution was very simple quick so we took a RD now with GSM shield which basically you can take any IoT device also Raspberry Pi would work perfectly you just need to have a GSM slot yeah for the SIM card we also take this pulse sensor which costs like two euros I guess so it's very cheap you can do it created your home immediately and this pulse sensor check your heartbeat and whenever there is like the measurements show that it's too high or too low it will say that something is wrong with you so the third component was our SIM card decided to try it out how it will work if we're outside this is a scheme of how it looked all together and you can buy yourself say do you want to do measurements every second or every five minutes and what is the limits you can find all these cages and coat on our github account after and so basically what we've done it's done the pulse of sensor connects to your finger or ear then you connect it also to Arduino device or any IoT device which broadcast a signal and this is how it looks like at the end we have this application which shows you in real time how is your what pulse do you have in this minute and the moment when you stop wearing the device that's of course going down and so this is mainly how we collect data and of course we need PHP in this point to consume data and for these purposes it's much more useful for us that we created also a web application which can work in your browser and you immediately can go and check what's going on with your parents for example what is the pulse they have right now yeah we'll monitor everyone I guess soon the next case was yes smart home it's basically what's in our hotel room right now like you can control your heating and you can communicate with your washing machine being outside and it's probably it would be much more easier that you can just go on web and push the data through it like with PHP hub its application looks much more cooler user has much great experience with us and it's very people like to use it more in a to avoid some disasters at their home you know because for one of the company we did this application which shows that it's like everything burning inside and it's a 3d model like what's going on inside the home and it was really cool because people react immediately they don't panic panic is good and then another as I told you already it's alarm system providers they're one of the biggest users for IOT because it's a big challenge to control home and that's also everyone of us would like to have to know that his home is safe everything is in the right place so security is kind of a main thing but we feel much more safe when we can remotely control it and for instance they now do also this application where you can see that your TV was removed from the place because it's attached to a special device and all this information in real-time can really help us to feel much more safer and really can really increase our quality of life and yeah to the next one automotive area this was the first we thought that it's our main case because if we provide the sim cards which can connect everywhere so for it would be very interesting for people whose devices are moving around and first of all it's car bikes and all this stuff so because car rentals and delivery services and logistic enterprises they spend really a lot of money on a fleet management and energy and it's a lot of human efforts but with just one simple help of the IT device you can connect and track location and mileage and see what's wrong with the car you can even track your drivers and see what is driving style they have is it's like do they do it safe or not is they spend a lot of fuel or not and even one company who whom we've done these they have kind of gamifications that each driver is even real-time a score and he knows what you've done wrong and at the end of March the best driver will receive more money so another case we support a conservation project so the guy decided to for two weeks travel from Munich to Vienna by the river on a paddling board and yeah for him it was very critical that in real time everyone can go on his page and see where is he right now and that he's really traveling because they give him money to save this forest area around this river and the cool thing was that it was one of our first GPS tracking project and during two weeks he spent around 15 megabytes data being every two second connected so it's really cost almost nothing so a lot of GPS tracker immediately want to have the same to be able to work everywhere and show it on the real-time map and another main thing right now is a agriculture industry because somehow you and predicts that our population would increase to 11 billions by two thousand two thousand nine hundred yeah and all these people has to be fed and but our main problem is also that we have unsustainable farming right now that really farming has a huge impact on our life not a good one so we have to do it more efficient and reduce pollution and in this purpose they now do these drones which can monitor the field say fly around and check where is a water really needed if the nutrition there is some nutrition deficits and also analyze different soil conditions and they can apply different herbicides only where it's needed not on the whole field and use these drones in the future they even will transfer different insects or specific field and of course all this should be monitored in real time that farmer can see what's going on the field which he should which resources he should to should provide and what he has in his storage and all this should look cool and I can nice application it's right now we do this application for mobile phones but also a web application and then there was this case with retail stores that I told you we thought that our main case when devices moving but no when you have thousands of devices and they are situated around one or two many countries you don't want to have ten different contracts with different mobile operators and you don't want to check if they really exist in this area or not so basically with this sim card which we provide you can connect all of them in any place so this is our now main thing so they use SMS and data as a fallback option because usually they have Wi-Fi but it's often doesn't work and all they need this data also it's very critical that it should be in real time and should be represented for manager level to have to do a quick to to be quick with decision-making process so another case we've done with IBM together so they thought would be cool if you don't have connection to your to internet but you still have a GSM network so it's possible to use SMS so you can just send an API call for example via SMS and at this case we first sending our call and we receive notifications that it's if it's received then everything is fine but if not we don't receive any notifications and we send it by SMS and at the end what we've done on this map you can see all locations where I had conferences already it's a little bit up today but okay so basically I have this IoT devices be whatever I'm on a conference I usually send a message that today I had a talk and it's all stored in one database and it has a really nice representation with the help of HB yeah also chatbots now it's a really thing for IoT because you want to talk with your device and but you want to do it cool so what we've done with within our company you have this Facebook messenger where you can connect all your devices you can also find those a code in our github account and of course you know that PHP is very important for all this representation of chatbots and there is much more because there's kind of intellectual system inside which can understand what it should answer and how it should react and so there is a different combinations of IoT and PHP together and so in this way we thought that our our main goal is to develop this multi-network SIM card and that it can simplify all data collection and help us to stream data real-time in a web browser for all our clients and in the end we really would like to increase the quality of life of general citizens or general people and society as a whole and it's of course possibilities with PHP and IoT bring together its endless and IoT will definitely will continue to be one of the main technology in the next years and because we have all this knowledge in PHP would be very cool if we can come up with more solutions and so we are kind of providing connectivity and our developers are not our target group to whom we want to sell this but we would like to enable you to create something more and to try it out so I have some SIM cards with me if you have an ideas I can give it to you and you can try it out already today when you will order your IoT device and so I'm just hoping that if we will merge IoT and PHP we will live in a better place and we have also a developer package on our website if you are more interested into developing you can check there is a lot of blog posts and GitHub account yes and yeah I would like to thank you that you were there with me during this struggling moments during my presentation and I would be happy to receive your feedback too yeah I'm around here a whole day if you have any questions right now I can also maybe answer yeah so I'm really into the IoT stuff and using PHP as well the the biggest problem that I found at the minute is not gathering the data but it's doing something intelligent with the data once you've received it and I think that is going to be the biggest obstacle going forward is that something that you've your company has actually put some work and effort into yes there is another talk combining IoT and artificial intelligence in two weeks in Bristol you're welcome and here I will tell what you've got a tracking device for your cat or child yeah and then you can analyze where these cats went and why for example it's always has the same pattern and one day it's went to completely different place you can predict somehow behavior of not only cats but also people this is what we in a big airport they usually do as a truck each person and understand why they are moving to if someone is doing a weird stuff probably the security should put attention on it I don't think gaffa taping an Arduino to your cat is a practical solution at the minute but yeah yeah we have made a lot of plans in I do any other questions yeah so I have my Arduino with the shield on it that's then sends an SM goes through the gsm network to your servers then your servers then talk to my server is that the idea so then I can have PHP running on my servers and it just has an endpoint that your server talks to on my set everything is possible with our solution so it's the way if you want to do it on our server it's also possible if you want to do it by yourself it's everything we are super flexible that's why I like the solution that you can immediately create this IoT device and work talk to it straight away is that being yeah sorry is there any chance to use this project to take sorry is it possible to use this technology sim technology to get around the issue that the sim card is a point of failure say for example I've left my sim card at home I can move my number on to another sim card and then could I use that to create that make that happen that makes sense so for example I've got a my sim card is a home and just for example and it has my own server number on that but I need it here today but I have one of these sims is a way to put the number on to the new sim and just temporarily so I can borrow a colleague's device and then use this type of technology to get around the single point of failure issue with sim cards you can manage all sim cards on this portal so it's possible that you yeah it's called a sim card right now okay yeah so it's possible that it's like a virtual one yeah you can yeah it's possible with this technology sorry any other questions if not I really would like to give some sim cards to someone sorry so in one of the diagrams you put up you said that in instances where you have limited cell networks you would fall back to GSM and send SMS messages from the devices back to your servers but earlier on in the presentation you said that you've made the devices by the communication bidirectional if during those periods where you have limited cell reception and you're communicating back using SMS if you were to make a request from your I guess your portals what happens to those requests if you've got limited if you've got limited network available what happens to those requested they just get lost or what happens to them if you lost a network yeah usually there is no case that switches to another network in less than a second okay so it's always connected if there is a any GSM available in this area yeah it will be always connected but in instances but like so one of the diagrams you put up or one of the things you put up said if you had limited G like cell network you would fall back and just start sending SMS messages which implies that you don't have enough data to make APR requests from your devices so what happens to the requests coming from your portal to those devices do they get what happens to them yeah they receive this request and they process it yeah okay yeah okay if your sensor is broken by still sending the data how do we detect that if a sensor is broken but still sending the data yeah how do you detect that or do you have usually there is like a check system on a sensor which says for example something is wrong and you can see it immediately on your web portal that something is wrong so you can connect and check if it's mistaken if it's a physical damage or not I mean if you don't see any problem with during debugging so probably it's a physical and then the only way just to send someone and try it out so you don't analyze the data to know of course we monitor data and if there is that's what I told you but it's possible to limit that your device is not sending like you everyone understands that for example it's if it's an alarm system it will use about one megabyte during one month and of course if it starts sending like 50 megabytes something is wrong then your we monitor all this we have a lot of alerting you receive an alerting that it's not typical behavior for the device then you start to investigate what's wrong thank you any more questions let's all create iot devices it's very cheap and I can give you connectivity solution okay thank you very much for your question