Bluetooth Low Energy

View previous topic View next topic Go down

Bluetooth Low Energy

Post by ludaaakris on Tue Dec 13, 2016 3:36 pm

Hello,
i am trying to connect Roboremo with an CC2650 (MCU + BT LE on board).

For this i use an example project: UART to BLE bridge with TI's proprietary Serial Port Profile (SPP) to send/receieve strings. This works with apps like 'nRF Connect' or 'BLE Scanner' very good, but i can't define any buttons/controlls. There are only the BT LE "services" and "characteristics" (running on the CC2650). I always have to write strings again to send them...RoboRemo could give much more options.

I pair Android with CC2650 and try to connect with Roboremo, but it doesn't work:
[...read failed, socket must close or timeout..]
Also try to connect manually by defining a button and set “connect rfcomm "xxDEVICEUIDxx" "xPorts" ”. I try different ports, but it doesn't work too.

It is possible to connect Roboremo and BT LE?

greetings

kris

ludaaakris

Posts : 10
Join date : 2016-05-11

View user profile

Back to top Go down

Re: Bluetooth Low Energy

Post by Admin on Tue Dec 13, 2016 10:16 pm

Hi,
Currently RoboRemo does not support BLE, unfortunately. It supports only Bluetooth SPP. But I plan to add BLE in a future version, as soon as I get a BLE module and some free time.
All the best,
Victor

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Bluetooth Low Energy

Post by ludaaakris on Thu Dec 15, 2016 12:55 pm

hey,
It's time to get this working you told me in this post: How to connect via USB? If this will working, i will report it.
So i will use two of CC2650. One connected to Roboremo VCP via USB (smartphone). BT LE beetween them with SPP! So don't need BTLE support..
thank's alot. RoboRemo is awsome! I already use it in many "home"-projects.

All the best,
ludaaa

ludaaakris

Posts : 10
Join date : 2016-05-11

View user profile

Back to top Go down

Re: Bluetooth Low Energy

Post by Admin on Thu Dec 15, 2016 4:59 pm

Depending on the USB PID and VID numbers of the board, it may work or not.
Currently I know it works with Arudino UNO and MEGA, and does not work with Arduino NANO.
If does not work with CC2650, please tell me the PID and VID (can be found using command lsusb in Linux), and I will try to add them in the next version.

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Bluetooth Low Energy

Post by Admin on Thu Mar 16, 2017 4:44 pm

Hi again,
Today I updated the app, added BLE support. Please let me know if it works.
Thank you!

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Bluetooth Low Energy

Post by ludaaakris on Fri May 05, 2017 8:15 pm

hi,

i tried it in different ways, local button "connect ble 123..", "con" etc. Also i try different Services /UIIDs.

After 1 Second "please wait" screen, it turns back to the interface with a small blue popup "connection lost".

Bluetooth Stack runs correctly, i always test it with BLE Scanner App.

thank you for implement this!
greetings

kris

ludaaakris

Posts : 10
Join date : 2016-05-11

View user profile

Back to top Go down

Re: Bluetooth Low Energy

Post by Admin on Sat May 06, 2017 6:37 am

Hi,
so I understand it disconnects and you can not use it.
It may be a bug in the app, or a hardware problem.
Do you have other Android devices? Is it the same on all devices?
Also, do you have other BLE modules to test?
Maybe it is a power supply issue, how do you power the BLE module?

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Bluetooth Low Energy

Post by ludaaakris on Mon May 08, 2017 10:05 pm

Admin wrote:Hi,
Do you have other Android devices? Is it the same on all devices?

I try it with LG G2 and LG G3, both Android 5.0.

Admin wrote:
Also, do you have other BLE modules to test?

CC2640 Custom Board
CC2650 @LounchPad

Admin wrote:
Maybe it is a power supply issue, how do you power the BLE module?

Constant supply by USB.


I try different service Types. Services with seperated RX TX oder RX TX in one service etc. . All work fine with BLE Scanner and nRF Connect App.
Can it work, if i use just a TX Service without RX?

But i am new in BLE, so i don't know, how this stuff with services and notifications realy works. To get this services for BLE work needs a lot of time i don't have. In this way I use some BLE examples from TI and modficate them to read sensors and controll actuators. I don't touch any BLE config and just use the default to communicate with BLE Scanner. One of these examples is CC2640 UART to BLE Bridge. Maybe it works different like UART in Bluetooth 2.0. For example: if i want to receive messages on Android, first i have to enable notifications in the service (on Android).
http://processors.wiki.ti.com/index.php/CC2640_UART_to_BLE_Bridge

All the best!

ludaaakris

Posts : 10
Join date : 2016-05-11

View user profile

Back to top Go down

Re: Bluetooth Low Energy

Post by Admin on Mon May 15, 2017 3:37 pm

ludaaakris wrote:

After 1 Second "please wait" screen, it turns back to the interface with a small blue popup "connection lost".

kris

Bug confirmed, I will try to fix it as soon as possible.

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Bluetooth Low Energy

Post by Admin on Tue May 16, 2017 2:07 pm

App updated (current version is 2.1.2)
Bug fixed.

It was related to the interface's connect action. Only interfaces with connection action set to some string (non empty) were triggering this bug.

Please let me know if it works OK now.

All the best,
Victor

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Bluetooth Low Energy

Post by ludaaakris on Tue May 16, 2017 3:53 pm

Hello Victor,

last time i start to understack the BLE Stack!
I debug the BT LE application, Roboremo v2.1.1, and updated v2.1.2 connects correctly! But if it connects correctly, Roboremo freeze in "please wait...", screen, it doesn't return back and i have to restart the app. [ Before i debug it, i thought it doesn't connect, when it freeze in "please wait..." screen, so i dosen'T tell u ]

One post of me i said Andoird 5, sorry for that LG G3 runs on 6!

Whats about the BLE permissions. I know android needs always location service "on" if i use BLE.

Message from BLE Scanner:
"Android OS 6.0+ required to enabled loacation service to find near by BLE devices"

hope this helps.. Thanks for try it!
All the best!

ludaaakris

Posts : 10
Join date : 2016-05-11

View user profile

Back to top Go down

Re: Bluetooth Low Energy

Post by Admin on Wed May 17, 2017 8:52 am

ludaaakris wrote:
Whats about the BLE permissions. I know android needs always location service "on" if i use BLE.
Message from BLE Scanner:
"Android OS 6.0+ required to enabled loacation service to find near by BLE devices"
But I do not perform a BLE scan, I just connect to an already paired device, so I think I don't need that permission.

ludaaakris wrote:
Roboremo freeze in "please wait...", screen, it doesn't return back
I think I must add a timeout to that "please wait..." screen.
I will also try to add more debug code, so it will display exactly what is wrong instead of just hanging to that screen.

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Bluetooth Low Energy

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum