Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,7 @@ hciconfig # find the dongle, usually hci1
./pod -mode o5 -fresh -hci 1
```

On a 4.2+ radio that still settles on 185, telling the controller to offer a long data
length at connection setup is worth a try (the command does not exist before 4.2):

```
sudo hcitool -i hci0 cmd 0x08 0x0024 fb 00 48 03 # LE Write Suggested Default Data Length
```

Failing all of that, `-transport impossible` serves an app in the iOS Simulator over a
Failing that, `-transport impossible` serves an app in the iOS Simulator over a
socket, which carries whole packets and has no ATT MTU, so the radio stops mattering —
see [Run against the iOS Simulator](#run-against-the-ios-simulator).

Expand Down
6 changes: 3 additions & 3 deletions pkg/bluetooth/bluetooth.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ func (b *Ble) MTUShortfall() error {
return fmt.Errorf("the phone negotiated an ATT MTU of %d, below the %d an %s packet needs, "+
"so its writes would be truncated. A phone asks for more only of a Bluetooth 4.2 or "+
"later radio: check this one with `hciconfig hci0 version`, and if it is older, plug "+
"in a 4.2+ dongle and name it with -hci (it will not be hci0). On a 4.2+ radio, "+
"`sudo hcitool -i hci0 cmd 0x08 0x0024 fb 00 48 03` is worth a try. Or run the app in "+
"the iOS Simulator over -transport impossible, which has no MTU",
"in a 4.2+ dongle and name it with -hci (it will not be hci0). A Pi that reports "+
"older than it should be is usually missing its Bluetooth firmware: see the README. "+
"Or run the app in the iOS Simulator over -transport impossible, which has no MTU",
mtu, needed, b.profile.Mode.Description())
}

Expand Down
Loading