This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BR-LE-4.0-S3A GATT writing example

Other Parts Discussed in Thread: BLE-STACK, CC2541

Hey all,

Is there any full examples of a BlueRadios BLE chip writing to its GATT? 

I've tried using the ATGW command, but I seem to be stymied by an Invalid Attribute Error, even though the handle I'm writing to should exist (according to the GATT profile I pull down from an external tool).

The command I've tried is "ATGW,0,27,2,1\r", where I've tried the handles between 27-30 (according to my external tool, 27, 28, or 29 should be the handles of the write register). I've played around with some of the parameters, like the BRSP mode, but to no avail. I am connected while this is occuring, so I don't error out, but rather receive a GATT_DONE with the invalid attribute (or handle) error.

Anyone have ideas? Am I missing some configuration?

Cheers,
-SJ 

  • Hi Suresh,

    I'm not sure that this is the proper forum for BlueRadios own implementation of the serial interface and stack. You'd have to ask BlueRadios I think. Though perhaps somebody has some experience with it.

    Best regards,
    Aslak 

  • Hi SJ,

    What exactly are you trying to do?

    John

  • For what it's worth... you can write custom applications using the BLE-STACK from Ti on the CC2541 page.  I'm using the BR-LE4.0-S2A and started from the simple BLE peripheral   I switched from the AT commands, and got my code up and running in a day.  The API is very similar.

  • Hey John,

    Essentially, we're trying to use the S3A as a drop-in replacement for our existing BLE solution (without needing to change all of our mobile/desktop source code). So, the current workflow is to write some data quite frequently to a characteristic of the GATT, and then read that on our mobile/desktop side (or, preferably, be notified of the change).

    With the S3A, my hope was to avoid writing custom firmware, and just change the UUIDs and Characteristic handles, and use this as a drop-in replacement for the current turnkey BLE module. 

    Does that clarify my workflow a bit more? Or is it still a bit sketchy?

    Thanks!
    -SJ 

  • Oh, and @Greg...

    I agree that a custom application is a possibility, but I was hoping to avoid writing custom firmware, if at all possible. That was one of the really enticing features about switching to the S3A.

    Cheers,
    -SJ 

  • Hi, I'm using the D2-module and I'm having the same need of a full example. Looks a like it's a little complicated to create custom GATT services. I've tried to talk whit blueradios guys, but by the time they are taking to answer me I don't think they have this example. If you have succes in create the gatt services I would be gratefull if you could give me some hints . Thanks   ( I'm starting to think that is better to learn objective-C to change de ios App...)

  • Hi. Greg:

    I am trying to do the same thing that to run TI sample project on BR module BR-LE4.0-S3A.

    TI BLE stack has HAL files provided for few HW platforms in its SDK "components/hal/target".

    But how to do you get those HAL files based on Blueradios platform? Especially what the clock speed it used?

    I need to use the I2C/SPI/UART interfaces. 

    Thanks.

  • We ended up switching to the BR-LE4.0-S3A as well.  You can take a look at our code on GitHub.  https://github.com/BackyardBrains/RoboRoach

    It uses SPI to communicate to digital pot.  We ended up scrapping the BlueRadio's firmware, and just used TI's codebase.   

    Greg