bluetooth

Installing pyjnius on Windows

不打扰是莪最后的温柔 提交于 2021-02-11 07:12:03
问题 I need to access the bluetooth on Android in my Kivy app. I am trying to setup pyjnius on Windows for developing my app. I downloaded pyjnius from GitHub and tried to setup it up for python in the kivy folder. Following the setup, I tried to run the tests and I get an error that I don't understand. I am very new to Android development, and can´t quite understand what might be problem. What am I doing wrong in my installation process? I have JRE and JDK installed in my PC. --- Edited on May 13

Installing pyjnius on Windows

匆匆过客 提交于 2021-02-11 07:11:12
问题 I need to access the bluetooth on Android in my Kivy app. I am trying to setup pyjnius on Windows for developing my app. I downloaded pyjnius from GitHub and tried to setup it up for python in the kivy folder. Following the setup, I tried to run the tests and I get an error that I don't understand. I am very new to Android development, and can´t quite understand what might be problem. What am I doing wrong in my installation process? I have JRE and JDK installed in my PC. --- Edited on May 13

Cannot able run Bluetooth Scanning in Foreground service more than 10 - 15 secs even though Notification is provided

喜欢而已 提交于 2021-02-11 06:26:49
问题 I have used Service to keep my scan for android mobiles even when the app is closed. I used Broadcast receiver to restart my service when killed. It restarts the scanning and it works only for some 15 seconds and then stops When i click button1 in {MainActivity} I started the service and have called startdiscovery() in startCommand method in {ExampleService} Please Help me in running the app in background MainActivity.java import android.Manifest; import android.app.ActivityManager; import

Cannot able run Bluetooth Scanning in Foreground service more than 10 - 15 secs even though Notification is provided

£可爱£侵袭症+ 提交于 2021-02-11 06:25:39
问题 I have used Service to keep my scan for android mobiles even when the app is closed. I used Broadcast receiver to restart my service when killed. It restarts the scanning and it works only for some 15 seconds and then stops When i click button1 in {MainActivity} I started the service and have called startdiscovery() in startCommand method in {ExampleService} Please Help me in running the app in background MainActivity.java import android.Manifest; import android.app.ActivityManager; import

Buffered Reader for Android Streaming from Bluetooth

冷暖自知 提交于 2021-02-11 05:33:20
问题 Hey guys so I'm trying to read a stream from a bluetooth device continuously streaming integers like this: -11 121 123 1234 -11 I have everything working with some code I found online, but to do some of the processing the numbers need to be ints as opposed to Strings, parseInt is taking up too much CPU, and I tried using a buffered stream with no avail. Here is the current method: void beginListenForData() { final Handler handler = new Handler(); final byte delimiter = 10; //This is the ASCII

Android - Cannot find a device in onScanResult callback after successful connection

假装没事ソ 提交于 2021-02-10 16:48:22
问题 I'm scanning for BLE devices with my mobile. Whenever I get a callback of onScanResult I check if peripheral is iBeacon with specific minorId, if it is, I do device connection. Problem is that after successful connection onScanResult returns different devices around me, but none of them are the ones I just connected to. It's crucial for me to find connected devices in onScanResult . Is this normal behaviour? What could cause this? This happens when I connect to device - and only then. 回答1:

Decoding Bluetooth signal and packets using GnuRadio

和自甴很熟 提交于 2021-02-10 15:11:28
问题 I am currently working on a project which aim to detect Bluetooth and decode Bluetooth packets (I use a Hack RF One to make the detection). I have made a Gnuradio Flowgraph in order to demodulate Bluetooth signal and I am trying to decode visualy the packets by searching a Bluetooth frame on a binary file. Unfortunately, I didn't succeed to recover a clear view of the Bluetooth signal. To be precise, I am pretty sure that I detect Bluetooth on my sinks but when sending this to a Clock

Decoding Bluetooth signal and packets using GnuRadio

柔情痞子 提交于 2021-02-10 15:07:26
问题 I am currently working on a project which aim to detect Bluetooth and decode Bluetooth packets (I use a Hack RF One to make the detection). I have made a Gnuradio Flowgraph in order to demodulate Bluetooth signal and I am trying to decode visualy the packets by searching a Bluetooth frame on a binary file. Unfortunately, I didn't succeed to recover a clear view of the Bluetooth signal. To be precise, I am pretty sure that I detect Bluetooth on my sinks but when sending this to a Clock

Decoding Bluetooth signal and packets using GnuRadio

别等时光非礼了梦想. 提交于 2021-02-10 15:07:14
问题 I am currently working on a project which aim to detect Bluetooth and decode Bluetooth packets (I use a Hack RF One to make the detection). I have made a Gnuradio Flowgraph in order to demodulate Bluetooth signal and I am trying to decode visualy the packets by searching a Bluetooth frame on a binary file. Unfortunately, I didn't succeed to recover a clear view of the Bluetooth signal. To be precise, I am pretty sure that I detect Bluetooth on my sinks but when sending this to a Clock

Bluetooth 5.1 Angle of Arrival backward compatibility

流过昼夜 提交于 2021-02-10 12:46:50
问题 I am currently designing a simple indoor location project to evaluate possibilities of Bluetooth 5.1 standard. The feature I would like to use is AoA (Angle of Arrival) introduced in Bluetooth 5.1. According to the standard, AoA allows to measure position of a transmitting device (tx) by approximating the angle and measuring RSSI on a locator/receiver (rx). Since AoA is a feature newly implemented in 5.1, I understand that rx needs to support 5.1 Bluetooth standard. How about the transmitting