Posts

Build an Android app to control a Q7 Camera P2P WIFI

Image
This tutorial will teach you how to build an Android app to control a Q7 Camera P2P WIFI using the Android Studio development environment.

Start a new project
I create a new project with application name "Q7Camera". During the wizard i add a basic activity.

Import native libraries and sources To control the camera you need the libraries at this link: https://github.com/brusdev/q7cam/tree/master/app/src/main/jniLibs/armeabi. Copy the previous library in the path "app/src/main/jniLibs/armeabi" of your project. The packages to import are x1.Studio.Core at https://github.com/brusdev/q7cam/tree/master/app/src/main/java/x1/Studio/Core and com.microembed.sccodec at https://github.com/brusdev/q7cam/tree/master/app/src/main/java/com/microembed/sccodec.


Edit the manifest To use the native libraries you need to add the following permissions to the manifest:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="a…

Connect wan automatically at boot and after a disconnection on OpenWrt

OpenWrt is an open source project for embedded operating system based on Linux, primarily used on embedded devices to route network traffic. I install OpenWrt on my Netgear DGN3500, an ADSL2+ gateway with wireless acccess point integrated. Finally the wifi signal is strong but the internet connection does not go up at boot or after a disconnection.

Found solutions I find the following solutions: to schedule the reboot and the reconnections by cron (https://www.youtube.com/watch?v=PfqGr15D4JM), to write a script to reconnect after a disconnection (https://gist.github.com/navhaxs/8029bea3420cdbb11047https://gist.github.com/ninadpchaudhari/6561841ffc3667b1e5ee) or to insert the command "ifup wan" in the file "/etc/init.d/network".

Recomended solutionTo take all the advantages of the previous solutions i write the script "wanup" to connect the wan and i call its at boot and after the disconnection. To call the script "wanup" at boot you can insert t…

Smart solar water heating solution to take part in the Open IoT Challenge 4.0!

Image
Smart solar water heating solution uses IoT and AI technologies to improve the efficiency of passive solar water heating system. This solution is designed to take part in the Open IoT Challenge 4.0!

Solar water heating Solar water heating (SWH) is the conversion of sunlight into heat for water heating using a solar thermal collector. Solar water heating systems include storage tanks and solar collectors. There are two types of solar water heating systems: active, which have circulating pumps and controls, and passive, which don't.
Passive solar water heating systems are typically less expensive than active systems, but they're usually not as efficient. However, passive systems can be more reliable and may last longer.


The solar panels heat the water in the storage tank when they are affected by the sun rays. The water reaches the highest temperature when the sun is stronger. If the water in the solar panel is hot the divert valve close the flow towards the boiler so the boile…

Eclipse IoT Announces Fourth Edition of the Open IoT Challenge

Image
The fourth edition of this challenge encourages IoT enthusiasts and developers to build innovative solutions for the Internet of Things using open standards and open source technology. The previous edition of the Challenge resulted in a great solution to track sleep and improve the life of people suffering with mood disorders.
This year’s participants will once again be supported with hardware development kits, receive technical support, and the winners will receive special prizes.
The Open IoT Challenge encourages participants to build IoT solutions using any or all of the following technologies:
IoT open standards, such as MQTT, CoAP, Lightweight M2M, MQTT, OneM2M and OPC UA.Eclipse IoT projects, such as Californium, Kura, Leshan, Milo, Mosquitto, Paho, SmartHome, Unide, Vorto and others listed here.Other open source technology, such as Cloud Foundry, OpenShift, Apache Spark or Apache Camel.Commercial hardware and services that interact with open source software and open stan…