Translated from Türkçe by AI ·
I did the same thing in the lab, there are two separate issues.For pairing, run bt-agent from the bluez-tools package in NoInputNoOutput mode. In this mode no passkey is requested:
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
Because of what Ms. Derya said, I didn’t keep the device visible all the time. There is a small script that runs bluetoothctl discoverable on and pairable on for 2 minutes when a button on the panel is pressed, and turns both off when the time is up.The reason getty doesn’t appear on the SPP side is most likely that bluetoothd is not running in compatibility mode. On Bookworm the SPP profile is not registered by default. Start bluetoothd with -C, then add the serial port:
# /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
After entering the token, don’t leave it on the screen. And if it stayed on a technician’s tablet, it’s a good idea to rotate it later from 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.

