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

adegtyarev

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

    7
  • Joined

  • Last visited

adegtyarev's Achievements

Новичок

Новичок (1/5)

0

Reputation

  1. 1. Есть NPort 5150, подключенный к GPRS-модему. Существует необходимость с сервера дозваниваться до контроллера и получать данные с него. Данная схема успешно работает на Windows 7. 2. На этом же хосте есть другая VM (Debian 10 i686), там возникают те же самые ошибки при компиляции. 3. Да, вроде всё делаю по инструкции. Мне кажется дело именно в том, что Debian находится на виртуальной машине. Есть какие то нюансы при этом?
  2. Аналогичные ошибки. =============================================================================== Copyright (C) 2002-2019 Moxa Inc. All Rights Reserved. MOXA NPort Server Real TTY Driver Ver4.0 Installation. System Information: Kernel 4.19.0-17-amd64; Machine x86_64. =============================================================================== Building driver... If you want to use secure communication with target, you might choose [y] to enable the SSL function. Note: This function support RealCOM with secure mode only. Do you want to enable secure function? [y/N]. n make -C /lib/modules/4.19.0-17-amd64/build M=/home/degtyand/moxa modules make[1]: вход в каталог «/usr/src/linux-headers-4.19.0-17-amd64» CC [M] /home/degtyand/moxa/npreal2.o /home/degtyand/moxa/npreal2.c: In function ‘npreal_close’: /home/degtyand/moxa/npreal2.c:987:20: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if (info->flags & ASYNC_CLOSING) { ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c:987:20: note: each undeclared identifier is reported only once for each function it appears in /home/degtyand/moxa/npreal2.c:1003:21: error: ‘ASYNC_NORMAL_ACTIVE’ undeclared (first use in this function); did you mean ‘ASYNC_CALLOUT_ACTIVE’? if ( info->flags & ASYNC_NORMAL_ACTIVE ) ^~~~~~~~~~~~~~~~~~~ ASYNC_CALLOUT_ACTIVE /home/degtyand/moxa/npreal2.c: In function ‘npreal_hangup’: /home/degtyand/moxa/npreal2.c:1605:20: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if (info->flags & ASYNC_CLOSING) ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_check_modem_status’: /home/degtyand/moxa/npreal2.c:1633:22: error: ‘ASYNC_CHECK_CD’ undeclared (first use in this function); did you mean ‘TTY_PORT_CHECK_CD’? if ( (info->flags & ASYNC_CHECK_CD) && (is_dcd_changed)) ^~~~~~~~~~~~~~ TTY_PORT_CHECK_CD /home/degtyand/moxa/npreal2.c: In function ‘npreal_block_til_ready’: /home/degtyand/moxa/npreal2.c:1698:22: error: ‘ASYNC_NORMAL_ACTIVE’ undeclared (first use in this function); did you mean ‘ASYNC_CALLOUT_ACTIVE’? if ( info->flags & ASYNC_NORMAL_ACTIVE ) ^~~~~~~~~~~~~~~~~~~ ASYNC_CALLOUT_ACTIVE /home/degtyand/moxa/npreal2.c:1754:46: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if ( tty_hung_up_p(filp) || (info->flags & ASYNC_CLOSING) ) ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_startup’: /home/degtyand/moxa/npreal2.c:1853:21: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if ( info->flags & ASYNC_INITIALIZED ) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED /home/degtyand/moxa/npreal2.c: In function ‘npreal_shutdown’: /home/degtyand/moxa/npreal2.c:2084:23: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if ( !(info->flags & ASYNC_INITIALIZED) ) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED /home/degtyand/moxa/npreal2.c:2117:19: error: ‘ASYNC_NORMAL_ACTIVE’ undeclared (first use in this function); did you mean ‘ASYNC_CALLOUT_ACTIVE’? info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE|ASYNC_INITIALIZED|ASYNC_CLOSING); ^~~~~~~~~~~~~~~~~~~ ASYNC_CALLOUT_ACTIVE /home/degtyand/moxa/npreal2.c:2117:78: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE|ASYNC_INITIALIZED|ASYNC_CLOSING); ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_port_init’: /home/degtyand/moxa/npreal2.c:2526:19: error: ‘ASYNC_CHECK_CD’ undeclared (first use in this function); did you mean ‘TTY_PORT_CHECK_CD’? info->flags &= ~ASYNC_CHECK_CD; ^~~~~~~~~~~~~~ TTY_PORT_CHECK_CD /home/degtyand/moxa/npreal2.c: In function ‘npreal_set_serial_info’: /home/degtyand/moxa/npreal2.c:2897:21: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if ( info->flags & ASYNC_INITIALIZED ) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED /home/degtyand/moxa/npreal2.c: In function ‘npreal_net_write’: /home/degtyand/moxa/npreal2.c:3889:20: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if (info->flags & ASYNC_CLOSING) ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_do_session_recovery’: /home/degtyand/moxa/npreal2.c:4240:20: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if (info->flags & ASYNC_INITIALIZED) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED make[4]: *** [/usr/src/linux-headers-4.19.0-17-common/scripts/Makefile.build:315: /home/degtyand/moxa/npreal2.o] Ошибка 1 make[3]: *** [/usr/src/linux-headers-4.19.0-17-common/Makefile:1562: _module_/home/degtyand/moxa] Ошибка 2 make[2]: *** [Makefile:146: sub-make] Ошибка 2 make[1]: *** [Makefile:8: all] Ошибка 2 make[1]: выход из каталога «/usr/src/linux-headers-4.19.0-17-amd64» make: *** [Makefile:72: module] Ошибка 2 Check Driver... FAILED !!! Install Not Completed !
  3. Возникает ошибка компиляции драйвера MOXA NPort Server Real TTY Driver Ver4.0.17 в Debian 10 (виртуальная машина) Хостовая ОС - VMware ESXi 5.5.0 Гостевая ОС - Debian 10 (Buster) Логи: =============================================================================== Copyright (C) 2002-2020 Moxa Inc. All Rights Reserved. MOXA NPort Server Real TTY Driver Ver4.0.17 Installation. System Information: Kernel 4.19.0-17-amd64; Machine x86_64. =============================================================================== Building driver... If you want to use secure communication with target, you might choose [y] to enable the SSL function. Note: This function support RealCOM with secure mode only. Do you want to enable secure function? [y/N]. n make -C /lib/modules/4.19.0-17-amd64/build M=/home/degtyand/moxa modules make[1]: вход в каталог «/usr/src/linux-headers-4.19.0-17-amd64» CC [M] /home/degtyand/moxa/npreal2.o /home/degtyand/moxa/npreal2.c: In function ‘npreal_close’: /home/degtyand/moxa/npreal2.c:991:20: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if (info->flags & ASYNC_CLOSING) { ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c:991:20: note: each undeclared identifier is reported only once for each function it appears in /home/degtyand/moxa/npreal2.c:1007:21: error: ‘ASYNC_NORMAL_ACTIVE’ undeclared (first use in this function); did you mean ‘ASYNC_CALLOUT_ACTIVE’? if ( info->flags & ASYNC_NORMAL_ACTIVE ) ^~~~~~~~~~~~~~~~~~~ ASYNC_CALLOUT_ACTIVE /home/degtyand/moxa/npreal2.c: In function ‘npreal_hangup’: /home/degtyand/moxa/npreal2.c:1609:20: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if (info->flags & ASYNC_CLOSING) ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_check_modem_status’: /home/degtyand/moxa/npreal2.c:1637:22: error: ‘ASYNC_CHECK_CD’ undeclared (first use in this function); did you mean ‘TTY_PORT_CHECK_CD’? if ( (info->flags & ASYNC_CHECK_CD) && (is_dcd_changed)) ^~~~~~~~~~~~~~ TTY_PORT_CHECK_CD /home/degtyand/moxa/npreal2.c: In function ‘npreal_block_til_ready’: /home/degtyand/moxa/npreal2.c:1702:22: error: ‘ASYNC_NORMAL_ACTIVE’ undeclared (first use in this function); did you mean ‘ASYNC_CALLOUT_ACTIVE’? if ( info->flags & ASYNC_NORMAL_ACTIVE ) ^~~~~~~~~~~~~~~~~~~ ASYNC_CALLOUT_ACTIVE /home/degtyand/moxa/npreal2.c:1758:46: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if ( tty_hung_up_p(filp) || (info->flags & ASYNC_CLOSING) ) ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_startup’: /home/degtyand/moxa/npreal2.c:1857:21: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if ( info->flags & ASYNC_INITIALIZED ) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED /home/degtyand/moxa/npreal2.c: In function ‘npreal_shutdown’: /home/degtyand/moxa/npreal2.c:2088:23: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if ( !(info->flags & ASYNC_INITIALIZED) ) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED /home/degtyand/moxa/npreal2.c:2121:19: error: ‘ASYNC_NORMAL_ACTIVE’ undeclared (first use in this function); did you mean ‘ASYNC_CALLOUT_ACTIVE’? info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE|ASYNC_INITIALIZED|ASYNC_CLOSING); ^~~~~~~~~~~~~~~~~~~ ASYNC_CALLOUT_ACTIVE /home/degtyand/moxa/npreal2.c:2121:78: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE|ASYNC_INITIALIZED|ASYNC_CLOSING); ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_port_init’: /home/degtyand/moxa/npreal2.c:2530:19: error: ‘ASYNC_CHECK_CD’ undeclared (first use in this function); did you mean ‘TTY_PORT_CHECK_CD’? info->flags &= ~ASYNC_CHECK_CD; ^~~~~~~~~~~~~~ TTY_PORT_CHECK_CD /home/degtyand/moxa/npreal2.c: In function ‘npreal_set_serial_info’: /home/degtyand/moxa/npreal2.c:2901:21: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if ( info->flags & ASYNC_INITIALIZED ) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED /home/degtyand/moxa/npreal2.c: In function ‘npreal_net_write’: /home/degtyand/moxa/npreal2.c:3907:20: error: ‘ASYNC_CLOSING’ undeclared (first use in this function); did you mean ‘ASYNC_SAK’? if (info->flags & ASYNC_CLOSING) ^~~~~~~~~~~~~ ASYNC_SAK /home/degtyand/moxa/npreal2.c: In function ‘npreal_do_session_recovery’: /home/degtyand/moxa/npreal2.c:4260:20: error: ‘ASYNC_INITIALIZED’ undeclared (first use in this function); did you mean ‘VM_UNINITIALIZED’? if (info->flags & ASYNC_INITIALIZED) ^~~~~~~~~~~~~~~~~ VM_UNINITIALIZED make[4]: *** [/usr/src/linux-headers-4.19.0-17-common/scripts/Makefile.build:315: /home/degtyand/moxa/npreal2.o] Ошибка 1 make[3]: *** [/usr/src/linux-headers-4.19.0-17-common/Makefile:1562: _module_/home/degtyand/moxa] Ошибка 2 make[2]: *** [Makefile:146: sub-make] Ошибка 2 make[1]: *** [Makefile:8: all] Ошибка 2 make[1]: выход из каталога «/usr/src/linux-headers-4.19.0-17-amd64» make: *** [Makefile:74: module] Ошибка 2 Check Driver... FAILED !!! Install Not Completed !
  4. Установка аттенюаторов положительно скажется на состоянии оборудования?
  5. Параллельно в том же направлении стоит такая же пара медиаконверторов, работают отлично около 5 лет. Проблемный работал то же самое время. Аттенюаторов нет.
  6. На другой стороне такой же медиаконвертор. Линк около 500 м. В момент зависания температуру прощупать не удалось, после нескольких часов - не скажу что сильно горячая. В настоящий момент проблемный медиаконвертор заменен на Allied Telesyn AT-MC103XL. Связь пока стабильна. Подожду пару дней чтобы убедится что дело не в оптическом кабеле.
  7. Доброго дня. На медиаконверторе CSM-200-1218 пропадает линк оптического соединения. После перезагрузки по питанию линк снова поднимается. Время работы случайно от 10 минут до 20 часов. В чем может быть дело? Перегрев?
×
×
  • Create New...