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

Send Data packets of about 50 bytes from central to a peripheral device with or without establishing a connection

Hello 

I am using SDK15.3 and nrf52832 development board. 

In my setup,

1. I have a  few peripheral nodes whose only job is to transmit some arbitrary packets ( say P),

2. a node that acts as both central and peripheral( say T) which reads the advertisement packets from P and gets it RSSI values and then sends this RSSI array ( from mulitple P nodes) to a  gateway(say G), which is a central node.

My issues are

a)  Setting up this node T. Please suggest which example from SDK 15.0 and higher is suitable for this.

b) How to send data from 'T' to 'G'. The size of data is about 40 bytes. I realised the data sent in the advertisement as manuf_data is about 15 bytes ( correct me if I'm wrong about this). So how to send data after establishing a connection? Please suggest suitable examples.

Thank you in advance. 

Parents Reply
  • I'm unable to send data packets using NUS

    So what, exactly, have you tried?

    What problem(s) are you stuck on?

    Please brief me on how to go about using NUS to send and receive data packets, WITHOUT USING SERIAL interface

    First, you need to study the examples which show you how to use it with the serial interface.

    Browse the code in your IDE.

    Use the debugger to follow what's happening.

    Once you have done that, you will be able to see how the data is fed into the NUS, and received from the NUS.

Children
Related