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

Couldn't find the RFCOMM port number in F35 #70

Open
dmaglio opened this issue Dec 19, 2021 · 0 comments
Open

Couldn't find the RFCOMM port number in F35 #70

dmaglio opened this issue Dec 19, 2021 · 0 comments

Comments

@dmaglio
Copy link

dmaglio commented Dec 19, 2021

The device is connected and working. i tried with disconnect and reconnect but the result is the same

 davidemaglio  ~  bluetoothctl info
Device E0:EB:40:CF:00:FB (public)
	Name: Tastiera di Davide
	Alias: Tastiera di Davide
	Class: 0x00000540
	Icon: input-keyboard
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: yes
	WakeAllowed: yes
	LegacyPairing: no
	UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	Modalias: bluetooth:v004Cp0267d0160
 davidemaglio  ~  bluetooth_battery E0:EB:40:CF:00:FB
Traceback (most recent call last):
  File "/home/davidemaglio/.local/bin/bluetooth_battery", line 33, in <module>
    sys.exit(load_entry_point('bluetooth-battery==1.3.2', 'console_scripts', 'bluetooth_battery')())
  File "/home/davidemaglio/.local/lib/python3.10/site-packages/bluetooth_battery/bluetooth_battery.py", line 162, in main
    query = BatteryStateQuerier(*device.split("."))
  File "/home/davidemaglio/.local/lib/python3.10/site-packages/bluetooth_battery/bluetooth_battery.py", line 81, in __init__
    self._bt_settings = bluetooth_mac, int(bluetooth_port or RFCOMMSocket.find_rfcomm_port(bluetooth_mac))
  File "/home/davidemaglio/.local/lib/python3.10/site-packages/bluetooth_battery/bluetooth_battery.py", line 60, in find_rfcomm_port
    raise bluetooth.BluetoothError("Couldn't find the RFCOMM port number. Perhaps the device is offline?")
bluetooth.btcommon.BluetoothError: Couldn't find the RFCOMM port number. Perhaps the device is offline?
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

1 participant