Bluetooth 5 Unsupported for MOD Dwarf

Just received my MOD Dwarf, and I’m exploring all the features.
I’m using the USB B port to connect my RaspberryPi MIDI host. So I do need the wireless feature for editing.
When I plug in a Bluetooth 5.0 dongle, it says unsupported on the Enable Bluetooth page.
The dongle that I’m using is the following one:
https://www.amazon.com/gp/product/B08Z74KJMW/
I saw there are some related discussions in the forum, but no obvious solution.
Please help.
Thanks!
Bridge

Hi there!

This must be another small incompatibility in our bluetooth info parser.
When we made it bluetooth 5 was not really a thing yet…

So I have a small request, and then can make this device work.
Connect the unit over USB, SSH into it and run a single command, post the output.

ssh root@192.168.51.1 hciconfig -a

(password is “mod”)

Thanks.

PS: For wireless setup, you might want to experiment with WiFi - MOD Wiki

1 Like

Hello @falkTX. I’m using a dongle and the Mod Dwarf shows me UNSUPPORTED

Running the command, shows me:

hci0:   Type: BR/EDR  Bus: USB
        BD Address: 33:03:30:0B:78:D6  ACL MTU: 360:4  SCO MTU: 0:0
        UP RUNNING 
        RX bytes:847 acl:0 sco:0 events:32 errors:0
        TX bytes:360 acl:0 sco:0 commands:32 errors:0
        Features: 0xff 0xff 0xcd 0xfa 0xdb 0xbf 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: ''
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous, 
        HCI Version:  (0x9)  Revision: 0x810
        LMP Version:  (0x9)  Subversion: 0x2512
        Manufacturer: Cambridge Silicon Radio (10)

I can’t confirm now if it’s Bluetooth 5.0 too. But I will check!

EDIT: How can I check this? I borrowed it and the owner doesn’t remember which version it is.

Sorry being late on this.
Let’s just try to force it, we need to edit a few files and test.

ssh into the unit, and just do

mount / -o remount,rw
nano /sbin/net.bnep # or vi if you prefer

Change the workaround section to this:

# Workaround for new bluetooth devices for which `hciconfig` is unable to report version from
if [ -n "${BT_CURRENT}" ] && /usr/bin/echo ${BT_CURRENT} | /usr/bin/grep -q "^(0x.*)"; then
    # convert hexadecimal to decimal, while removing surrounding parenthesis
    BT_RAWVERSION=$(/usr/bin/printf "%d" $(echo "${BT_CURRENT}" | /usr/bin/sed -e "s/^(\(.*\)).*/\1/"))
    # if raw version is 6 or higher, it is supported
    if [ "${BT_RAWVERSION}" -ge 6 ]; then
        BT_CURRENT=${BT_REQUIRED}
    fi
fi

then (re)plug the bluetooth usb stick and check if it works via

# activate discovery for 2 minutes
mod-bluetooth discovery

# check if all went ok
mod-bluetooth status

Let me know how it works. If this ends up working for you I will put it in the next 1.11-RC3

1 Like

Hello, @falkTX. After apply the change, I can connect with it.


But, when I try to access http://192.168.50.1/ (I get this link by the docs), it doesn’t works. Appears:
“ERR_CONNECTION_TIMED_OUT” on Chrome and something similar on Firefox.

2 Likes

You disabled mobile data and WiFi, correct?
As far as I know, bluetooth network is unreachable in Android until we disable those 2.

If you can verify on a non-android device would be great, just to see if this bluetooth connection really works or not.
The Android situation is something unrelated to the version reported by the usb stick, and has been reported a few other times as well.

Yes. Actually, timeout occurs when WiFi is on. When Is down, chrome informs me “No internet” and firefox “Isn’t possible to connect”

I tried with a laptop (Kubuntu 21.04 and Windows 10 boot). The connection doesn’t works. Also,

Also, I noted that, if I turn down the Bluetooth of my mobile after connected with dwarf, the Dwarf continues appearing connected until I reboot it. I don’t know if is a expected (?issue?) or it’s a indication that this Bluetooth dongle doesn’t works.
If I remove the dongle after, the mod enables to try to connect again. But I only successfully connected other device (other android 8) after I reboot the dwarf. And, also, the mobile is connected, but I can’t access 192.168.0.1 on it :frowning:

I tried again (rebooted dwarf, tried to connect android 8), and now can’t connect.

After reboot it again, I tried with Iphone 7 and a connection was established, but without access to mod-ui by Safari. In this case, after I turn down the mobile Bluetooth, appeared disconnected :man_shrugging:t4:

Unfortunately, there are some randomly, then I couldn’t describe what exactly occurred, because I couldn’t retest and obtain the exactly result.

By the way, the iPhone 7 Bluetooth is 4.2, not 5. I don’t know what is the dongle version :expressionless: