RFCOMM TTY support not available

REPRODUCIBILITY: Always
OS VERSION: 5.0.0.68
HARDWARE: Sony Xperia 10 II
UI LANGUAGE: EN
REGRESSION: Yes

DESCRIPTION:

There is no support for RFCOMM TTY in kernel.

zgrep CONFIG_BT_RFCOMM_TTY /proc/config.gz
# CONFIG_BT_RFCOMM_TTY is not set

PRECONDITIONS:

Installed SFOS.

STEPS TO REPRODUCE:

  1. open terminal

  2. zgrep CONFIG_BT_RFCOMM_TTY /proc/config.gz

EXPECTED RESULT:

RFCOMM TTY enabled in kernel config:

CONFIG_BT_RFCOMM_TTY=y

ACTUAL RESULT:

# CONFIG_BT_RFCOMM_TTY is not set

MODIFICATIONS:

ADDITIONAL INFORMATION:

That sounds more like a feature request, no?

1 Like

What are the avantages to have RFCOMM?

hciattach for serial bluetooth devices will work.

Edit: added serial

As I recall correctly it used to work then a regression rather.

It creates /dev/rfcommX for bluetooth serial devices. A gps bt receiver for instance to use it then in gpsd.

In 4.5.0.18 it wasn’t set, either (but CONFIG_BT_RFCOMM was and most likely still is):

,---
| Sailfish OS 4.5.0.18 (Struven ketju)
'---
[root@Xperia10II-DualSIM ~]# gunzip -c /proc/config.gz | grep CONFIG_BT_RFCOMM
CONFIG_BT_RFCOMM=y
# CONFIG_BT_RFCOMM_TTY is not set
[root@Xperia10II-DualSIM ~]# 

I have not seen any working setup with hciattach. It looks like it works only with bt serial devices only. How to connect to receiver with bt address on channel X?

Edit:

While tinkering wit hciattach it hangs my phone and I had to hard reset.

Still is but I need TTY device and I wonder why is this disabled. I see no reason for this.

As this is a Kernel config switch it it device/adaptation specific. E.g. the C2 kernel does have it enabled.

Check out this post.