Putty как подключиться к com порту
Перейти к содержимому

Putty как подключиться к com порту

  • автор:

Putty как подключиться к com порту

START HERE » Shell Access — Windows » Establish a serial connection with PuTTY

  1. In PuTTY, double-check that you are in the “Session” screen. Session tab in PuTTY
  2. Select the “Serial” radio button under “Connection type”. Serial radio button in PuTTY
  3. Specify the destination you want to connect to:
    • Serial Line: use the COM # (e.g. “COM3”) noted in Identify the serial COM port
    • Speed: use “115200” for the baud rate

Serial line and speed text fields in PuTTY

  • Click “Open” to connect to the board. Open connection button in PuTTY
  • When you see a blank screen, press the Enter key. For Intel® Edison boards running older firmware: You may need to press the Enter key twice. Blank screen in PuTTY after connecting to Intel® Edison
  • Once connected you will see a login prompt. Type in “root” for the username and press Enter. Login as root user
  • For more info on using PuTTY such as saving profiles, read Using PuTTY »

    Использование PuTTy/KiTTy для работы по Serial (COM) соединению

    Использование PuTTy/KiTTy для работы по Serial (COM) соединению

    PuTTy и её форк KiTTy, являются известными программами для осуществления сетевых подключений по самым разным протоколам, в том числе по SSH и Telnet. Помимо этого, данными программами поддерживается работа через интерфейс серийного порта, что очень часто необходимо для настройки различного оборудования. Для использования программы для работы по COM интерфейсу, нужно на начальном экране программы выбрать пункт «Serial» и в строке «Serial line» вписать корректное имя COM порта — по умолчанию там будет COM1. Рядом будет находится поле «Speed«, где можно так же вручную вписать необходимую скорость соединения. Однако, соединение по COM интерфейсу имеет несколько своих специфичных настроек, таких как биты данных, стоповые биты и контроль четности, которые на данном экране отсутствуют.
    Находятся данные настройки на последнем пункте настроек «Serial» в интерфейсе PuTTy (на скриншоте ниже выделен оранжевой линией).
    В KiTTy же, данный пункт находится на предпоследнем месте (на скриншоте ниже выделен оранжевой линией), но по содержанию абсолютно одинаков.

    Была ли эта статья Вам полезна?

    Что в статье не так? Пожалуйста, помогите нам её улучшить!

    Using PuTTY for Serial

    PuTTY can replace HyperTerminal for serial communications. It provides logging, a large scroll back buffer, and many other features. You are probably already using PuTTY for SSH and Telnet, but you can also use it for Serial TTY console connections.

    Note: Using PuTTY is illegal in countries where encryption is outlawed. If in doubt, seek legal advice before downloading it. The Telnet-only binary (PuTTYtel) is unrestricted by any cryptography laws.

    If you use an Apple Mac computer, refer to: Mac’s and serial TTY’s.

    Setup

      Start ➤ Control Panel ➤ Device Manager
      — OR —
      Right-Click My Computer, and select: PropertiesDevice Manager

    Windows Device Manager

    2 Open PuTTY, and click Serial from the Category: Connection.

    Edit the settings, eg: COM1, 9600, 8, 1, None. Flow control: None.

    PuTTY Connection Setttings

    3 Select Category: Session, click the Serial radio button,

    PuTTY Session Setttings

    4 If you want to save this session, enter a name in Saved Sessions and click Save.

    This will ensure that you have quick access to your commonly used sessions. Settings are saved within PuTTY, so copying the application to a different machine will also copy your saved sessions.

    5 Click Open and a serial session will start.

    PuTTY Active Session

    Session logging

    To create a text log file, right click on the PuTTY menu bar, and select Change Settings.

    PuTTY Change Settings

    PuTTY Session logging

    • Click Logging from the Category: Session
    • Click the Log All Session Output radio button.
    • Click Browse and select a folder and filename for your log file, eg: C:\Users\Mike\Desktop\putty.log
    • Click Apply, and the log file should appear in your chosen location.

    Scroll-back Buffer

    To lengthen the scroll-back buffer size, right click on the PuTTY menu bar, and select Change Settings.

    PuTTY Change Settings

    PuTTY Scrollback Buffer

    • Click the Category: Window
    • Enter a large number at Lines of Scrollback
    • Click Apply.

    Управление устройствами через COM-порт/COM-USB в Putty

    Использовать для подключения, при отсутствии COM-порта в ПК, можно переходник COM-USB.

    После подключения кабеля к ПК и устройству нужно выполнить в консоли:

    Если ничего подобного нет, то идем в гугл. В данном случае видим, что устройство у нас подключено к ttyUSB0.

    Запускаем Putty с правами АДМИНИСТРАТОРА (иначе будет вылетать ошибка при подключении). Вибираем Serial и вписываем наше устройтво.

    Добавить комментарий

    Ваш адрес email не будет опубликован. Обязательные поля помечены *