mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12NextPage
backToList newPost
view: 407|reply: 17
打印 prevThread nextThread

调试蓝牙手环配套智能安全帽的通信代码

[copyURL]

4

主题

19

帖子

66

积分

member

Rank: 2

积分
66
jumpTo
owner
poston 2024-7-19 09:41 | authorOnly 回帖奖励 |viewing |阅读模式
我们在调试蓝牙手环配套智能安全帽的通信代码,您好,我消息可以发送成功但是收不到返回的包信息
byte[] requestRealTimeHeartRateData = new byte[]{
        0x68, // 包头
        0x06, // 功能码:获取实时数据
        0x01, 0x00, // 载荷长度
        0x00, // 请求实时心率数据
        0x6F,// 校验码
        0x16 // 包尾
};

这是我发送的消息,获取实时心率的,不知道有没有问题,我上午再试下别的消息
reply

使用道具 report

3

主题

350

帖子

1833

积分

vipMem

Rank: 6Rank: 6

积分
1833
18#
poston 2024-7-26 21:25 | authorOnly
C5不支持血压
reply agree Against

使用道具 report

4

主题

19

帖子

66

积分

member

Rank: 2

积分
66
17#
 Owner| poston 2024-7-24 19:42 | authorOnly
请问下data: 68 AA 0A 00 00 1E 02 04 00 76 44 4B 61 00 A6 16
在测血压的时候传回这串数据,但是没找到功能码是0XAA的,请问下这是什么原因
reply agree Against

使用道具 report

1

主题

316

帖子

1129

积分

vipMem

Rank: 6Rank: 6

积分
1129
16#
poston 2024-7-22 16:11 | authorOnly
写了一个demo,你测试下。

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

4

主题

19

帖子

66

积分

member

Rank: 2

积分
66
15#
 Owner| poston 2024-7-22 10:53 | authorOnly
我的几个服务id和特征值的uuid没有写错吧?现在就是一点点在排查了
reply agree Against

使用道具 report

4

主题

19

帖子

66

积分

member

Rank: 2

积分
66
14#
 Owner| poston 2024-7-22 10:25 | authorOnly
besovideo post on2024-7-22 10:21
可参考这个代码,https://imyfit.github.io/imyfit

这上面没找到代码,之前已经看过了。这就是api开发文档,还是我没找对吗?
reply agree Against

使用道具 report

60

主题

1423

帖子

5879

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5879
13#
poston 2024-7-22 10:21 | authorOnly
可参考这个代码,https://imyfit.github.io/imyfit

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

4

主题

19

帖子

66

积分

member

Rank: 2

积分
66
12#
 Owner| poston 2024-7-22 10:13 | authorOnly

是,设备是c5
reply agree Against

使用道具 report

60

主题

1423

帖子

5879

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5879
11#
poston 2024-7-22 10:10 | authorOnly
手环是C5
reply

使用道具 report

4

主题

19

帖子

66

积分

member

Rank: 2

积分
66
10#
 Owner| poston 2024-7-21 18:53 | authorOnly

BluetoothGattService heartRateService = gatt.getService(SERVICE_UUID_COMMUNICATION);
                if (heartRateService != null) {
                    BluetoothGattCharacteristic heartRateCharacteristic = heartRateService.getCharacteristic(CHAR_UUID_RECEIVE);
                    gatt.setCharacteristicNotification(heartRateCharacteristic, true);
                    BluetoothGattDescriptor bluetoothGattDescriptor = heartRateCharacteristic.getDescriptor(CHAR_UUID_RECEIVE);
                    if (bluetoothGattDescriptor != null) {
                        bluetoothGattDescriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
                        bluetoothGatt.writeDescriptor(bluetoothGattDescriptor);
                    } else {
                        // 处理bluetoothGattDescriptor为null的情况
                        Log.e(TAG, "Descriptor not found for characteristic");
                    }
//private static final UUID SERVICE_UUID_COMMUNICATION = UUID.fromString("0000FFF0-0000-1000-8000-00805F9B34FB");
   //private static final UUID CHAR_UUID_RECEIVE = UUID.fromString("0000FFF1-0000-1000-8000-00805F9B34FB");
reply agree Against

使用道具 report

QQ|wireless surveillance

GMT+8, 2024-9-19 09:00 , Processed in 0.067385 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList