jieli-tech / android-jl_ota Goto Github PK
View Code? Open in Web Editor NEW基于杰理科技的RCSP协议实现的OTA流程封装库,便于用户快捷集成到Android应用。
License: Apache License 2.0
基于杰理科技的RCSP协议实现的OTA流程封装库,便于用户快捷集成到Android应用。
License: Apache License 2.0
虽然说上面这两个架构很少在手机上用,但存在极少部分手机使用这两个架构,谢谢你们了
能否留下钉钉群,加进去问一下问题
在Android平台,接入OTA库我看到需要传递设备的连接状态,其中设备参数类型要求必须是BluetoothDevice,但是我们项目中一直是用的蓝牙库使用的设备参数类型是BleDevice,类型不一致,像这种情况该如何处理,是否有转换的方法,感谢
请问,OTA什么时候会提供纯鸿蒙版SDK?
目前在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 studio 工程运行报错
Execution failed for task ‘:app:kaptDebugKotlin‘ 或 Execution failed for task ‘:app:kaptReleaseKotlin‘
报错原因是运行环境所导致?如果是请说明一下需要的环境配置
你好,板子上用的AC6925B,想用这个项目里面的android apk升级设备程序,是否可行。
烧写标准sdk程序,设备连接连搜不到设备,你们既然做了这种配套功能,可否把文档写的好一点
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.