Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы Telnet. Перевод выполнен на 100%.

    Other languages:
    English • ‎русский

    Содержание

    • 1 Connecting to a remote server using Telnet
    • 2 Create a user in HK-Telnet:
    • 3 Connecting with the “Command Line” tool:
    • 4 Work in iRidium Studio:
    • 5 Sending commands to the server from the i3 pro app:

    Connecting to a remote server using Telnet

    The example shows a process of creating a driver in iRidium Studio on the basis of AV & Custom Systems (TCP) driver.

    documentation was last updated on 14.8.2023

    Download:
    • project example

    To process the received data and/or control the equipment, you can use the AV_Custom_Systems_(TCP,_UDP,_RS232) driver. To implement it, you need the Iridium Studio installed on your PC and any Telnet server. In the example we will connect to the HK-Telnet server.

    Create a user in HK-Telnet:

    1 Launch HK-Telnet Server

    2 Select the “Create User” option

    HK-Telnet.png

    3 Specify a username and password for the user

    HK-Telnet createuser.jpg
    HK-Telnet createpass.jpg

    Connecting with the “Command Line” tool:

    1 Launch the “Command Line” app

    2 Enter the “telnet” command

    Cmd telnet.jpg

    3 Enter the “open” command and the IP address of the remote server you want to connect to

    Cmd telnet open.jpg

    4 Specify a username and password of the created user

    Cmd telnet auth.jpg

    After a successful connection, it is possible to run commands from the terminal

    Cmd telnet authcomplete.jpg

    Work in iRidium Studio:

    1 Launch the iRidium Studio and create the AV & Custom Systems (TCP) project driver. In the properties of the driver set the Host - IP address of the server, Port - 23 to which you will perform authorization and send commands from the i3 pro app.

    2 To perform authorization use JS methods with the Script Editor tool built into iRidium Studio. Create a new script in Studio and paste this code, in the ‘login’ and ‘password’ items specify the data of the user you created in the Telnet Server:

    IR.AddListener(IR.EVENT_RECEIVE_TEXT, IR.GetDevice('AV_Device'), function(text)
    {
      IR.Log("text = " + text);
     
      if (text.indexOf('Username') != -1)
      {
        IR.Log("login")
        IR.GetDevice('AV_Device').Send(['login',13,10]);
      } else if (text.indexOf('Password') != -1)
      {
        IR.Log("password")
        IR.GetDevice('AV_Device').Send(['password',13,10]);
      }
    })

    3 After entering all the input data, launch the project and test its functionality. If the data is correct, the logs will display a message indicating the user login (USERNAME = TestUser) and confirmation of the connection “Welcome to Hadi Kiamarsi TELNET Server” and the IP address.

    Log succ.png

    Sending commands to the server from the i3 pro app:

    1 Create 2 Button elements to send commands to the server. In this example, the commands “ping” and “tree” (viewing a list of all folders in the current directory) are considered.

    I3pro buttons.jpg

    2 Create a function for each button with the “Send” method of command execution

    function ping(){
      IR.GetDevice('AV_Device').Send(['ping iridi.com',13,10]);        
    };
     
    function tree(){
      IR.GetDevice('AV_Device').Send(['tree',13,10]);
    }

    3 As a result of running the commands in the i3 pro logs you get the following data

    I3pro ping iridi.jpg
    I3pro tree.jpg
    Источник — «https://dev.iridi.com/index.php?title=Telnet/en&oldid=133597»
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy