Author Topic: Any experts with BLE protocols?  (Read 1972 times)

0 Members and 1 Guest are viewing this topic.

Offline richardmanTopic starter

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
Any experts with BLE protocols?
« on: September 03, 2016, 07:10:13 pm »
Any experts with BLE protocols hanging around here? If so,please PM me?

Thanks
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: Any experts with BLE protocols?
« Reply #1 on: September 03, 2016, 08:57:32 pm »
Why not ask your question publicly so answers may benefit us all? I'm no expert but I've played around with Nordic nRF51 and 52 and the ble enabled psoc from cypress.
The specification is actually quite good when you over the first somewhat steep learning curve.
 

Offline richardmanTopic starter

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
Re: Any experts with BLE protocols?
« Reply #2 on: September 04, 2016, 07:03:33 am »
The question is very specific but you are right, I can cast it to a form that may benefit other people. What I want is to send multiple set of data between a smartphone and an embedded system using BLE - currently using the ST BlueNRG but that detail does not matter.

The data is bidirectional and varying in length. I know there's a bandwidth limitation with BLE and that each transaction is limited to just tens of bytes so I will have to break up the data into multiple chunks if necessary.

What I want to confirm is that once I get the phone and the embedded device handshaking and bounded, then I can just use a set of UUID that the phone app and the embedded code agree on, and then send the data between them, using my own protocol.
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 

Offline janekm

  • Supporter
  • ****
  • Posts: 515
  • Country: gb
Re: Any experts with BLE protocols?
« Reply #3 on: September 04, 2016, 07:24:51 am »
The question is very specific but you are right, I can cast it to a form that may benefit other people. What I want is to send multiple set of data between a smartphone and an embedded system using BLE - currently using the ST BlueNRG but that detail does not matter.

The data is bidirectional and varying in length. I know there's a bandwidth limitation with BLE and that each transaction is limited to just tens of bytes so I will have to break up the data into multiple chunks if necessary.

What I want to confirm is that once I get the phone and the embedded device handshaking and bounded, then I can just use a set of UUID that the phone app and the embedded code agree on, and then send the data between them, using my own protocol.

If I understand what you mean, then yes... BLE uses a system of Services & Characteristics to give structure to the data exchanged (to a point), but if you want you can just define a single service & characteristic and exchange the data over that, with your own internal format. BLE doesn't care what you actually transmit in each write to / notification from a characteristic. You can have a look at this "UART" service for an example: https://developer.mbed.org/teams/Bluetooth-Low-Energy/wiki/UART-access-over-BLE
 
The following users thanked this post: alexanderbrevig, richardman

Offline richardmanTopic starter

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
Re: Any experts with BLE protocols?
« Reply #4 on: September 04, 2016, 07:31:44 am »
If I understand what you mean, then yes... BLE uses a system of Services & Characteristics to give structure to the data exchanged (to a point), but if you want you can just define a single service & characteristic and exchange the data over that, with your own internal format. BLE doesn't care what you actually transmit in each write to / notification from a characteristic. You can have a look at this "UART" service for an example: https://developer.mbed.org/teams/Bluetooth-Low-Energy/wiki/UART-access-over-BLE

Exactly what I hope to hear. THANKS
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf