Connection Timeout while connecting to GATT Service on Android Device #1970
Replies: 9 comments
-
Posted at 2017-01-16 by ChristianW Are you sure that your Nexus actually supports peripheral mode? Can you see/connect the Nexus with other BLE devices? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-16 by @gfwilliams Just checking - are you using up to date firmware on the Puck? (1v91?) If you have a second phone, it might be worth trying to use nRF Connect on that to try and connect to the first one, just to make sure it is actually working ok. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-16 by chrisJ Yes - firmware is updated to 1v91. Two phones/tablets (Nexus 5X and Nexus 9) with nRF Connect are working in both directions. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-19 by chrisJ Anyone who successful connect a puck to a gatt service? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-20 by @gfwilliams I haven't on Android. However EspruinoHub creates an HTTP Proxy service on a Raspberry Pi, and that works just fine with Puck.js |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-23 by chrisJ EspruinoHub doesn't work for me. My outdoor scenario requires data transfer between regular cell phones and pucks - a lot of pucks ;) I try to use your puck as a timestamp-unit for orienteering. Every time a puck get in range of a cell phone running my app it should synchronize its collected timestamps-data to my central portal. So it's absolutely necessary to transfer data between puck and android. Are there any options for debugging? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-23 by @gfwilliams For debugging you can connect the Puck via UART so you can communicate with it without having to have an active Bluetooth connection: http://www.espruino.com/Puck.js#serial-console For lower level stuff you can also use this tool - but it needs an nRF51DK board: https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer Adafruit also have a sniffer: https://www.adafruit.com/product/2269 Is the idea that the people doing orienteering have the pucks, and the phones are static - or vice-versa? Another option might be to make the Android app on the phone detect the advertising of Pucks it is interested in, and then to initiate a connection to the Puck itself - rather than going the other way? I'll have a go here and will see if I can connect to a phone from a Puck though. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-23 by @gfwilliams Ok, I just tried and my phone (Moto G3) doesn't appear to be capable of being a GATT Server - at least I can't get anything out of nRF Connect that's visible on any other device. Unless you're supplying the phones for your Orienteering, you might find that some of them are like mine. It might be that trying to work the other way (with the app on the phone initiating the connection to the Puck) is compatible with far more phones. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-01 by Dave_Smart FYI: The ASUS ZenPad Z380M works as a GATT Server. The best app to test BLE server capability is the Nordics "nRF Connect" app on Google Play. You need devices with Android 5 or higher and hardware support included. Worth mentioning that DroidScript has a BLE Beacon/Server plugin in beta (if you ask on the forum then you can probably get hold of it) https://groups.google.com/forum/#!forum/androidscript These devices supposedly also support BLE advertising:- Phones and tablets |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-14 by chrisJ
Hi,
I setup a simple GATT TimeService 0x2A2B : 0x2902 with nRF Connect on Android (Nexus 5X).
Trying gatt.connect() with the following simple script from puck results in Connection Timeout:
Any hint?
Beta Was this translation helpful? Give feedback.
All reactions