Traducido del Türkçe por IA ·
Yo hice lo mismo en el laboratorio, hay dos problemas separados.Para el emparejamiento, ejecuta bt-agent del paquete bluez-tools en modo NoInputNoOutput. En este modo no se pide ningún passkey:
sudo apt install bluez-tools
# /etc/systemd/system/bt-agent.service
[Service]
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
Restart=always
[Install]
WantedBy=multi-user.target
Por lo que dijo Sra. Derya, no dejé el dispositivo siempre visible. Hay un pequeño script que, al pulsar un botón del panel, ejecuta bluetoothctl discoverable on y pairable on durante 2 minutos, y cuando se acaba el tiempo desactiva ambos.La razón por la que getty no aparece en el lado de SPP es muy probablemente que bluetoothd no esté funcionando en modo de compatibilidad. En Bookworm el perfil SPP no se registra por defecto. Inicia bluetoothd con -C y luego añade el puerto serie:
# /etc/systemd/system/bluetooth.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/libexec/bluetooth/bluetoothd -C
sudo sdptool add SP
sudo rfcomm watch hci0 1 getty rfcomm0 115200 vt100
Después de introducir el token, no lo dejes en la pantalla. Y si quedó en la tableta de un técnico, es buena idea rotarlo después desde Hermetry.
Ben laboratuvarda aynısını yaptım, iki ayrı sorun var.
Eşleşme için bluez-tools paketindeki bt-agent’ı NoInputNoOutput moduyla çalıştır. Bu modda passkey sorulmuyor:
sudo apt install bluez-tools
# /etc/systemd/system/bt-agent.service
[Service]
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
Restart=always
[Install]
WantedBy=multi-user.target
Derya Hanım’ın dediği yüzünden ben cihazı sürekli görünür bırakmadım. Panodaki bir butona basınca 2 dakika bluetoothctl discoverable on ve pairable on yapan küçük bir script var, süre bitince ikisini de kapatıyor.
SPP tarafında getty’nin gelmemesinin sebebi büyük ihtimalle bluetoothd’nin uyumluluk modunda çalışmaması. Bookworm’da SPP profili kayıtlı gelmiyor. bluetoothd’yi -C ile başlat, sonra seri portu ekle:
# /etc/systemd/system/bluetooth.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/libexec/bluetooth/bluetoothd -C
sudo sdptool add SP
sudo rfcomm watch hci0 1 getty rfcomm0 115200 vt100
Token’ı girdikten sonra ekranda bıraktırma, bir de teknisyenin tabletinde kaldıysa sonra Hermetry’den rotate etmek iyi fikir.

