bombarder
Posts: 4
Joined: Wed May 31, 2017 12:54 pm

TI sensortag cc2650 connection with Raspberry Pi

Wed May 31, 2017 12:57 pm

Hi.

I have problem with connection between Rasberry Pi 3 and TI sensortag CC2650.
As soon as I power on raspberry, sensortag shuts down, and I can not see him, either from raspberry or from mobile application ( TI application from google store). When I power off raspberry, I can connect to sensortag via phone and it sends good informations.
When raspberry is powered on, and when I restart sensortag, I can see him for a couple of moments.

Gattol command :

Code: Select all

sudo gatttool -I -i hci0 -m 48 -b b2:b3:48:bc:6c:07
     [b2:b3:48:bc:6c:07][LE]> primary
     Command Failed: Disconnected
hciconfig up and dev :

Code: Select all

sudo hciconfig hci0 up
    [b2:b3:48:bc:6c:07][LE]> connect
    Error: connect error: Connection refused (111)

      hciconfig dev
      hci0:   Type: BR/EDR  Bus: UART
           BD Address: B8:27:EB:FB:A3:C4  ACL MTU: 1021:8  SCO MTU: 64:1
           UP RUNNING
           RX bytes:1025 acl:0 sco:0 events:56 errors:0
           TX bytes:1578 acl:0 sco:0 commands:48 errors:0
I added

Code: Select all

EnableLE = true 
AttributeServer = true

lines to /etc/bluetooth/main.conf , but nothing changed.
Of course, when I add tisensortag deployment package to Kura, there isn't any info from sensor, either on the cloud or on console.

bombarder
Posts: 4
Joined: Wed May 31, 2017 12:54 pm

Re: TI sensortag cc2650 connection with Raspberry Pi

Wed May 31, 2017 9:57 pm

I managed to connect, but only when I reset sensortag, and only for a minute or two. :(
I am working with sensor connected via gpio 23 and 24 pins, can it be something with that connection that distracts bluetooth?

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: TI sensortag cc2650 connection with Raspberry Pi

Wed May 31, 2017 10:36 pm

I'm not sure of your problem. A few comments: The SensorTag will only connect to one device at a time; merely turning on your Pi shouldn't affect communicating with your phone, but trying to connect from the Pi might. I have an older SensorTag, but to connect to it with gatttool, I need to use the '-t random' flag. My SensorTag will only advertise for a couple of minutes without connecting to it (saves battery) or hitting the button. And no, the GPIO pins should not affect connecting to the SensorTag.

bombarder
Posts: 4
Joined: Wed May 31, 2017 12:54 pm

Re: TI sensortag cc2650 connection with Raspberry Pi

Thu Jun 01, 2017 8:31 am

Problem is, when I turn RPI, it looks like RPI is killing sensortag. For example, I connected to tag via phone app, and when I turn on raspberry and install ti_sensortag deployment package to KURA ( Java / Kura runs on my RPI) or try with hcitool lescan command, then sensortag cannot be found, either from phone or Raspberry.
This weird behavior started just week ago, before that I didn't have any problems, and sensor was working good.

xhit
Posts: 4
Joined: Wed May 31, 2017 6:42 pm

Re: TI sensortag cc2650 connection with Raspberry Pi

Thu Jun 01, 2017 9:52 am

Did your problems start after an apt-get upgrade to the latest firmware and kernel and are you using the mini-uart? I also got Bluetooth problems on the min-uart following this upgrade and it sounds similar to what you are describing:
viewtopic.php?p=1169926#p1169926

bombarder
Posts: 4
Joined: Wed May 31, 2017 12:54 pm

Re: TI sensortag cc2650 connection with Raspberry Pi

Thu Jun 01, 2017 12:57 pm

Hm... Didn't exactly noticed, but now that you mention it, it could be. So, how did you fix that?

xhit
Posts: 4
Joined: Wed May 31, 2017 6:42 pm

Re: TI sensortag cc2650 connection with Raspberry Pi

Thu Jun 01, 2017 1:52 pm

So you are using the mini-uart? Would be good to know if I'm not alone with this specific problem.

The only solution that I know of is to go back to the previous firmware and kernel and that means downloading the raspbian image of April (https://www.raspberrypi.org/downloads/raspbian/) and don't do an apt-get upgrade. :(

Since the problem most likely originates from the firmware/kernel all we can do is try to get some attention from the developers so they can have a look at this.

xhit
Posts: 4
Joined: Wed May 31, 2017 6:42 pm

Re: TI sensortag cc2650 connection with Raspberry Pi

Sun Jun 04, 2017 9:07 am

Rolling back to firmware and kernel 4.4 works for me:
sudo rpi-update 52241088c1da59a359110d39c1875cda56496764

Return to “Troubleshooting”