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

How to send single bit data from a nrf-51822ek slave on a nrf51822ek-master

Hi, My project is that when a button is pressed on a slave (nrf51822ek), a central (another nrf51822) gets to know which slave has triggered and sends its status 1/0 to a webserver made on php or asp. From this server , data is sent to a mobile app.

i have burnt multilink_peripheral code sample on my slave and multilink_central code sample on my central kit, right now when i connect central to PC, hyperterminal shows "Advertising notification" on button press of slave kit, but what i need on central, is a bit 1/0 that toggles on button press on slave kit. Dongle shows a bit toggling in MCP when a button is pressed but on hyper terminal i am not getting this bit value .

As i am new to hardware therefore it is causing me much difficulties and i have near deadline to meet.

Thank you Any sort of help will be appreciated!

Parents
  • You could do this without even being connected. Set up the peripheral to start advertising on button press and let the central scan continuously.

    Or, set them up to connect each other, let the central request notifications. When you press the button (while connected), this should trigger a notification transmission, and the central will automatically read this data. That's the outline at least

Reply
  • You could do this without even being connected. Set up the peripheral to start advertising on button press and let the central scan continuously.

    Or, set them up to connect each other, let the central request notifications. When you press the button (while connected), this should trigger a notification transmission, and the central will automatically read this data. That's the outline at least

Children
Related