Jump to content
Форум по продукции MOXA

shi

Пользователи
  • Posts

    3
  • Joined

  • Last visited

Posts posted by shi

  1. Тут https://moxa.ru/shop/usb/1_port/uport-1150i/ есть Драйвер для Linux Kernel 5.x (версия 5.1 от 02.09.2021)

    Но он не собирается, множество ошибок вида:

    ~/mxu11x0/driver/mxu11x0.c:501:17: note: (near initialization for ‘mxu3001_1port_device.write_room’)
    ~/mxu11x0/driver/mxu11x0.c:502:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatib
    le-pointer-types]

     

  2. Дорбрый день.

    Не получается переключить режим:

    # setserial /dev/ttyUSB0 port 1
    # setserial -G /dev/ttyUSB0
    /dev/ttyUSB0 uart unknown port 0x0000 irq 0 baud_base 921600 spd_normal

    OS == Ubuntu "20.04.6 LTS (Focal Fossa)"
    Ядро 5.15.0-75-generic #82~20.04.1-Ubuntu SMP Wed Jun 7 19:37:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

    Драйвер "из ядра"

    Нужнен ли новый драйвер или переключать надо както иначе ?

     

×
×
  • Create New...