Viewing 8 reply threads
  • Author
    Posts
    • #2487

      draven_ts
      Participant

        I want to be able to read/write a simple GATT characteristic. The AudioAgent manual suggests i can use `BLE_SET_DB` to create a GATT table. The AudioAgent manual further suggests using `DB Generator` tool to create this table. 

        I’ve downloaded DB generator from the iot747 website but there doesn’t seem to be any accompanying documentation for how to use DB Generator. For instance, i’ve tried to ‘Add Char’ but the application seems to crash after pressing the button.
        Can you possible provide some manual or reference for using this tool? Or possibly tell me what the schema for the database is so i can make the database by hand.

        Thanks!

      • #2488

        draven_ts
        Participant

          Also, I’ve noticed that if i try and send `BLE_SET_DB XX` (where XX is any value) i’m getting an `ERROR 0x0011` response. 

          looking at the error codes it looks like that means `Command not allowed with the current configuration`. what ‘mode’ do i need to be in? how can i setup a state in order to recieve a gatt DB?

          FYI i’m running IDC777 V3.1.70

          Thank you.

        • #2489

          IOT747 Team
          Keymaster

            Hi Draven,

            BLE_SET_DB does not work with IDC777. However, it depends what you want to do:

            1) If you would like to act as BLE_Central (Client) and Connect and Read from a Server (BLE Heart Rate, BLE button, BLE sensor), you don;t need BLE_SET_DB and you can search for services, characteristics and read/write using the BLE_xxx commands.

            2) If you would like the IDC777 to act as a server (BLE Peripheral usually) and a phone (or something) else connects to it and it exhibits particular characteristics and services, you would need to use DB generator and we would then need to integrate your database in the code.

            Let us know what you are trying to do? Thanks.

            IOT747 Support

          • #2490

            draven_ts
            Participant

              Ash,

              Thanks for the quick reply. I want the IOT777 to act as a GATT server. I want a phone to be able to connect and read/write a specific characteristic on the IOT777 module.

              Specifically i’m trying to use it to have a phone app write a passcode for a secure Broadcast LE audio stream. I don’t want to hard code this password so I was hoping I could use GATT to set the passcode at will. 

              Are you suggesting i might need custom IOT777 firmware to setup a GATT server?

              Thanks.  

            • #2491

              IOT747 Team
              Keymaster

                Hi Draven,

                Yes, it will be the same firmware but with your Database. You will need a Support pack4 to do this. Otherwise, why don’t you use the SEND/RECV command  over BLE or SPP? Since you are building your App, this shoudl be easier.

                IOT747 Support 

              • #2492

                draven_ts
                Participant

                  How does BLE SEND/RECV work? I’m only familiar with BLE GATT/GAP.

                  The AudioAgent manual suggests using IOT747 Scanner to demonstrate SEND/RECV. however i downloaded this app and it seems to only provide logs?

                  I used a generic BLE scanner app (SI Connect) to scan and connect to the device. There seems to be a large GATT table by default. Is SEND/RECV just tied to reading/writing to one of these characteristics? 
                  Otherwise is there some other standard being used for SEND/RECV?

                  Thank you!

                • #2493

                  draven_ts
                  Participant

                    How does BLE SEND/RECV work? I’m only familiar with BLE GATT/GAP.

                    The AudioAgent manual suggests using IOT747 Scanner to demonstrate SEND/RECV. however i downloaded this app and it seems to only provide logs?

                    I used a generic BLE scanner app (SI Connect) to scan and connect to the device. There seems to be a large GATT table by default. Is SEND/RECV just tied to reading/writing to one of these characteristics? 
                    Otherwise is there some other standard being used for SEND/RECV?

                    Thank you!

                  • #2494

                    IOT747 Team
                    Keymaster
                    • #2495

                      draven_ts
                      Participant

                        Ash,

                        Thank you for the video reference. I was able to verify send/recieve with the scanner app. I found the source code with a readme detailing exactly which characteristic was being used to exchange data which i can use for my app implementation. 
                        This should work for our application.

                        Thank you!

                    Viewing 8 reply threads

                    You must be logged in to reply to this topic.