Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB2CAN connection #1007

Open
GeorgeJirka opened this issue Jan 13, 2025 · 0 comments
Open

USB2CAN connection #1007

GeorgeJirka opened this issue Jan 13, 2025 · 0 comments

Comments

@GeorgeJirka
Copy link

GeorgeJirka commented Jan 13, 2025

Operating system

Kali Linux 2024.4

Description

Base linux:

  • PRETTY_NAME="Kali GNU/Linux Rolling"
  • NAME="Kali GNU/Linux"
  • VERSION_ID="2024.4"
  • VERSION="2024.4"
  • VERSION_CODENAME=kali-rolling
  • ID=kali
  • ID_LIKE=debian
  • BUILD_ID=20250103T215459Z

└─$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 009: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

or

└─$ usb-devices
T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=01 Dev#= 9 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0403 ProdID=6001 Rev=04.00
S: Manufacturer=FTDI
S: Product=USB2CAN
S: SerialNumber=FT3EP162
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

And the problem is that I can't see the connected usb device in windows 7.

docker version

└─$ docker version
Client:
Version: 26.1.5+dfsg1
API version: 1.45
Go version: go1.23.4
Git commit: a72d7cd
Built: Sun Dec 29 18:36:47 2024
OS/Arch: linux/amd64
Context: default

Server:
Engine:
Version: 26.1.5+dfsg1
API version: 1.45 (minimum version 1.24)
Go version: go1.23.4
Git commit: 411e817
Built: Sun Dec 29 18:36:47 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.24ds1
GitCommit: 1.7.24
ds1-4
runc:
Version: 1.1.15+ds1
GitCommit: 1.1.15+ds1-1+b1
docker-init:
Version: 0.19.0
GitCommit:

Docker compose

services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "7e"
DISK1_SIZE: "32G"
ARGUMENTS: "-usb -device usb-host,vendorid=0x0403,productid=0x6001"
volumes:
- /home/pless/windock/install:/data
devices:
- /dev/kvm
- /dev/net/tun
- /dev/bus/usb
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m

Docker log

windows | ❯ Starting Windows for Docker v4.08...
windows | ❯ For support visit https://github.com/dockur/windows
windows | ❯ CPU: Intel Core i5 8500 | RAM: 7/8 GB | DISK: 190 GB (ext4) | KERNEL: 6.11.2-amd64...
windows |
windows |
windows | ❯ Booting Windows (legacy) using QEMU v9.2.0...
windows | qemu-system-x86_64: Warning: speed mismatch trying to attach usb device "USB2CAN" (full speed) to bus "ehci.0", port "2" (high speed)
windows |

windows | qemu-system-x86_64: Warning: speed mismatch trying to attach usb device "USB2CAN" (full speed) to bus "ehci.0", port "2" (high speed)
windows | qemu-system-x86_64: Warning: speed mismatch trying to attach usb device "USB2CAN" (full speed) to bus "ehci.0", port "2" (high speed)
windows | ❯ Windows started succesfully, visit http://localhost:8006/ to view the screen...
windows | O
windows | S
windows | (v
windows | e
........

Screenshots (optional)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant