alt236 / bluetooth-le-library---android Goto Github PK
View Code? Open in Web Editor NEWThis library allows for easy access to a Bluetooth LE device's AdRecord and RSSI value. It offers additional functionality for iBeacons.
This library allows for easy access to a Bluetooth LE device's AdRecord and RSSI value. It offers additional functionality for iBeacons.
The service or characteristic id may have some error, for example:
public static final String LINK_LOSS = "00001804-0000-1000-8000-00805f9b34fb";
it should be 1803 for LINK_LOSS
Hi,
I am trying to make this sample supportable for multiple devices but not able to successfully connect with multiple ones.
I read some where to create Multiple Gatt instances to support multiple devices but still got random disconnect.
Can you help me for this assignment, i am not expecting code but guidance will be more precious.
A leading '0' is being omitted when an integer value of uuid[i] is less than 0x0F.
How would you compute the distance if there's no txPower?
Can you explain what to use to send some data over BT?
Is it writing/reading characteristic that will do the trick?
Thanks
hi all,
in my beacon device , can't assert as BeaconType.IBEACON.
how to revise it ?
02,0x1 04,no connected
1A,data len
FF,Manufacture
uuid ,major and minor id .
590002150112233445566778899AABBCCDDEEFF001020304
beacon raw data:
0x0201041AFF590002150112233445566778899AABBCCDDEEFF001020304C3
android ,6.0
android studio 3.01
05-11 10:54:58.546 26445-26445/uk.co.alt236.btlescan E/libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
05-11 10:54:58.546 26445-26445/uk.co.alt236.btlescan A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 26445 (alt236.btlescan)
please can the device scan work as a service? so it can detect devices when the phone is not in use.
In Android 6.0 appear information log below:
D/BluetoothAdapter: startLeScan(): null
And the program not in LeScanCallback (onLeScan), what's wrong with it ?
thanks~
This shows #9 Name having 26 characters when shown "As String", which is correct.
But the display "As Array" only shows the last 24 characters.
This would make it much easier for devices without access to the Play Store (e.g. BlackBerry).
Since in Java all primitive types are signed, we could receive a negative advertisement length. In that case, the library doesn't consider this case and it must be converted to unsigned int.
Equipment is beside, "Distance" has 20 M
...in this method:
protected static double calculateAccuracy(int txPower, double rssi) {
if (rssi == 0) {
return -1.0; // if we cannot determine accuracy, return -1.
}
double ratio = rssi*1.0/txPower;
if (ratio < 1.0) {
return Math.pow(ratio,10);
}
else {
double accuracy = (0.89976)*Math.pow(ratio,7.7095) + 0.111; //these
return accuracy;
}
}
thanks
Hi
I am using the sample here with the library, and i came across a situation where in, the beacon gets detected when the cell is put into it, but when removed, the list is not refreshed until i press the scan button. is there a way i could be able to track that a beacon device is no longer part of the list? Please assist?
i notice that onScanResult log also stops when the beacon is not detected,but i could not track the log anywhere in the code.
Thanks
Beacon Scanning stops after 30 minutes
It says critical batteries but its not dead help
When the application starts, I first open the intentservice to download the audio, then opened the service to scan the Bluetooth equipment ibeacon. At this point, I found the picture from the server to download very slowly, in the local load is not affected.
I think the child thread may be blocked, how to solve it.
android os: huawei 6.0 and xiaomi 5.0
The README says to run ant jar
in the library/
directory - however there is no library/build.xml
for Ant to work with.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.