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

Переключение режима UPort 1150i в RS-485 2W


Recommended Posts

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

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

# 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

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

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

 

Link to comment

Тут 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]

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...