Parsing raw data received from bluetooth HDP device

前端 未结 6 1554
长情又很酷
长情又很酷 2021-02-01 00:02

I am trying to read data from an Omron 708-BT Blood Pressure Monitor which is certified by the continua health alliance. I am following this example of a Bluetooth HDP App. I am

6条回答
  •  醉梦人生
    2021-02-01 00:28

    you maybe should send the right device address in the data_AR back to the device - in your case: 002209225835c328

    therefor you should exchange:

    (byte) 0x00, (byte) 0x08,  //bt add for phone, can be automate in the future
    
    (byte) 0x3C, (byte) 0x5A, (byte) 0x37, (byte) 0xFF, 
    
    (byte) 0xFE, (byte) 0x95, (byte) 0xEE, (byte) 0xE3,
    

    with:

    (byte) 0x00, (byte) 0x08,  //bt add for phone, can be automate in the future
    
    (byte) 0x00, (byte) 0x22, (byte) 0x09, (byte) 0x22, 
    
    (byte) 0x58, (byte) 0x35, (byte) 0xc3, (byte) 0x28,
    

    and also use the 0x00 0x03 result = accepted-unknown-config like

    final byte data_AR[] = new byte[] {         
                 (byte) 0xE3, (byte) 0x00,
                 (byte) 0x00, (byte) 0x2C, 
                 (byte) 0x00, (byte) 0x03,
    

    EDIT:

    I made an Error - the Address is not the one of your BPM-DEvice but of your Phone... To get a EUI 64-Bit Address out of your 48bit MAC Address, just split it in the middle and add 0xFF 0xFE like: BT 48bit MAC [00:11:22:33:44:55] becomes

    EUI 64 Bit [00:11:22:FF:FE:33:44:55] 
    

    I am very sorry

提交回复
热议问题