You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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 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
The text was updated successfully, but these errors were encountered: