Skip to content

kujiranodanna/IOT-House_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IOT-House_docker

  • IOT-House_docker is a reconstruction of IOT-House_old_pc based on amd64/ubuntu:22.04 or i386/ubuntu18.04.

  • Requires docker privilege mode to use gpio's CP2112(Silicon Laboratories Single-Chip HID USB to SMBus Master Bridg)Sunhayato MM-CP2112.

  • Wireless GPIOmono wireless TWELITE and MONOSTICK

  • Execute as follows.
    docker run -itd --privileged --name iot-house_docker --device=/dev/ttyUSB0:/dev/ttyUSBTWE-Lite -p 8022:22 -p 80:80 -p 443:443 kujiranodanna/iot-house_docker:latest

  • The Docker engine can only run on Linux. Windows and Mac won't work.

  • It also works on Windows Docker Desktop, but it takes some time, but it's still a great challenge to be able to operate USB-connected devices directly from a container. --> As of August 10, 2024, operation has been confirmed on Windows 11.

    • Install the latest PowerShell 7.4.4 or later and usbipd-win_x.msi.

    • Then you need to bind and attach the USB device.

into PowerShell
PowerShell 7.4.4
usbipd list    
Connected:
BUSID  VID:PID    DEVICE                                                        STATE
.
2-1    10c4:ea90  USB input devices <-- cp2112                                  Not shared
2-2    0403:6001  USB Serial Converter <-- TWELITE                              Not shared
.
usbipd bind --busid 2-1
usbipd bind --busid 2-2
usbipd attach --wsl --busid 2-1
usbipd attach --wsl --busid 2-2
.
usbipd list    
connected:
BUSID  VID:PID    DEVICE                                                        STATE
.
2-1    10c4:ea90  USB input devices                                           Attached
2-2    0403:6001  USB Serial Converter                                        Attached
.
docker run -itd --privileged --name iot-house_docker --device=/dev/ttyUSB0:/dev/ttyUSBTWE-Lite -p 8022:22 -p 80:80 -p 443:443 kujiranodanna/iot-house_docker:latest
If you don't have TWELITE, follow the steps below
docker run -itd --privileged --name iot-house_docker -p 8022:22 -p 80:80 -p 443:443 kujiranodanna/iot-house_docker:ubuntu22.04-latest