How to connect my thermostat to Raspberry Pi 3 running AWS Greengrass Core? - aws-iot

Since thermostat is not an AWS IOT Device ,how can I communicate user preferred temperature from Raspberry PI to thermostat. We can only connect AWS IOT Device to a AWS GreenGrass Group . My Raspberry Pi is the AWS Greengrass core.

Generally, you have two choices:
1- You can control your thermostat directly through Raspberry pi by writing Lambda function(in python, java, etc). Then you can trigger your lambda by subscribing to specific topic(Fog computation). Here you can find more information about accessing your resources on Raspberry PI by lambda function(Also consider thermostat's interface).
2- If your application doesn't allow latency, then it is better to bring your logic to the edge. You can buy an edge(like ESP32, ESP8266,...) according to your needs and define it as Greengrass device and connect your thermostat to that.

Related

OpenCV with React for real time image processing

I have a fully running CV project on Python, running on a Raspberry Pi. I would like to convert this to a web app (I've just started using react).
My idea is to have a video-stream source that connects to my Wi-Fi. This videostream would then be accessed through a web-app (i.e. by typing the hardware IP address). Once the user logs into the web-app, there'll be a live feed of the camera and buttons/functions that allows to perform different CV tasks on the source live-stream (i.e. object detection, colour detection, etc.). How should I go about creating this? In particular:
On the hardware side, I was thinking of just having a Raspberry Pi with a camera, streaming the live feed via Wi-fi. Couple of questions:
where should the computer vision algorithms be sitting? I assume on the web-app side? Currently everything is done on the Raspberry Pi side, but I feel I reached the limit in terms of computational power
would the Raspberry Pi be completely dumb? I.e. just stream the camera feed?
what's the best way to stream the camera feed to the React App? Websockets?

How to use bluetooth in Marmalade SDK?

I'm writing a mobile application on Marmalade SDK. How can I connect to other device via bluetooth?
https://answers.madewithmarmalade.com/questions/7285/bluetooth-support.html
No, Marmalade doesn't have a Bluetooth API. However, you could write
an extension to do it.
iOS has a CoreBluetooth API that allows you to interact with devices
supporting the Bluetooth 4 Low Energy GATT profile - this is only
supported from iOS 5/iPhone 4S/iPad3 and up, and will only
interoperate with Bluetooth 4 LE capable peripherals exposing a GATT
service. For earlier iOS devices, the only option is to use Apple's
proprietary iAP protocol, which means you can't "talk" to generic
Bluetooth devices - only those that implement iAP.
Android on the other hand offers Bluetooth 2.x + EDR connectivity. A
number of profiles (e.g. RFCOMM, A2DP) are supported. However, Android
doesn't have an API for Bluetooth 4 LE yet.
So, currently, the situation, from a cross-platform point of view, is
quite fragmented and it isn't straightforward to implement a
one-size-fits all Bluetooth connectivity solution.

CAN Communication

How can I implement CAN communication in c# windows application. I have to create an application that communicate to the device. In earlier project I used serial port. What will be the major difference between these two.. Am new to this topic.
You need a CAN controller. I would recommend the PCAN USB from PEAK Systems.
Install the drivers
Download the PCAN API from PEAK System web page. (contains C# wrappers)
Use the API in your application to send and receive CAN frames

Autoconfiguration on programmable Xbee modules

Non-programmable Xbee modules should be configured through a PC (with XCTU) or other devices like Arduino... but can the programmable xbee modules (like xbee-pro zb s2b) autoconfigure themselves, without being connected to another device like a PC or Arduino, by running code stored in their memory?
I mean, can they run orders like the ones you run through XCTU but programming them in the internal memory code? Like scan energy of every channel, select a channel, set a PAN ID, configure the different parameters of the device...
Thank you
Yes, the development kit includes an API for sending AT commands from the co-processor to the radio on those boards.
There's also a passthrough mode that relays the host computer serial port through to the radio processor, which can help with initial setup/configuration of the modules like you might do during manufacturing.
To answer your question:
I mean, can they run orders like the ones you run through XCTU but programming them in the internal memory code?
No. You can not program a sequence of orders/commands into the internal memory of the device. To do anything meaningful the device needs to be "driven" from a host PC or MCU that can send the AT Commands.
If you want 1 device solution that does not require a Host MCU then you will need to use a ZigBee SoC (System on Chip), such as the CC2538 - http://www.ti.com/product/cc2538 running a ZgBee SDK (Software Development Kit) - http://www.ti.com/tool/z-stack (ZStack-Home). However this will require you to develop the ZigBee application SW.
Regards,
TC.

Connecting an Adobe AIR mobile app to Arduino wirelessly - what are the options?

Is there a way to connect an Adobe AIR mobile app to an Arduino hardware wirelessly with no pc or router?
either with bluetooth or directly to an Xbee piece connected to the Arduino?
I need both iOS and android solutions
thanx
You could use the Native Extensions for Adobe AIR (ANE) for iOS and Android, although it means you might have to do a bit of C coding (or at least have basic understanding of the C programming language). A couple of projects have been created for either Bluetooth or Arduino connection using ANE already.
There is an ANE based project called as3-arduino-connector on Google Code, which gives you an ActionScript 3 API and mimics the Arduino serial port.
Another useful project might be AirNativeiOS-Bluetooth, an AIR Native Extension to add Bluetooth support for iOS apps. A corresponding project for Android is Bluetooth ANE, although the website mentions that it's early beta only, not ready for production.
Digi International has a Wi-Fi XBee now; that might be a good option since Android and iOS devices have Wi-Fi already. The more commonly used XBee modules (Series 1 and 2) use 802.15.4 networking (instead of Wi-Fi's 802.11).
I haven't used one yet, personally, so I don't know how you access the serial port connected to the Arduino. It might be possible to telnet to the XBee and send/receive data from Arduino.

Resources