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

Set up specific BLE devices to communicate either without pairing or with automaticly pairing

Hello. I have several nRF51 devices (nRF51 Dongle, pca10031) I wish to use as BLE link between robots.

  1. Is there any examples or tutorials that show how I can do this without having to pair the devices manually using some sort of software first?

  2. I was thinking about hard coding the addresses in but I am not sure if this is the best solution or even feasible?

  3. What would be the best option, broadcast to all or send to specific device?

Edit: I am not bound to use BLE, I can use the radio "alone" as well

Parents
  • The robots would be peripherals and the pc would be a central device.

    So you can put some information in the advertising packets that the central will recognize.

    It could be the addresses of the peripherals, one or more UUIDs, one or more device names, or something else.

  • I (or we, we are a group) are going to have a java program on pc that will recieve measurements from- and then send instructions back to each robot, 3 or 4 of them.

    Preferably I want to get away with not having to run any other software than this java program and the drivers, so I figured I could use the UART BLE example and communicate through the serial ports.

    This is sort of allready solved, but we had to pair the devices first. I'd rather have the adresses for each robot in the nrf software and somehow include which instruction goes to what robot with a switch case or something similar. I have not yet figured out how to do this.

    It is very important that this is concurrent, each robot is running real time schedulers on a separate mcu and will ideally return measurements, encoder information and need new instructions every 200ms..

    If this is very complicated I'd love to know :)

Reply
  • I (or we, we are a group) are going to have a java program on pc that will recieve measurements from- and then send instructions back to each robot, 3 or 4 of them.

    Preferably I want to get away with not having to run any other software than this java program and the drivers, so I figured I could use the UART BLE example and communicate through the serial ports.

    This is sort of allready solved, but we had to pair the devices first. I'd rather have the adresses for each robot in the nrf software and somehow include which instruction goes to what robot with a switch case or something similar. I have not yet figured out how to do this.

    It is very important that this is concurrent, each robot is running real time schedulers on a separate mcu and will ideally return measurements, encoder information and need new instructions every 200ms..

    If this is very complicated I'd love to know :)

Children
No Data
Related