nRF UART central data send error

I'm trying to connect a nRF52832 DK to a secondary device (BLUETOOTH LOW ENERGY TINYSHIELD (ST)) where the nRF is the central. The example correctly connects to the board when it starts advertising but when I enter data over UART via PuTTY, I'm faced with an error (128).

I've tried to connect to a nRF52840 dongle with nRF connect and an Android phone setup with the UART service UUID and UART TX / UART RX characteristics. This behaves the same.

My second thought was that it has to do with security/bonding. However, since this is initiated from the Central, this would've been included in the NUS service included in the example so this doesn't seem correct. 

Since the error (128) means socket not connected, I figured there must be something wrong with the connection. I've tried to modify &nus_client in bt_nus_client_send() to NULL so it would be sent to any connection available. However, this results in an 'Operation already in progress' error (120). 

Any idea what I'm missing?

Parents
  • Hi

    What SDK and SDK version are you using for building and flashing the nRF52832 DK project? And have you made any changes to the sample project on your end?

    I just tried with the central_uart application on an nRF52832 DK and the peripheral_uart  (as well as the nRF5 SDK version of the UART peripheral) and was not able to see this error. Are you sure the service and characteristics are set up correctly on the devices on your end? You should be able to use the peripheral UART sample code as reference. Bonding/pairing should not be an issue when just using the central UART project and Nordic UART service.

    Best regards,

    Simon

Reply
  • Hi

    What SDK and SDK version are you using for building and flashing the nRF52832 DK project? And have you made any changes to the sample project on your end?

    I just tried with the central_uart application on an nRF52832 DK and the peripheral_uart  (as well as the nRF5 SDK version of the UART peripheral) and was not able to see this error. Are you sure the service and characteristics are set up correctly on the devices on your end? You should be able to use the peripheral UART sample code as reference. Bonding/pairing should not be an issue when just using the central UART project and Nordic UART service.

    Best regards,

    Simon

Children
No Data
Related