Author Topic: Try RFduino with linux  (Read 1865 times)

turcoale

  • RFduino Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Try RFduino with linux
« on: August 21, 2014, 05:17:44 AM »
Hello everybody. I new in this forum and RFduino. Y try connect with rfduino in linux terminal for firt test. I need help with send commands and read status. I use LedButton sketch and i can turn on a LED. I do not quite understand how to read  button status. This is the commands:

Code: [Select]
sudo hcitool lescan
Code: [Select]
gatttool -i hci0 -b <mac> -I
and turn on a led with:
Code: [Select]
gatttool -b F1:F8:85:F9:73:86 --char-write --handle=0x0011 --value=01
I not understand the handle, i need help

thanks.

tolson

  • Global Moderator
  • *****
  • Posts: 866
  • Karma: +20/-0
    • View Profile
    • Thomas Olson Consulting
Re: Try RFduino with linux
« Reply #1 on: August 21, 2014, 10:37:50 AM »
Non-interactive read
gatttool -b CF:35:AF:F4:D9:A0 -t random --char-read --handle=0x000e

Non-interactive write
gatttool -b CF:35:AF:F4:D9:A0 -t random --char-write --handle=0x0011 --value=" + RGB

Notification ON...
gatttool -b CF:35:AF:F4:D9:A0 -t random --char-write-req --handle=0x000f --value=0100 --listen

NOTE: Substitute your MAC address.
« Last Edit: August 21, 2014, 10:41:56 AM by tolson »

turcoale

  • RFduino Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Try RFduino with linux
« Reply #2 on: August 22, 2014, 11:00:03 AM »
It was very helpful reply,  ;) you know any library in c/c++ to program in bluetooth low energy ??

 

anything