Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't discover device #1

Open
AnDrOiD-73 opened this issue Sep 11, 2017 · 2 comments
Open

Can't discover device #1

AnDrOiD-73 opened this issue Sep 11, 2017 · 2 comments

Comments

@AnDrOiD-73
Copy link

AnDrOiD-73 commented Sep 11, 2017

Thanks for your work around peripheral BLE device
I'm running sudo python3 device.py, then I see:
adv= b'0201061106f0ffffffffffffffffffffffffffffff' scn= b'050874657374' Wait... Sending:Type=01 Payload=b'030c00' Wait... Wait... Wait...
My OS: Ubuntu 17.04, BlueZ 5.43.
My Android phones can not discover this device. I did not make any changes in your code. I'm using two app: https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&hl=ru
https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner&hl=ru

I understand that it is experimental work, but maybe i need to do something before run device.py?
Output of command: hciconfig hci0
hci0: Type: Primary Bus: USB BD Address: 5C:F3:70:82:3F:15 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING PSCAN RX bytes:1798 acl:0 sco:0 events:123 errors:0 TX bytes:8128 acl:0 sco:0 commands:123 errors:0

@IanHarvey
Copy link
Owner

I'm not able to spend any time debugging this. My best guess is either that something else on the OS is using the Bluetooth adapter, and this is stopping it switching into device mode, or the app isn't listing the device because it's not fully compliant with some part of the specification.

If you want the same setup I've got, the 'device' side is running on a Raspberry Pi 3, running Raspbian Jessie (roughly Feb 2017). I can see the device using bluepy running on another Pi (or my laptop), and it also works with the TI SensorTag app on an iPhone. I've not tried anything on Android.

Thanks
Ian

@IanHarvey
Copy link
Owner

Out of interest - what version of Python 3 are you running?

I'm using 3.5.2, but just now I accidentally ran device.py with Python 2.7 just now and it behaved just like what you saw (Wait... Wait... Wait... for the first command).

Might be worth re-trying with 3.5.2 or later, if you're not using it already.

Thanks
Ian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants