This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using ble_app_interactive to send data

Hello,

   I am trying to establish a network to send data over the boards.

   I tried using examples in Ble_central and Ble_peripheral, but in those examples they would stay either in central or peripheral mode. Hence I tried using ble_central and peripheral example.

   BLE_app_interactive looked reasonable to my project and hence wanted to use it as a starting point. I used 2 boards and established a connection between them.

   But when I am trying to send data between them, I had to use gatt services, and hence recognized the available gatt services in the running example.

   I have few running, but I couldn't find any way of exchanging data between the devices.

   I am attaching the log of my attempted commands, please verify and help me to proceed.

   Thank you

uart_cli:~$ gatt services D8:DC:88:9E:43:74
<info> app: Services count: 3
Found service UUIDs:
UUID: 1800 type: 0x1
UUID: 1801 type: 0x1
UUID: 180F type: 0x1
uart_cli:~$
  advertise          balloc             bonded_devices     clear
  cli                connect            connected_devices  device_name
  devices            disconnect         gatt               history
  key_reply          log                mpu                numeric
  pair               parameters         privacy            queue
  remove_bond        resize             scan
uart_cli:~$ gatt write command D8:DC:88:9E:43:74 0X1
The selected service does not contain the characteristic - 0X1
uart_cli:~$ gatt write command D8:DC:88:9E:43:74 0X1
The selected service does not contain the characteristic - 0X1
uart_cli:~$
  advertise          balloc             bonded_devices     clear
  cli                connect            connected_devices  device_name
  devices            disconnect         gatt               history
  key_reply          log                mpu                numeric
  pair               parameters         privacy            queue
  remove_bond        resize             scan
uart_cli:~$ gatt write command D8:DC:88:9E:43:74 180F 43
The selected service does not contain the characteristic - 180F
uart_cli:~$ gatt services FB
Invalid device address
uart_cli:~$ gatt services FB
Invalid device address
uart_cli:~$ G
G: command not found
uart_cli:~$ gatt sr
unknown parameter: sr
uart_cli:~$ gatt services D8:DC:88:9E:43:74
<info> app: Services count: 3
Found service UUIDs:
UUID: 1800 type: 0x1
UUID: 1801 type: 0x1
UUID: 180F type: 0x1
uart_cli:~$ gatt indication F
unknown parameter: F
uart_cli:~$ gatt n
unknown parameter: n
uart_cli:~$ gatt indication D8
unknown parameter: D8
uart_cli:~$ G
G: command not found
uart_cli:~$ gatt indication on D8:DC:88:9E:43:74 180F
Wrong characteristic UUID or the CCCD descriptor has not been found yet

Related