Developing an Android App For a Bluetooth Device
#3
In order to find out the data protocol used by the app, that you will need to contact the company (and almost certainly if you release the app, as they would probably sue for breech of intellectual property even if it were free) unless it is a simple comma-delineated list, or an otherwise simple to decode protocol. However, you don't need the contact the company in order to do the other major part of the question....

(12-03-2016, 02:17 PM)Traveler Wrote: Is there an app that would monitor the data traffic between the devices?

Just like with wifi, it is possible to 'sniff' or monitor bluetooth activity/traffic. The stuff in android doesn't seem to be as fully featured as a typical wifi suite like Wireshark, but it may do the job. As of Android 4.4, there is the ability to log all Bluetooth traffic in the developer options... so that might be worth looking at to see what the data protocol looks like. These two links will give you some info to get started...

How the Bluetooth sniffing on Android works
Sniffing/logging your own Android Bluetooth traffic

From the looks of it, this device is intended to be able to monitor an up to 20v supply, and also measure a 30A load... so it certainly isn't impossible to make your own unit, basing it on something like the AC714 hall effect current sensor, which will give you bi-directional current measurements, so you can measure charge and discharge current. Then probably just a voltage divider for the voltage sense, which is where the MCP3002 would give you more accurate readings than something like the ADC on an Arduino would. The power (watts) is just a calculation based on the voltage and current. If you want to be able to use a shunt like with the Wireless Multimeter to measure higher currents, you'll also want to use a MCP3002 there to measure the really low fluctuations in voltage... which get harder to track the broader your current range gets. 

However, I suppose the another question that should be asked is why use the pine64 in this situation... is it going to be a car computer, and you wanted to add an app so it could monitor this unit?


Messages In This Thread
RE: Developing an Android App For a Bluetooth Device - by pfeerick - 12-03-2016, 06:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 392,951 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 30,080 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 17,046 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  New Device Trees for A64 jonsmirl 4 8,477 02-18-2020, 07:03 AM
Last Post: j23
  Android Things OS dqvsra 2 7,057 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 7,148 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 5,681 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,379 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 261,950 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 3,588 02-26-2019, 11:58 AM
Last Post: Twistedx

Forum Jump:


Users browsing this thread: 1 Guest(s)