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

S130 general purpose application

Hi,

I am trying make general-purpose s130 app that will be able to connect to central and peripheral at the same time and to exchange informations between them. At the beggining my app should connect to peripheral and discover all its services. After that it should create its own services (at peripheral side) based on earlier discovered ones. Then communication peripheral-my device- central would be possible.

As far I managed to connect and discover services from peripheral and connect to central. I also succed in creating new services and making them available for central. Problem is communication between them.

My question is is it even possible to make the app like this on nRF51? Or maybe someone has created similar app and would be able to help me or give me some advice?

I know that tere is "ble_hrs_csrs example" but in that example we know about all services - so it is different than my app.

Parents
  • What is the 'problem of communication between them'? It seems pretty direct (although inefficient), when the central reads the value of one of your characteristics, you read it from the peripheral you're connected to and return it. if the central writes to you, you write to the peripheral, if the central subscribes to a characteristic, you subscribe to it on your connected peripheral and when you receive updates, you send them on, and when it unsubscribes again, you do likewise. All you do is mirror the calls the central makes to you.

    What is the problem you're having doing that?

Reply
  • What is the 'problem of communication between them'? It seems pretty direct (although inefficient), when the central reads the value of one of your characteristics, you read it from the peripheral you're connected to and return it. if the central writes to you, you write to the peripheral, if the central subscribes to a characteristic, you subscribe to it on your connected peripheral and when you receive updates, you send them on, and when it unsubscribes again, you do likewise. All you do is mirror the calls the central makes to you.

    What is the problem you're having doing that?

Children
No Data
Related