You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed bitbox-bridge and tried to use it with Rabby in Brave and Chrome. I made sure no other wallet like the BitBox app is running. All I get when trying to connect the BitBox02 to Rabby is the following error:
It's very frustrating, I really like the BitBox02 but if I can't make this work in the next few days, I need to buy a Trezor or a Ledger just in order to use dapps safely 😤
@pozylon could you test with this build of the bridge? I built it from this commit: benma@d7116f3
[2023-05-08T04:55:36Z INFO bitbox_bridge::usb] Notified!
[2023-05-08T04:55:36Z INFO bitbox_bridge::usb] Found BitBox02 at IOService:/AppleARMPE/arm-io@10F00000/AppleT811xIO/usb-drd1@2280000/AppleT8112USBXHCI@01000000/usb-drd1-port-hs@01100000/BitBox02@01100000/IOUSBHostInterface@0/AppleUserUSBHostHIDDevice!
[2023-05-08T04:55:36Z INFO bitbox_bridge::usb] Found BitBox02 at IOService:/AppleARMPE/arm-io@10F00000/AppleT811xIO/usb-drd1@2280000/AppleT8112USBXHCI@01000000/usb-drd1-port-hs@01100000/BitBox02@01100000/IOUSBHostInterface@1/AppleUserUSBHostHIDDevice!
[2023-05-08T04:55:36Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:36Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:36Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:37Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:37Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:37Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:37Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:37Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
[2023-05-08T04:55:37Z INFO bitbox_bridge::web] Client connected: 127.0.0.1:53083
@benma I've logged the usage_page with hidapi-rs which differs by device, but the interface_number always returns 0, so neither 1 or -1
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] 61904
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] Found BitBox02 at IOService:/AppleARMPE/arm-io@10F00000/AppleT811xIO/usb-drd0@82280000/AppleT8112USBXHCI@00000000/usb-drd0-port-hs@00100000/BitBox02@00100000/IOUSBHostInterface@1/AppleUserUSBHostHIDDevice!
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] 65535
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] Found BitBox02 at IOService:/AppleARMPE/arm-io@10F00000/AppleT811xIO/usb-drd0@82280000/AppleT8112USBXHCI@00000000/usb-drd0-port-hs@00100000/BitBox02@00100000/IOUSBHostInterface@0/AppleUserUSBHostHIDDevice!
Thanks that is helpful. It seems that your HID driver is listing the two interfaces of the BitBox02 as two separate devices, but with different usage_page numbers.
Here is a bridge version that filters for the usage page, so you can try to run this instead of the official release with Rabby to quick-fix your problem.
Activity
[-]Cannot connect BitBox02 on M1 Mac[/-][+]Cannot connect BitBox02 on M2 Mac[/+]pozylon commentedon May 6, 2023
I have the same issue but the intel Mac Mini doesn't work either so I doubt that this is an issue related to mac version.
pozylon commentedon May 6, 2023
It's very frustrating, I really like the BitBox02 but if I can't make this work in the next few days, I need to buy a Trezor or a Ledger just in order to use dapps safely 😤
benma commentedon May 6, 2023
@pozylon
Is the BitBoxApp and all other wallet apps closed? Only one app can talk to the BitBox02 at once.
Are you using VPN?
@linearray
Strange, I think it should show it once, not twice.
Could you try connecting to myetherwallet.com using Firefox and Chrome? On FireFox the bridge is used, on Chrome webHID is used without the bridge.
benma commentedon May 6, 2023
@pozylon what does http://127.0.0.1:8178/api/v1/devices show for you when trying to connect?
pozylon commentedon May 7, 2023
It shows 2 devices as soon as i select the orientation on the bitbox02
pozylon commentedon May 7, 2023
Yes, everything closed, bridge running showing 2 devices, MEV works on chrome but does not on firefox:

pozylon commentedon May 7, 2023
There is only 1 difference in the devices shown:
...%2FIOUSBHostInterface%401%2FAppleUserUSBHostHIDDevice","product":"BitBox02"}]}
...%2FIOUSBHostInterface%400%2FAppleUserUSBHostHIDDevice","product":"BitBox02"}]}
@benma maybe that helps?
pozylon commentedon May 7, 2023
@benma
Some more info:
Firefox just calls the devices api 10 times again and again without every trying to connect to the websocket, then gives up:
pozylon commentedon May 7, 2023
Looks like it's a problem of the client js lib not accepting more than 1 device in the list.
benma commentedon May 8, 2023
Thanks for debugging @pozylon. Now we need to figure out why the bridge lists two devices instead of one. I can't reproduce the issue. Any chance you know some Rust? https://github.com/digitalbitbox/bitbox-bridge/. If not, I'll try to figure out what could be going wrong by studying the code.
Potentially it registers the U2F interface as well, though I thought that was being filtered.
benma commentedon May 8, 2023
bitbox-bridge.zip
@pozylon could you test with this build of the bridge? I built it from this commit: benma@d7116f3
pozylon commentedon May 8, 2023
Yeah it looks like it has something to do with that but i'm not very skilled at rust or hardware.
Nevertheless it seems to relate to the hidapi:
ruabmbua/hidapi-rs#89
The devices are only different by path and the bridge doesn't parse the path / filter interface id's
benma commentedon May 8, 2023
@pozylon you can run the above with
./bitbox-bridge -p 2342or some other random port and then checking http://127.0.0.1:2342/api/v1/devicespozylon commentedon May 8, 2023
same issue still with that binary
1 remaining item
benma commentedon May 8, 2023
@pozylon could you do:
pip3 install hidapithen post the output of
python3 -c 'import hid; print(hid.enumerate())'?pozylon commentedon May 8, 2023
Here you go @benma
pozylon commentedon May 8, 2023
@benma I've logged the usage_page with hidapi-rs which differs by device, but the interface_number always returns 0, so neither 1 or -1
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] 61904
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] Found BitBox02 at IOService:/AppleARMPE/arm-io@10F00000/AppleT811xIO/usb-drd0@82280000/AppleT8112USBXHCI@00000000/usb-drd0-port-hs@00100000/BitBox02@00100000/IOUSBHostInterface@1/AppleUserUSBHostHIDDevice!
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] 65535
[2023-05-08T06:19:32Z INFO bitbox_bridge::usb] Found BitBox02 at IOService:/AppleARMPE/arm-io@10F00000/AppleT811xIO/usb-drd0@82280000/AppleT8112USBXHCI@00000000/usb-drd0-port-hs@00100000/BitBox02@00100000/IOUSBHostInterface@0/AppleUserUSBHostHIDDevice!
pozylon commentedon May 8, 2023
This!
libusb/hidapi#531
Fixed already: libusb/hidapi#534
benma commentedon May 8, 2023
Thanks that is helpful. It seems that your HID driver is listing the two interfaces of the BitBox02 as two separate devices, but with different usage_page numbers.
Here is a bridge version that filters for the usage page, so you can try to run this instead of the official release with Rabby to quick-fix your problem.
bitbox-bridge.zip
Thanks for the link above - I'll check if/how I can pull in this fix and if ask you to try it if you don't mind.
pozylon commentedon May 8, 2023
I can confirm that it works with both Rabby for Chrome and MyEtherWallet for Firefox.
hidapi-async: update libusb/hidapi submodule of the hidapi dep
hidapi-async: update libusb/hidapi submodule of the hidapi dep
benma commentedon May 9, 2023
@pozylon I updated the libusb/hidapi dependency in the bridge. Could you test also this version?
bitbox-bridge.zip
If it works I'll make a new release. Thank you.
pozylon commentedon May 9, 2023
@benma amazing, it works, but weirdly the path is now much shorter:
hidapi-async: update libusb/hidapi submodule of the hidapi dep
hidapi-async: update libusb/hidapi submodule of the hidapi dep
hidapi-async: update libusb/hidapi submodule of the hidapi dep
benma commentedon May 11, 2023
BitBoxBridge 1.5.1 is now released for macOS.