Unable to connect to any iPhones, etc over BLEconnect

Posted on
Wed Feb 01, 2017 2:08 pm
Hackencrash offline
User avatar
Posts: 246
Joined: Dec 16, 2015
Location: UK

Unable to connect to any iPhones, etc over BLEconnect

Where many BLEconnect devices are configured (iPhones other phones, watches etc.) and the setting for the rPi device set to "run BLEconnect in parallel", I would expect to see multiple BLEconnect.py processes running on my rPi - one for each Mac address.

However, what I discovered is that I don't see any until I go into each BLEconnect device in turn and click Save without making any changes and then that process appears after a bit :shock:

Posted on
Wed Feb 01, 2017 3:26 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Unable to connect to any iPhones, etc over BLEconnect

Ok there might be a conflict who is getting the last word. Will check.


Sent from my iPhone using Tapatalk

Posted on
Wed Feb 01, 2017 9:16 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Unable to connect to any iPhones, etc over BLEconnect

It might be that it does not push the config to the RPI. .. After a device save the config files are send to the RPIs. But that should also happen when an RPi property is changed -- but not if it is not changed!.

I check that the config files gets changed properly after an RPI device edit .. and the "push" parameter is also set..

don't know what else to do..


Karl

Posted on
Sat Feb 18, 2017 1:25 pm
Hackencrash offline
User avatar
Posts: 246
Joined: Dec 16, 2015
Location: UK

Unable to connect to any iPhones, etc over BLEconnect

I'm still having big problems in this area and haven't had this working for some time now. I've tried both parallel and serial and the most concervative settings and timeouts and it appears that this function has simply stopped working properly.

Parallel does appear to spur off parallel sessions of BLEconnect.py processes but never reports back an "up" in piBeacon in Indigo for any more than one device and the same is for serial. The ~/pibeacon/parameters file appears to correctly include all my devices.

If I run the following command directly on the Pi to check for 2 devices it works successfully:
Code: Select all
sudo hcitool cc DC:2B:2A:04:E7:A3 && sudo hcitool rssi DC:2B:2A:04:E7:A3 && sudo hcitool cc 38:C9:86:DA:34:4C && sudo hcitool rssi 38:C9:86:DA:34:4C

Output:
RSSI return value: 0
RSSI return value: 0
(the devices were right next to the Pi, hence the 0 value)

Even though the above command works I have also tried a different Bluetooth adapter with a different chipset which made no difference within piBeacon on Indigo.

I don't know whether it's worth mentioning or not, but the only device piBeacon always seems to successfully report is the first device listed in the parameters file in the BLEconnect stanza. Other devices only ever show as "up" if that first device is not detected.
Last edited by Hackencrash on Sat Feb 18, 2017 3:59 pm, edited 1 time in total.

Posted on
Sat Feb 18, 2017 3:48 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Unable to connect to any iPhones, etc over BLEconnect

I am out of town. Back home in 2 weeks. Will check then.


Sent from my iPhone using Tapatalk

Posted on
Fri Mar 03, 2017 8:39 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Unable to connect to any iPhones, etc over BLEconnect

just tried with 2 iPhones on 2 RPI and mine seem to work. they go up and down as they should..

we will need to check whats wrong ..

could you set BLE debug to 2 and check the log file /var/log/BLEconnect.log
tail -F /var/log/BLEconnect.log

Karl
Attachments
Screen Shot 2017-03-03 at 20.36.53.png
Screen Shot 2017-03-03 at 20.36.53.png (19.28 KiB) Viewed 1546 times
Screen Shot 2017-03-03 at 20.35.25.png
Screen Shot 2017-03-03 at 20.35.25.png (17.77 KiB) Viewed 1546 times

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests