Giter VIP home page Giter VIP logo

accessory-samples's People

Contributors

devunwired avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

accessory-samples's Issues

Usb accessory Troubleshooting.

Hi ,
I am trying to put Nexus 5 in usb accessory Mode using Raspberry Pi .
I am able to launch the app by using Intent and I am able to communicate with 0 endpoint as it is returning the version of Usb accessory mode i.e 2.0 but I am not able to communicate using bulk endpoint.
Same thing I have done with Motorola phone . I am able to communicate using Bulk endpoint.

Can we set 'deviceIdentifier' in BlePeripheralApplication?

This is not actually any issue, but I don't know where to ask question. Sorry for that.

My question is:

Can we set deviceIdentifier i.e. like a mac address to AdvertisingService. As I need to create a reconnect scenario in my central app to connect to a peripheral app. The deviceIdentifier keeps changing all the time when I restart the application or 'onPause() '-> 'onResume()' called.

Is there any other workaround to retry connection when broken without scanning again.

Notification Required a Descriptor for the characteristic

Without having a Descriptor, How the Notification will work ??

We had built a peripheral in iOS which simulate functionality of a LOCK , Reading and writing the characteristic working perfectly fine. But we are failing to get the notification when I connect to the peripheral using android as central. After Reading the doc, I could able to figure out issue was, we didn't had a descriptor for characteristic. How the iOS central receiving the notification ??? If descriptor filed was missing ???

But when I had checked this source, you are not creating any descriptor for the characteristic, still I'm getting notification. How this is possible ??

As per the Android doc, we have to do this to enable Notification.

mBluetoothGatt.setCharacteristicNotification(characteristic, enabled);
...
BluetoothGattDescriptor descriptor = characteristic.getDescriptor(
UUID.fromString(SampleGattAttributes.CLIENT_CHARACTERISTIC_CONFIG));
descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
mBluetoothGatt.writeDescriptor(descriptor);

Please share your thoughts on this ?

Thanks !!

Need Help

I'm developing bluetooth voice application. I don't know how to do HSP OR HFP profile . I searched on internet get some examples but not working ... I'm using CSR 8635 chip for bluetooth. I want how to stream Voice from android phone to that bluetooth and getting voice data from bluetooth to android phone to hear voice data like call mode ...

MainActivity:setNotifyNextSensor issue

Thanks for the code, Dave. Found one small, but consequential bug that prevents your state machine from completing, and resulting in a hung "Enabling Sensors..." progress dialog.

MainActivity:setNotifyNextSensor method, line 324

should break instead of return

CC2650 SensorTag got error of W/BluetoothGatt: Unhandled exception in callback

i am using CC2650 SensorTag, Same code of your repo

01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: Unhandled exception in callback
01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.bluetooth.BluetoothGattCharacteristic.getProperties()' on a null object reference
01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: at android.bluetooth.BluetoothGatt.readCharacteristic(BluetoothGatt.java:882)
01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: at com.sencerapp.MainActivity$3.readNextSensor(MainActivity.java:352)
01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: at com.sencerapp.MainActivity$3.onCharacteristicWrite(MainActivity.java:448)
01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: at android.bluetooth.BluetoothGatt$1.onCharacteristicWrite(BluetoothGatt.java:407)
01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:279)
01-04 18:19:09.191 24242-24668/com.sencerapp W/BluetoothGatt: at android.os.Binder.execTransact(Binder.java:453)

Legacy BLE and >= SDK 21 BLE

I have an app that currently works with BLE on < Lollipop devices. When I do the startLeScan with no UUID array it finds my BLE device just fine. If I pass the same service ID for that device into the startLeScan it doesn't find it.

This same thing works fine on a < Lollipop device. Should this work? I am asking you because you have your new Lollipop version of the BLE in your example and thought you would know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.