Giter VIP home page Giter VIP logo

android-jl_ota's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

android-jl_ota's Issues

您好,再来打扰,关于自定义蓝牙协议有使用到其他服务和UUID,如何做兼容

目前在OTA开始就报错Send Command Fail, 我觉得是OTA的特征UUID没有设置, 我们自定义了蓝牙的其他功能,有使用到AE01以外的UUID来进行读写服务,我看到BleManager有设置了UUID,是下面代码里这样的,这里可以调整做到兼容两个服务UUID吗?

public void onServicesDiscovered(BluetoothGatt gatt, int status)

/ if (BLE_UUID_SERVICE.equals(service.getUuid())
// && null != service.getCharacteristic(BLE_UUID_WRITE)
// && null != service.getCharacteristic(BLE_UUID_NOTIFICATION)) {
// JL_Log.i(TAG, "start NotifyCharacteristicRunnable...");
// mNotifyCharacteristicRunnable = new NotifyCharacteristicRunnable(gatt,
// BLE_UUID_SERVICE, BLE_UUID_NOTIFICATION);
// mHandler.post(mNotifyCharacteristicRunnable);
// ret = true;
// break;
// }

public void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) {
if (mNotifyCharacteristicRunnable != null && BluetoothUtil.deviceEquals(device, mNotifyCharacteristicRunnable.getBleDevice())
&& serviceUuid != null && serviceUuid.equals(mNotifyCharacteristicRunnable.getServiceUUID())
&& characteristicUuid != null && characteristicUuid.equals(mNotifyCharacteristicRunnable.getCharacteristicUUID())) {
if (status == BluetoothGatt.GATT_SUCCESS) {
mNotifyCharacteristicRunnable = null;
startChangeMtu(gatt, BluetoothConstant.BLE_MTU_MAX);
} else {
int num = mNotifyCharacteristicRunnable.getRetryNum();
if (num < 3) {
mNotifyCharacteristicRunnable.setRetryNum(++num);
mHandler.postDelayed(mNotifyCharacteristicRunnable, 100);
} else {
disconnectBleDevice(device);
}
}
}

android apk是否可以用于升级程序

你好,板子上用的AC6925B,想用这个项目里面的android apk升级设备程序,是否可行。
烧写标准sdk程序,设备连接连搜不到设备,你们既然做了这种配套功能,可否把文档写的好一点

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.