This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

requestAttMtu gets NRF_ERROR_INVALID_PARAM

I am working on a linux vm 16.04 and playing with the pc-ble-drive-js library.  I recently got the board up and running and started looking at the heart_rate_collector example to get my bearings.  I already have a solution with our device written in python but I would like to be able to work with larger packets and thought the nordic solution might work better.  I modified the heart_rate_collector to use my device and once it is ready to take a sample I pass in a requestAttMtu call.  I receive the NRF_ERROR_INVALID_PARAM error code, but I am not sure what is being passed in in error since both my connection handle and mtu value are correct.  Below is some output with my device information and the error.  Let me know if more information will be useful.

ble device: NRF52832
device: /dev/ttyACM0
version: v3

Device {
_instanceId: 'D8:34:CF:9D:7B:38.0',
_address: 'D8:34:CF:9D:7B:38',
_addressType: 'BLE_GAP_ADDR_TYPE_RANDOM_STATIC',
adData: {},
name: null,
_role: 'peripheral',
services: [],
flags: [],
scanResponse: null,
connected: true,
rssi: null,
txPower: null,
_connectionHandle: 0,
minConnectionInterval: 7.5,
maxConnectionInterval: 7.5,
slaveLatency: 0,
connectionSupervisionTimeout: 4000,
paired: false,
ownPeriphInitiatedPairingPending: false }

Connection handle is 0 mtu is 222
Current mtu 247
MTU Error Error occured when requesting MTU exchange. Errorcode: NRF_ERROR_INVALID_PARAM (0x7)

Error during requestAttMtu [object Object]
Error {
message: 'Failed to request att mtu: Error occured when requesting MTU exchange. Errorcode: NRF_ERROR_INVALID_PARAM (0x7)\n',
description: undefined }

Thanks,

Derek Wooters

Parents Reply Children
Related