Skip to content

Instantly share code, notes, and snippets.

@wkz
Created March 13, 2018 09:17
Show Gist options
  • Save wkz/a5a6875fa3b05ea2dca526349c85d194 to your computer and use it in GitHub Desktop.
Save wkz/a5a6875fa3b05ea2dca526349c85d194 to your computer and use it in GitHub Desktop.
Moxa USB Console on Linux

Moxa's ethernet switches come with a USB console that is not recognized by the Linux kernel. Moxa have drivers available for download on their website, but only for Windows.

The device shows up in lsusb as:

Bus X Device Y: ID 110a:3001 Moxa Technologies Co., Ltd. 

This is just a Texas Instruments TUSB3410 with a custom firmware though, and fortunately it will work with the standard firmware.

To enable it, make sure that the module is loaded:

/ # modprobe ti_usb_3410_5052

Add the custom VID/PID to the driver:

/ # echo 110a 3001 >/sys/bus/usb-serial/drivers/ti_usb_3410_5052_1/new_id

Finally, symlink the standard firmware to the name the Linux expects:

/ # cd /lib/firmware/moxa
/lib/firmware/moxa # ln -s ../ti_3410.fw moxa-3001.fw

You can now plug in the USB cable and a new usb-serial device will be added to your system.

@dtraenapp
Copy link

Thanks, i have missed this and had no time for a research.

@hboomsma
Copy link

Thanks for your research!

I followed your guide and got the following:

[453678.805630] usb 2-1.7: new full-speed USB device number 7 using ehci-pci
[453678.950605] usb 2-1.7: New USB device found, idVendor=110a, idProduct=3001
[453678.950609] usb 2-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[453678.950611] usb 2-1.7: Manufacturer: Moxa Inc.̖Moxa USB Console
[453678.951922] ti_usb_3410_5052 2-1.7:1.0: TI USB 3410 1 port adapter converter detected
[453679.984872] usb 2-1.7: ti_download_firmware - error downloading firmware, -110
[453679.986217] ti_usb_3410_5052: probe of 2-1.7:1.0 failed with error -110

Do you happen to know how to fix this, or does this mean the firmware of the Moxa Switch is incompatible?

@kdart-brt
Copy link

You are a lifesaver! Thanks!

@slm23
Copy link

slm23 commented May 10, 2024

Correction for working in 2024:
ln -s ../ti_3410.fw.zst moxa-3001.fw.zst
as the fw files all now are compressed and have the .zst appended.
This saved us from bricking our little moxa. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment