Integrating Shimmer with Android Tablet - android

I am working with sensor device called shimmer.The sensor device sends data and its getting stored into the SD card of the tablet. I have show the acceleration generated by the 3 axis of the sensor device on my tablet.For that I have to get the information.Do anyone know is there a way I can implement the sensor device accelerations on the android tablet.?
no answer?

I am also working on a similar project for my university. The goal was to create an interface between the shimmer sensor and an android application, that we have to code.
Using Bluetooth SPP sniffing I managed to decode most of the used commands for data transmission, but haven't completely mapped it. If you have access to any documentation that I do not, this step is probably redundant.
The basics for creating a connection through android is to code your application for Bluetooth SPP, and once connected, transmit the required commands through SPP to the shimmer sensor. Basically this would be #SOH for settings/Connection start, #ACK to "ping" the device to see if it is responsive (The device should reply with #FF (OK)). If the "boilerplate" program-firmware is used, then the status led on the device also toggles it's color from Green to red and vice versa.
Then you can send #BEL, which triggers the Accelerometer/Gyro/ and whatever other sensor you have connected. You will have to find a way to interpret the data, and extrapolate the readings.
If you are still working on the project, and would like to collaborate, then maybe we could help each other out.

Related

HM10/11 BLE to Android Phone connectivity

First off I would like to ask if it is possibe to send a stream of data from an arduino with HM11 to an android phone via bluetooth.
The data contains ultrasonic sensor's readings, orientation, battery level, etc.
My android phone will be displaying those data accordingly acting as a monitor.
I tried coding already using the android studio using the bluetooth guide resources but i end up unable to connect to my module with a message "read failed, closed or timeout -1". I have tried connecting while paired or unpaired. My app can discover HM11 as well as receive the data using HMBLE Terminal app i have downloaded from Play Store. So I guess the android studio guides are not meant from android to bluetooth modules.
I would also like to begin from scratch as i may have missed out some very important basic information.
Any help?

Is there any method to use to check whether Android Wear is worn or not?

Is there any generic mechanism to check whether the paired Android Wear is worn (and within range)?
The criteria for worn could be one or more of the following:
- Wear within range of Phone (connected).
- Has a pulse (if device has that capability).
- Wear has moved (if device has a motion sensor).
My goal is only to send notifications to the Android Wear from the phone if it is connected and worn. Otherwise it should only be displayed on the phone.
Motion sensors are your best bet. You can try monitoring changes and if there is none for a certain amount of time, you can treat it as a device not being worn.
However, Google already did that for you: https://developer.android.com/reference/com/google/android/gms/location/DetectedActivity.html ActivityRecognitionApi will give you information about motion of the device, so you don't need to figure these things again yourself.
Most specifically, you are looking for this: https://developer.android.com/reference/com/google/android/gms/location/DetectedActivity.html#STILL
You should be able to use this sensor https://developer.android.com/reference/android/hardware/Sensor#STRING_TYPE_LOW_LATENCY_OFFBODY_DETECT
And sensor guide https://developer.android.com/guide/topics/sensors/sensors_motion

Pairing android app with Bluetooth tire pressure sensors and getting real time data from it

i m working on an android application which is going to get real time pressure data from Bluetooth enabled tire pressure sensors and display it on screen. From where should i start and how to pair my android app with Bluetooth enabled sensors? and how to get the real time data after pairing?
Please guide me through this, any help is highly appreciated!!!
This is one of those question....
First thing you need to do is to find out what profile the sensors are transmitting data with. For example, if it turns out to be Serial Port Profile - which is the most common one, you can literally copy and paste android chat sample code and change UUID to UUID of Serial Port.
Just replace UUID of the sample with this:
00001101-0000-1000-8000-00805F9B34FB
This is the sample:
https://android.googlesource.com/platform/development/+/eclair-passion-release/samples/BluetoothChat

Wifi Direct (Wifi P2P) peer data exchange - sensors

I am trying to emulate this app - Wifi Direct sensors (https://play.google.com/store/apps/details?id=esnetlab.apps.android.wifidirectsensors)
I have gone through the demo of wifi-direct from android samples.
I am able to get sensors data on a individual device, but i need to get them from the peers in a wifi-direct group.
So I wanted to know if someone could suggest on how to go about the design/process of getting the sensors data from 'remote sensors' on one device (as shown in the screenshot of that app).
There are basically three components you are going to need...
If you're going to want to plot the results, need a plotting library like Androidplot.
You're going to need to establish a Wi-Fi direct connection between the devices. There is sample code for this in the android SDK, but it isn't in the newest SDKs, I think it's in levels 14 to 18, or something like that. In the samples, they show you how to open a socket connection and send a file. You just need to leave the socket connections open.
The sensor event class is not serializable, and I think its constructor is either protected or private. This makes it difficult to send over a socket since it is difficult to reconstruct the sensor event on the peer. A library like Gson might help with this, but an easier way would be to pick a subclass of information that is important to you and to just send that info.
What you want to do will be a lot of work.

Arduino + Bluetooth module + Android

I'm trying to think of a way to do a simple home automation project that involves an Arduino, a Bluetooth module and an Android phone. The idea is that I have two Arduino boards in different parts of my home. And if I walk into a room then a LED lights up on the board that has discovered my phone. If I walk out of the Bluetooth range, the LED should turn off.
I have tried the DomoticHome project with a router, but it's only for manual on/off and it's based on the Ethernet module.
I don't want to make an Android application from scratch, but I would like to take some existing open-source application that I could extend to use Bluetooth and/or turn on the LED automatically.
Actually, you might skip that Android application requirement. Just make the Arduino board l2ping your phone by Bluetooth periodically and switch your LED based on success or fail.
As a side effect, you could automate with just any phone, that supports Bluetooth. But the devil is in the detail. It might be necessary to pair boards and phone initially.
Additionally, most Android phones switch off visibility after a minute or two. So you will have to check, whether a ping will work then. (I don't know whether l2ping is available on Arduino out of the box, but it should be portable easily.) Trying to open a Bluetooth port on your mobile device may be an alternative to l2ping. So a no-application-solution should be possible.
Best way to do this would be using a handshake signal every 1 second or 2 seconds.. the bluetooth module should send HI if mobile receives that i should reply with HI.. Once the mobile does not reply it should turn the lights off.. If it receives the HI it should turn the light back on..I have a code that can connect to these bluetooth modules using serial communication..its very simple to use..i will check and send you the code.. All the best..

Categories

Resources