6 Replies Latest reply on Feb 12, 2014 11:24 AM by userc_3663

    Unable to change device name

      I am using the hello_sensor demo and tried to change the device name, I change all the name in the .c files but when build and load to the device, it is still shown up as "Hello". Does anyone ran into this problem before? Thanks.

        • 1. Re: Unable to change device name
          MichaelF_56

          Inside of Apps/RAM/Hello_sensor/hello_sensor.c

           

          Go to BLE_PROFILE_CFG hello_sensor_cfg and change the following:

           

          /*.local_name                     =*/ "Hello",        // [LOCAL_NAME_LEN_MAX];

           

          If this is not working, then something is being cached.

           

          What application are you using to scan for the service?

          1 of 1 people found this helpful
          • 2. Re: Unable to change device name

            I have done that, I Thought it was cached too, I tried it with 3 iOS devices.

            • 3. Re: Unable to change device name
              MichaelF_56

              I figured out that there are 2 places where we store the device name.


              The one that you mentioned is used within advertisements. 

               

                   /*.local_name                     =*/ "Hello",        // [LOCAL_NAME_LEN_MAX];

               

              There is another instance which is stored in the GATT database.

               

              CHARACTERISTIC_UUID16 (0x0015, 0x0016, UUID_CHARACTERISTIC_DEVICE_NAME,

                                                   LEGATTDB_CHAR_PROP_READ, LEGATTDB_PERM_READABLE, 16),

                     'H','e','l','l','o',0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

               

              To make sure that the name is not cached, you can change the device address in the Platforms\BCM020732TAG_Q32\... btp file. 

               

              For example:

              DLConfigBD_ADDRBase = "20732A001133"


              Using this technique, iOS will see the new device.

              • 4. Re: Unable to change device name

                I'm using WICED Explorer as the client.

                Change in, "/*.local_name                     =*/ "Hello",        // [LOCAL_NAME_LEN_MAX];", worked for me.

                I replaced "Hello" with, "Abhio" and I had seen the Advertising name(Local name) as "Abhio" on the scan page of WICED Explorer. This confirms that server is advertising with "Abhio" name.


                Also, the same is observed in the Device name too.



                • 5. Re: Unable to change device name
                  MichaelF_56

                  Thanks Abhishek!

                  • 6. Re: Unable to change device name

                    Thanks all, I think the iPad mini is a little buggy, I tried it with a new iPhone it is okay.