3 Replies Latest reply on Jan 27, 2015 9:15 AM by allene

    My bluetooth name changed to my edison name, by itself

    allene

      My Edison module was named Papoose when I first configured it.  For most all the time it showed up in Bluetooth as Bluez-nn.n where n was some number like perhaps 5.17.  There is a place in the main bluetooth config where you can change it but I didn't and it still has nothing there and says it should default to Bluez.  But then one day when I go to connect, the menu in the Android app says Papoose instead of Bluez.  How can this happen?  I didn't change anything and if I had, I would be able to see it in the config file, which is unchanged as shown below.

       

      [General]

      # Default adaper name

      # %h - substituted for hostname

      # %d - substituted for adapter id

      # Defaults to 'BlueZ'

      #Name = %h-%d

        • 1. Re: My bluetooth name changed to my edison name, by itself
          Damain

          hi allene,

           

          the configure script updates names for access point mode and general hostname field.

           

          (here you can set what is really updated by the script )

           

          def changeName(newName):
            _changeHostName(newName)
            _changeAPSSID(newName)
          
          
          def _changeHostName(newName):
            hostname_file = open('/etc/hostname','w')
            hostname_file.write(newName + "\n")
            hostname_file.close();
            subprocess.call("hostname -F /etc/hostname", shell=True)
          
          
          def _changeAPSSID(newName):
            os.popen("sed -i 's/^ssid=.*/ssid=%s/' /etc/hostapd/hostapd.conf" % (newName))
            subpro
          
          
          

           

          'BlueZ - x.y.z' is used by BLE advertisement data and probably for Bluetooth Device Name ( bluetooth 2.0/edr, etc. ).

           

          best,

          DK

          • 2. Re: My bluetooth name changed to my edison name, by itself
            Intel_Alvarado

            Hi allene,

             

            Was the previous suggestion helpful? Please let us know your results.

             

            Regards

            Sergio

            • 3. Re: My bluetooth name changed to my edison name, by itself
              allene

              The answer, upon re reading, does show where the new hostname is stored so that is helpful.  Apparently this name was changed by the system at some point.  A bit of a mystery why it changed it when it did but I will accept that and go on.  I will mark it as correct.  I don't understand it but I don't have to.  Edison changed the name at some point to make sure everyone wasn't called BLUEZ.  That is nice.