Menu
  • HOME
  • TAGS

calling a method outside Onclick listener method in android app

android,bluetooth,arduino

onCreate() is called before onResume(). The way you have it coded currently your outstream is null. Look at the Android lifecycle. http://www.javatpoint.com/android-life-cycle-of-activity...

Bluetooth LE app, how to build it cross-plaftorm (iOS-Android)?

android,ios,cordova,bluetooth,bluetooth-lowenergy

I have been using Randdusing's Cordova plugin for BluetoothLE and it works well for Android and iOS (Windows phone still under development). Being Cordova it's designed to work with an HTML5/JavaScript app, but the plugins themselves (as all Cordova plugins?) are written in native code . Earlier in my project...

Difference between attributes and services in BLE

bluetooth,bluetooth-lowenergy

In summary ... services, characteristics and descriptors ... are attributes :-) The BLE standard provides the ATT protocol that defines the concept of attributes. All attributes are defined inside a table and they have an handle, a type (with an UUID), a value (and permissions). On top of ATT protocol...

How to detect with CoreBluetooth when a peripheral disappears?

ios,bluetooth,core-bluetooth,cbcentralmanager

The OS will cache discovery of devices. I.e. you will only get one "discovery" event per device. To continuously get discovery events while the peripheral is advertising, you must use the following option: CBCentralManagerScanOptionAllowDuplicatesKey A Boolean value that specifies whether the scan should run without duplicate filtering. The value for...

Xamarin iOS Bluetooth Low Energy - CBPeripheral.UpdatedCharacteristicValue reading TX characteristic shows unexpected data

ios,bluetooth,xamarin,bluetooth-lowenergy,cbperipheral

AHA! I figured it out! The problem was that I need to set the notify value for the appropriate characteristics. After doing that, I didn't need to call CBPeripheral.ReadValue(CBCharacteristic). selectedPeripheral.DiscoveredCharacteristic += (sender, e) => { if (truConnect != null && truConnect.Characteristics != null) { foreach (CBCharacteristic c in truConnect.Characteristics) {...

Bluetooth Shield V2.2 for arduino

ios,bluetooth,arduino,uuid,arduino-uno

1) Try to "scan" available Arduino board with BLE Shield - for example here is an existing iOS app https://itunes.apple.com/us/app/ble-arduino/id547628998?mt=8 2) check your device's documentations 3) try those UUID's https://github.com/michaelkroll/BLE-Shield/blob/master/firmware/BLE-Shield-v2.0.0/BLE-Shield_gatt.xml...

Beacons in Windows Phone 8.1 - there are no possibilities?

c#,bluetooth,windows-phone-8.1,bluetooth-lowenergy,ibeacon

While I have not tried it yet, there a developer has built an HCI layer to talk directly to bluetooth dongles on pre-Windows 10 machines. It is available here: WinBeacon This will only work on desktop machines, and not with mobile phones. If you are interested in mobile phones with...

How much memory does Bluetooth Low Energy device has

bluetooth,bluetooth-lowenergy,ibeacon,altbeacon

Device memory is not what limits the Bluetooth LE advertisement size. The limitation is imposed by the Bluetooth 4.0 Core specification, which allows for a maximum of 28 bytes in a manufacturer advertisement PDU (including the one-byte PDU length field). While you can't transmit more data in a single advertisement,...

Bluetooth.ACTION_FOUND not registering

android,bluetooth

I believe the ACTION_FOUND event only fires when you are running device discovery with the intent to pair your device to another. It would not fire when an already paired device comes back into range. Unfortunately, there does not appear to be an event for the case that you want....

Windows Phone 8.1 Connect to Pebble via Bluetooth Rfcomm

c#,bluetooth,windows-phone-8.1,pebble-watch

I found a solution, just replace service id by 00000000-deca-fade-deca-deafdecacaff

Can I use the Android Bluetooth API on regular Linux distros?

android,linux,bluetooth,android-bluetooth

Is it possible to use the Android Bluetooth API on a regular Linux distribution (eg Ubuntu, or Raspbian) ? If by "the Android Bluetooth API" you mean the Java classes in the Android SDK, then no, you cannot just grab them and use them on Linux, OS X, Windows,...

Receive the actions of a headset in Android

android,groovy,bluetooth

Instead of def action = event.action try this instead: def action = event.keyCode ...

Is Android BluetoothLE support two way communication between glass and mobile?

android,bluetooth,bluetooth-lowenergy,android-bluetooth

Yes it is possible. First, decide which device is Central; usually the smartphone should be, as it's got more resources and power. Then when the two connect, their GATT roles (Client and Server) are interchangeable at any time, because GATT roles are independent of GAP roles (Central and Peripheral). Simply...

Mindwave device validation in Visual Studio recognizes which COM port it's on, does not connect with device

c#,visual-studio,bluetooth

You should see Mindwave in your device manager (in COM Ports) as MindWave USB Adapter. If not, it is problem with driver I think. If you are using windows 8 system the MindWave USB Adapter is often overwriting to CH340. Look at this: Neurosky. You should also remeber to pair...

How can I maintain the whitespace of a command's results in a linux dialog inputbox?

bash,bluetooth,dialog

You might find something like this to be a helpful starting point. You will need to add error handling, etc # Need a file to capture output of dialog command result_file=$(mktemp) trap "rm $result_file" EXIT readarray devs < <(hcitool scan | tail -n +2 | awk '{print NR; print $0}')...

Why are my object's fields set to default after deserializing with objectInputStream.readObject()?

java,android,bluetooth

If it wasn't the first time you wrote this MyObject to the stream, you will need to use ObjectOutputStream.reset() between writes, or ObjectOutputStream.writeUnshared(). See the Javadoc for why. NB your loop should terminate when you catch EOFException, and probably on any other IOException as well....

Virtual serial port over BLE + ios?

ios,bluetooth,bluetooth-lowenergy,spp

By "ble module" do you mean something like the HM-10 or HM-11 etc? If that's what you're talking about then you can just use the SDK from RedBearLab (they use the same chips from TI). in their BLEDefines.h just change the defines to #define RBL_SERVICE_UUID "FFE0" #define RBL_CHAR_TX_UUID "FFE1" #define...

Start bluetooth adapter without pop up

java,android,bluetooth,android-bluetooth

If you want to enable bluetooth without using an Intent, you can try this: BluetoothAdapter.getDefaultAdapter.enable(); you also need to add the BLUETOOTH and BLUETOOTH_ADMIN permission to your manifest file....

Converting sensordata from arduino in java

java,bluetooth,weka

I have had similar issue, I solved it like this, you can change it to fit your requirement: public class SerialDataReader { static SerialPort serialPort; private static final int DATA_RATE = 9600; private static final String PORT_NAME = "COM4"; public static void main(String[] args) { SerialDataReader serialDataReader = new SerialDataReader();...

Bluetooth classic connection awareness

ios,objective-c,bluetooth,bluetooth-lowenergy,core-bluetooth

Whilst CoreBluetooth is used for accessing Bluetooth LE or 4.0 devices you can use the ExternalAccessory framework to communicate with other bluetooth devices. Like so: - (void)registerForNotifications { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(accessoryDidConnect:) name:EAAccessoryDidConnectNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(accessoryDidDisconnect:) name:EAAccessoryDidDisconnectNotification object:nil]; [[EAAccessoryManager...

Send data from an android app to a Serial COM Port via Bluetooth

android,bluetooth,port

I had actually 2 problems going on : I had to go in the settings of my Bluetooth dongle and create a Bluetooth COM Port associated with it I had to change in the code the UUID (Universally Unique Identifier): the UUID for the SPP (Serial Port Service) is defined...

IOS App : Is it possible to have 2 Bluetooth connections in one app?

objective-c,iphone,xcode,bluetooth,bluetooth-lowenergy

Yes you are able to connect to multiple BLE chip bearing devices using the Core Bluetooth framework.

Android Lollipop - Service Intent must be explicit

android,android-intent,service,bluetooth,android-5.0-lollipop

Your onReceive() method does this: public void onReceive(Context context, Intent intent) { context.unregisterReceiver(intentReciever); context.stopService(intent); // If I remove this, I get multiple returns, but if I leave it - it crashes :( } This calls stopService() using the Intent that the BroadcastReceiver is started with (the broadcast Intent). If you...

Android reconnect to bluetooth device if connection lost

java,android,bluetooth,android-broadcast,android-bluetooth

I solved this in 2 stages. First I created a new broadcast reciever because my existing one was for ACTION_BOOT_COMPLETED and had to be declared in the android manifest. The one I created had to be dynamic because I needed an instance of MainActivity: if (bluetoothLostReceiver == null) { bluetoothLostReceiver...

Bluetooth LE Java byte array size on characteristic setValue

java,android,bluetooth,bluetooth-lowenergy

To be able to use byte values above 127 in java, use (byte)0xEA.

BluetoothAdapter.getDefaultAdapter(); returns null

android,bluetooth,initialization,adapter

Replace your code line, @Override protected void onCreate(Bundle savedInstanceState) { ... ... BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); with btAdapter = BluetoothAdapter.getDefaultAdapter(); its all about local variable and Class level variable. You are getting Bluetooth adapter in onCreate as local variable and accessing outside of onCreate() the class level variable which is...

Smart Bluetooth: GATT Vs. ATT - what are the differences between them?

bluetooth,bluetooth-lowenergy,att,gatt

ATT is a much lower level mechanism that basically defines how to transfer a unit of data (an attribute). GATT is built on top of ATT and defines how higher level services are composed and the framework for operating on those services.

My bluetooth connected with nokia but not connected with android

android,bluetooth,project

It looks like you are not correctly using createRfcommSocketToServiceRecord(). Before you use that method, you need to pair your mobile device with the device with which you want to communicate. You should read http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createRfcommSocketToServiceRecord(java.util.UUID). You could try using createInsecureRfcommSocketToServiceRecord() to verify that you don't have some other issue. But I...

Bluetooth: how to send large files

bluetooth

This depends on the profiles that are implemented. OPP - Object Push Profile can send files, but this is often limited to V-cards and in some case images. FTP - File Transfer Profile can send larger files. There is no specific application needed, you should be able to do it...

Beacon Bluetooth adddress in AltBeacon vs. BluetoothAdapater address

android,bluetooth,altbeacon

What kind of beacons are you using (manufacturer)? The advertising MAC address is a spoofed address so it definitely is possible that you get different values. There even are manufacturers (e.g. Gimbal) that built in a MAC address rotation so the receiving device will not be able to identify the...

Android Development: Discovery of other devices using my app over Bluetooth

android,bluetooth

As far as limiting the discovery, this seems not possible at this point in time. The only way I can think of where this would really be possible is if their device name had a particular string in it that you used to filter, but this isn't really something I...

BlueZ scotest App and with Linux Config Can't Connect to SCO Socket

linux,bluetooth,linux-kernel,kernel,bluez

The problem was not the configuration of the Kernel but rather the set of drivers I was using. I had compiled the linux backports ( http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/) version of the bluetooth drivers, because I needed the backported wifi drivers, and that gave me the Protocol Not Supported (93) error. I switched...

UART buffer not raising a flag on PIC24F

c,bluetooth,uart,microchip,pic24

The UART initialization code was missing this line: AD1PCFG = 0xFFFF The ADC flags have priority over UART. This line disables them....

how to implement OnItemClickListener in this code?

java,android,bluetooth

You can just do like this - mListView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Toast.makeText(getApplicationContext(), " ITEM CLICKED POSITION = "+String.valueOf(position), Toast.LENGTH_SHORT).show(); } }); ...

android.provider.Settings.ACTION_BLUETOOTH_SETTINGS crashes on Samsung

android,bluetooth,samsung-mobile

If you have an app in production, you need to have something that will allow you to get crash logs. That could be the default stuff that you get from shipping through the Play Store, or an open source solution like ACRA, or any number of service providers. With regards...

Bluetooth Related Linker Errors in XCode 6.1.1

ios,xcode,bluetooth,compiler-errors,linker-error

I haven't done Bluetooth related development on IOS but the messages might be related to the missing Bluetooth framework in the project files. Have you added them ? IOBluetooth.framework IOBluetoothUI.framework

BluetoothProfile of Paired android device

android,bluetooth

the bluetooth profile or service associated with the BluetoothDevice can be found by boolean hasLatestUuids=device.fetchUuidsWithSdp(); if(hasLatestUuids){ /*getUuids() return cached uuids so we need to make an sdp request to get refresh uuid associated with the device*/ ParcelUuid[] uu=device.getUuids(); for(ParcelUuid u:uu){ Log.e("found","uuid "+u.getUuid()); } } we can also make request via...

Process the data received from bluetooth on android device

android,bluetooth

1, graph the data: you can use java canvas methods or some library like http://www.android-graphview.org/ (which most likely uses canvas methods due to bad svg performance on mobile devices), or svg 2, only show data in xxx range: don't really get the question... why not simply drop the values on...

Basic Serial-Communication over Bluetooth (Cmd Syntax Issue?)

android,serialization,printing,bluetooth,adapter

Clearly, it is a command syntax issue. Sending only $ will print some total-sum-value that is internally stored in the 560 indicator device (titled "Total: "). Sending %! prints a predefined custom-header. Judging from my experiments, I don't need any "beginning" or "ending" characters/bytes in the syntax. The firefly adapter...

How do Bluetooth SDP and UUIDs work? (specifically for Android)

android,bluetooth

An UUID identifies a service that is available on a particular device. So if you call BluetoothDevice.fetchUUidsWithSdp() your BroadcastReceiver will receive the relevant Intent ACTION_UUID containing the device and the service UUID. The bluetooth specification defines some common UUIDs. If you don't want to connect to one of these well...

Why does Android Wear bluetooth disconnect after some time - btm_sec_disconnected?

android,bluetooth,android-wear

Ok, found the answer. The external bluetooth module kept resetting itself because of some circuit issues. The reset caused the connection to be lost momentarily.

didExitRegion not fired when turn off bluetooth

ios,objective-c,bluetooth,core-location,ibeacon

For testing purposes you must turn off your beacons or move out of range to get a didExitRegion event. Once CoreLocation has determined it is inside a CLBeaconRegion it will only change state to being outside the region after it has a chance to do a Bluetooth scan for 3...

Writing is not permitted error when attempting to subscribe to CBCharacteristic

ios,objective-c,bluetooth,bluetooth-lowenergy,core-bluetooth

For future reference if anyone comes across this problem, it was to do with the device's credit characteristic. The service which I was interested in exposed two characteristics a credit characteristic and a FIFO characteristic. (I understand that a credit characteristic is standard issue.) The problem was that I had...

How to extract data from Bluetooth packet data?

android,bluetooth,wireshark

From a quick look at that log, there's little if any "plain text data" in the log to extract! It is, not surprisingly, mostly binary-encoded packet data. The only way you'll get "plain text" out of it is if you ask Wireshark to export the packet dissections as text, so...

iOS Bluetooth delegate connect function not being called

ios,swift,bluetooth

From your code it looks like you haven't started scanning for peripherals. Once you have confirmed that your central is in powered on state from centralManagerDidUpdateState method you should start scanning for your peripherals. (The bluetooth devices you connected from bluetooth settings panel are irrelevant. You can't have access to...

Object push to bluetooth without pairing

bluetooth

Yes and no. If you are actually talking about connecting but not pairing, then, yes. If you are talking about no connection at all, then no. When creating a Bluetooth connection between two or more devices the following steps are taken. Inquiry – If two Bluetooth devices know absolutely nothing...

CoreBluetooth Framework: How to obtain connected devices without knowing the Service IDs?

ios,bluetooth,core-bluetooth

Don't worry about the UUID that starts with 4EFF - this is the UUID of the device and will be different for each one. The service id is FF20 - You can use this in scanForPeripheralsWithServices - this is SERVICE_ID in your code above. Then you have two characteristics- FF21...

Prevent disconnection of Bluetooth LE Service

android,bluetooth,bluetooth-lowenergy

The log you posted are just losing the ServiceConnection, which is used to connect your Activity to your Service object by bindService. Beware it's Android Service object but not BLE service implemented in the peripheral. This has nothing to do with BLE connection, probably your background Activity just get killed...

Custom Bluetooth message mBluetoothAdapter

android,bluetooth

You should create your own dialog with your own message and than call BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); mBluetoothAdapter.enable(); And do not forget to declare the BLUETOOTH_ADMIN permission in your manifest. However, this operation is discouraged... The enable() method is provided only for applications that include a user interface for changing...

CoreBluetooth and BluetoothManager, device is not BLE

ios,objective-c,swift,bluetooth,bluetooth-lowenergy

To communicate with lower versions of Bluetooth you need to use ExternalAccessory framework, but it is for MFi devices, so I guess you need to sign to Apple MFi Program: https://developer.apple.com/programs/mfi/ This answer describes possible ways of working with Bluetooth on iOS: http://stackoverflow.com/a/16852224/4495995...

Getting Android Bluetooth Adapter Name from JNI/C++

android,c++,bluetooth,android-ndk,jni

First of all, you need to have permission to read this value (which you would need regardless of it being native). Add to AndroidManifest.xml: <uses-permission android:name="android.permission.BLUETOOTH"/> In native jni-land, things are a bit cumbersome. In short, this is what you need: Get class android.bluetooth.BluetoothAdapter Get static method BluetoothAdapter.getDefaultAdapter() Get method...

writeCharacteristic() returns true, but does not call onCharacteristicWrite()

android,bluetooth,bluetooth-lowenergy

Such a rookie mistake. As I've not experimented with writing data before I assumed something was wrong with the writing process or the device. After looking at the kinds of data coming from by readCharacteristic() and by asking around about the device I am sending to, I started to realise...

Core Bluetooth - Unable to Write Value using CBCharacteristicWriteType.WithResponse

ios,swift,bluetooth,core-bluetooth

You need to examine the properties of your CBCharacteristic on your CBService - If CBCharacteristicPropertyWrite is specified then the characteristic supports write with a response. If only CBCharacteristicPropertyWriteWithoutResponse is specified then you can't execute a write with response. To change this you will need to modify the firmware in your...

Handle Android Bluetooth LE Disconnect Notification

java,android,eclipse,bluetooth

You have generally two ways... Simpliest way will be register receiver in all your activities. You may add custom Application class (or just singletone object) which implements Observer pattern, and subscribe on it in every activity. (subscribe in OnResume, unsubscribe in onPause) In my apps, I prefer first way, because...

How deploy an large number iBeacons

bluetooth,raspberry-pi,bluetooth-lowenergy,uuid,ibeacon

Bluetooth beacons (iBeacon and AltBeacon) have a three part identifier: ProximityUUID (16 bytes) Major (2 bytes) Minor (2 bytes) There are 8 bits per byte, so if you give all your beacons the same ProximityUUID, you can have 8*2*2=32 bits worth of combinations. That's 2^32 = 4,294,967,296 combinations. If you...

Using IPEGA bluetooth gamepad with Retropie

bluetooth,raspberry-pi,emulation,bluez

Finally I found a solution: I installed the last Retropie 3.0 BETA version. It has the bluetooth manager integrated and you will need only some few steps to configure your Ipega PG-9025: 1) First time you'll need to pair your Ipega with Raspberry (once is done, no need to do...

Phone Bluetooth Wireless Microphone [closed]

python,audio,bluetooth,microphone

Have you done any network programming before? From what I've read bluetooth comm is a "simple" a client/server setup. So basically you will: Connect (pair?) a server (your pc) to a client (your phone) via bluetooth Pass data from your phone to your server Take the incoming data and convert...

Bluetooth HCI snoop log not generated

android,bluetooth,android-4.4-kitkat,android-bluetooth,s5

According to my experience the Bluetooth HCI snooping feature requires your device to be rooted. On my rooted Samsung Galaxy S GT-I9000 it works fine while on my non-rooted Galaxy S3 Neo this feature does not work. Moreover, you should make sure that you have not accidently deleted the file....

HDP android implementation

android,bluetooth,android-bluetooth,bluez

Device codes not the same in android code and in Antidote. In Antidote pulse-oximeter is 0x0190, but in android it must be 0x1004.

What's the purpose of “Bluetooth snoop logging” option on Android Wear devices?

android,bluetooth,android-wear

It creates a log file of all the Bluetooth traffic to and from your device, for analysis purposes. Edit: Adding @BrentM's comment: The log file is saved to /sdcard/btsnoop_hci.log. Take a look at this question, it is not specifically for wear, but wear should follow the same work flow: Sniffing/logging...

Ble Scan service of a device without connecting to it

java,bluetooth,bluetooth-lowenergy,device,android-bluetooth

I am not with the android background, but I have understanding of how BLE works. The characteristics Device Name, UUID=0x2A00 is bundled into GAP (Generic Access), UUID = 0x1800. The GAP is always broadcasted within the advertisement packet from the GATT Server. A GATT Client should run a discovery scan...

Bluetooth pairing - how to show the simple Cancel/Pair dialog?

android,android-intent,bluetooth,android-bluetooth,bluetooth-oob

You are being prompted for entering the pin because that is what you are requesting in your pairingIntent. Instead of using pairingIntent.putExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, BluetoothDevice.PAIRING_VARIANT_PIN); pairingIntent.putExtra(BluetoothDevice.EXTRA_PAIRING_KEY, 1234); Use pairingIntent.putExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, PAIRING_VARIANT_PASSKEY_CONFIRMATION); As mentioned here, The user will be prompted to confirm the passkey displayed on the screen or an app will confirm the...

Send a Android BLE GATT Notification

android,bluetooth,notifications,bluetooth-lowenergy

Technically, there is a difference between the Central/Peripheral classification, which belongs to the GAP, and the Client/Server one, which belongs to the GATT. A Central (one that scans and connects) is usually a Client, and the Peripheral (one that advertises) is usually a Server, but not necessarily. The smartphone is...

Can I receive more bytes in one transfer from this c# to android device?

c#,android,json,bluetooth

You need to read until all data is received, you're only reading from the stream once, thus end up with part of the data. You're partially doing this in the while(true) loops, but you don't know when you have a complete data transfer like you've found out. From the c#...

Exception when connecting to device

c#,bluetooth,32feet

Yes you should close the connection and dispose the BluetoothClient. private InTheHand.Net.Sockets.BluetoothClient BTClient = new InTheHand.Net.Sockets.BluetoothClient(); private System.Net.Sockets.NetworkStream stream; //Somewhere on the code: stream = BTClient.GetStream(); public void Disconnect() { if (BTClient == null ) return; try { if (BTClient != null) { if (stream != null) { stream.ReadTimeout =...

BlueZ on i.MX25 : Can't connect RFCOMM socket: Operation now in progress

linux,bluetooth,embedded-linux,bluez,rfcomm

It turns out the target device was requesting authentication from my i.MX25 board. Usually, PIN code handling is done by using bluetooth-agent. But this agent wasn't actually installed on the board (I thought it was...), so I had to manually provide the requested PIN code. This is how I did...

Bluetooth mobile streaming/hotspot functionality

android,ios,bluetooth

For bluetooth, the answer is no for iOS on all questions. For bluetooth on Android, the answer is yes to both questions. The android bluetooth documentation has step-by-step instructions for each process of bluetooth. Here's the link to the docs: http://developer.android.com/guide/topics/connectivity/bluetooth.html#Permissions...

Displaying a list of paired bluetooth devices in a popup dialog - setAdapter null pointer exception

java,android,bluetooth

You have to get your ListView from your inflated layout ViewLayout in showBTDialog like that: myListView = (ListView) ViewLayout.findViewById(R.id.BTList); Or isn't this what you wanted to do?...

How to request Android user to enable Bluetooth through a click?

android,bluetooth

Did you set proper permissions in your AndroidManifest.xml file? For sure, you will need BLUETOOTH permission. <manifest ... > <uses-permission android:name="android.permission.BLUETOOTH" /> ... </manifest> In addition, as documentation says: If you want your app to initiate device discovery or manipulate Bluetooth settings, you must also declare the BLUETOOTH_ADMIN permission. If...

Change bluetooth mac address in Raspbian

bluetooth,raspberry-pi,raspbian

The bdaddr utility is not part of the bluez package because it uses manufacturer specific code and as such does not work on all devices. http://ubuntuforums.org/archive/index.php/t-925611.html...

Unable to make client server Bluetooth serial connection between Android phone and PC

java,android,bluetooth

The SPP profile that supports serial connection is not related with your Operative System but with the Bluetooth module installed in your PC. Knowing that your system is Windows 8, I guess your PC is relative new so surely comes with the new Bluetooth modules that doesn't support SPP. You...

Thread, Asynctask or intentService for my app?

android,multithreading,service,android-asynctask,bluetooth

AsyncTask should be used when you have to perform a short-lived operation on a separate thread and post the final result on the main / UI thread, which is not the case with your app I believe. Service should be used to perform long-running tasks which take place in the...

Android bluetooth socket timeout

android,bluetooth

You can't change timeout of BluetoothSocket.connect(). As documentation: This method will block until a connection is made or the connection fails. If this method returns without an exception then this socket is now connected. A workaround. Ex: timeout 5s. Using CountDownTimer to check if connect is complete(success or fail). After...

Issue in Bluetooth pairing

bluetooth,embedded,windows-ce,windows-embedded-compact,hci

It all got to do with SSP(Secured Simple Pairing), which decides the pairing authentication model. This is affected in WEC8(2013) through the changes under bthsettings. Under WEC8 they disable SSP(via function EnbaleSSP()) whenever a connection is initiated from external device and enable back SSP when conenction is initiated internally....

Is there a way to change bluetooth module's baud rate via Bluetooth connection with Android device?

android,bluetooth,spp

Without a specific module, I can only provide a response regarding modules in general. Most modules have an embedded command language for configurations and operations. Most likely, your module will have a command to change the baud rate. Some but not all, modules provide a method for receiving these commands...

BlueZ Bluetooth API and distance calibration precision

c,bluetooth,bluetooth-lowenergy,bluez

hci_read_rssi is probably not what you want. It's not the actual remote RSSI. From the BT spec section describing the HCI_Read_RSSI command: The RSSI parameter returns the difference between the measured Received Signal Strength Indication (RSSI) and the limits of the Golden Receive Power Range for a Connection Handle to...

App Hanging on “let SKView as! SKView” (Swift)

ios,swift,bluetooth,xcode6

Your class GameViewController is of class UIViewController. UIViewController's view property is of class UIView, not SKView. So when you write let skView = self.view as! SKView you are saying, hey, I know for sure that my self.view is supposed to be of SKView type, as indicated by the as!. But...

default location for sqlite databases on an android device is not displaying my database

android,mysql,sqlite3,bluetooth

For security purposes you cannot access the database directly on an Android device. But in case you are testing on an emulator you will be able to see the database from File explorer(Eclipse). Steps: Go to to Window > Show View > Select File Explorer(in case its not there in...

BluetoothAPIs.h syntax error

c++,bluetooth,header-files

When you say "The .h file I taked from Microsoft SDK.", do you mean: a) SDK is installed on my machine and accessible in my IDE? b) I picked up this file only? If b) then you're missing a lot of files... the first occurence of the macro __checkReturn is...

How to detect if a bluetooth headset plugged or not IOS 8?

bluetooth,ios8,headset,audiosession

I was able to detect whether a bluetooth headset (HFP) device was currently connected using the following: NSArray *arrayInputs = [[AVAudioSession sharedInstance] availableInputs]; for (AVAudioSessionPortDescription *port in arrayInputs) { if ([port.portType isEqualToString:AVAudioSessionPortBluetoothHFP]) { bHas = YES; break; } } However, your AVAudioSession category must be set as AVAudioSessionCategoryPlayAndRecord in order...

Global name 'bluetooth' is not defined

python,data,bluetooth,connect

Hopefully this will help: http://lightblue.sourceforge.net/ This is an API for python's bluetooth feature...

Bluetooth connections on iOS

android,ios,bluetooth,android-bluetooth,ios-bluetooth

I published a demo app called Beetee which shows how Bluetooth classic is working on iOS and what the global events are. But this private framework is not AppStore complaint!

Bluetooth HC-05 Master - connect to Android device automatically

java,android,bluetooth

Solution can be found here: HC-05 Bluetooth module - Master mode - Find paired android device (not discoverable) But the android device has to be discoverable!...

Android Bluetooth- MAC address

java,android,bluetooth,android-bluetooth

In Android, after starting a bluetooth device scan, we get the address of remote bluetooth devices, as a broadcast message on a BroadcastReceiver we have registered. Below code sample does that. //receive remote device details including address BroadcastReceiver mReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) {...

Why won't my cross-compiled CGO binary run on the Raspberry Pi (Raspbian)?

go,bluetooth,raspberry-pi,raspbian,cgo

So let me answer my own question by concluding, after weeks of trial and error, that… …it just doesn't work. As a last resort, I tried taking the very same Raspbian image that I used to compile the above code, and running it with QEMU. And guess what: I get...

Bluetooth: how to let ios attempt “App Not Installed”

ios,iphone,ipad,bluetooth

The alert you have shown is triggered when an MFi device is detected for which the app isn't installed. MFi devices have an Apple 'chip' in them that presents an identity that iOS can use to identify the appropriate apps in the App Store. BLE devices are excluded from the...

How to define chrome.bluetooth successfully?

javascript,google-chrome,bluetooth,bluetooth-lowenergy

The missing link was that the HTML and JavaScript described by the manifest.json must be installed as a chrome extension. The easiest way to achieve this is to download a zip of the app from github, unzip it to downloads, and then: click menu/more tools/extensions click developer mode checkbox click...

Multiple CBCentralManager instances?

ios,bluetooth,core-bluetooth

As of iOS 8.3, it appears that creating a second CBCentralManager instance will cause the second instance to report its state as CBCentralManagerStateUnsupported (2). Therefore, multiple instances of CBCentralManager are not supported.

Android ble app crash if bluetooth is turned off in android lollipop

android,bluetooth

The correct approach would be before starting the scan we have to check BluetoothLeScanner object null or not like we check for BluetoothAdapter Sample if(bluetoothLeScanner != null){ bluetoothLeScanner.startScan(filters,settingsBuilder.build(),scanCallback); } ...

How to connect android device via bluetooth with matlab 'Instrument Control'-Toolbox?

android,matlab,sockets,bluetooth,serial-port

Solution Here 'activate bluetooth spp in android' it says: On the Android phone you will probably need to run an application that initiates the service over SPP. You need to listen for incoming connection requests, therefor you should use this function: listenUsingRfcommWithServiceRecord(String, UUID) Here you can find some examples: connecting...

Connecting multiple wireless devices to one main device using bluetooth

ios,iphone,bluetooth

iPhones music app can only output to one bluetooth speaker at a time. Either the software would need to support multiple outputs or the speakers would need to have a feature to pair with each other. So it is technically possible, but not supported by iOS' music app, nor do...

Bluetooth Low Energy: gattCharacteristic.getDescriptor() returns null

android,bluetooth,bluetooth-lowenergy,descriptor,characteristics

The uuid for notification descriptor is "00002902-0000-1000-8000-00805f9b34fb" instead of the "00000001-0000-1000-8000-00805f9b34fb" in your code.

Send & receive data simultaneously over Bluetooth

android,bluetooth,arduino,android-bluetooth

see Bluetooth Chat developer.android.com/guide/topics/connectivity/bluetooth.html Thank's everyone for help

Can Pyudev detect bluetooth devices?

bluetooth,device,pyudev

udev (and thus pydev) is only meant to tell you about devices on the local system. It can't tell you about remote devices.