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

Any other way to create Services and characteristic UUID except nRFGO Studio.

Hi

I have successfully created services and characteristic from nRFGO Studio and they are advertising well even receiving and transmitting is going well. Now my problem is i have 30 bluetooth low energy modules containing nRF 8001 and i have to create different services for each so that i can identify them separately. Is there any other way to give them different UUIDs except nRFGO Studio? Because every time i have to use nRFGO studio and create services.h file, and if i have 100 modules then i have to do it 100 times? What is the alternative that i can use so that i program it once it will generate diff. uuids to every module?

Is there any other way with the help of which i can distinguish 100s low energy module containing nRF 8001 chips. I think it can be distinguished with only service uuid as it is the only thing it advertise?

And one more thing, peripheral name is specified in GAP Settings in nRFGO Studio, i want to change the connected peripheral name through iPhone. I actually want to give this functionality to my user of product that he can change the name of peripheral according to its wish.How can i do this?

Thanks

Parents
  • Now my main concern is avoiding any different phone to connect with my module? What i am thinking is i will give user a password which is different for every module and every module know its password which i will give through coding.

    This can be achieved in multiple ways. Use the first time connection to establish which unique device you are connecting to. The app should use the RSSI to determine the closest device and remember the unique number that uniquely identifies the device. On subsequent connections: The app should only connect to the device that it knows was its device based on the unique number. This should prevent the phone from connecting to devices that was not associated with it as it will first check for the unique number that is in the advertising info.

    Note: If you are using the Bluetooth address of the device for uniqueness you need to send the device address in a broadcast pipe so the iOS app can see it before choosing to connect to it.

Reply
  • Now my main concern is avoiding any different phone to connect with my module? What i am thinking is i will give user a password which is different for every module and every module know its password which i will give through coding.

    This can be achieved in multiple ways. Use the first time connection to establish which unique device you are connecting to. The app should use the RSSI to determine the closest device and remember the unique number that uniquely identifies the device. On subsequent connections: The app should only connect to the device that it knows was its device based on the unique number. This should prevent the phone from connecting to devices that was not associated with it as it will first check for the unique number that is in the advertising info.

    Note: If you are using the Bluetooth address of the device for uniqueness you need to send the device address in a broadcast pipe so the iOS app can see it before choosing to connect to it.

Children
No Data
Related