Inhaltsverzeichnis:

Comunicação Serial Com und Dragonboard 410c Usando Mezzanine 96boards Sensoren - Gunook
Comunicação Serial Com und Dragonboard 410c Usando Mezzanine 96boards Sensoren - Gunook

Video: Comunicação Serial Com und Dragonboard 410c Usando Mezzanine 96boards Sensoren - Gunook

Video: Comunicação Serial Com und Dragonboard 410c Usando Mezzanine 96boards Sensoren - Gunook
Video: Перепрошить DragonBoard 410c. 2024, Juli
Anonim
Kommunikation Serial Com und Dragonboard 410c Usando Mezzanine 96boards Sensoren
Kommunikation Serial Com und Dragonboard 410c Usando Mezzanine 96boards Sensoren

Objetivo desse tutorial und meistens als etapas notables para configurar oder ambiente de desenvolvimento, de modo que seja possível comunicar com a Dragonboard 410c através de um computer / notebook usando comunicação Serial.

Schritt 1: Vorraussetzungen:

Os pré requisitos são:

Hardware

  • (1) Computer/Notebook
  • (1) Drachenbrett 410c (Pfeil)
  • (1) 96boards Sensoren Mezzanine (Pfeil)
  • (1) Cabo-Mikro-USB (Amazon)

Software

  • Kundenserien;
  • Linux Linaro basiert auf Debian.

Schritt 2: Plugando O 96boards Sensoren Mezzanine Na Dragonboard 410c

Plugando O 96boards Sensoren Mezzanine Na Dragonboard 410c
Plugando O 96boards Sensoren Mezzanine Na Dragonboard 410c

Eine erstklassige Verarbeitung und Plug-in von 96boards-Sensoren Mezzanine (Mezzanine) auf Dragonboard 410c (DB410c).

O Mezzanine funciona como umshield für ein Dragonboard 410c, erlaubt die Erweiterung um weitere Hardware-Rekursionen. Além disso, utiliza conectores padrão para sensores, atuadores e inputes da família Grove.

Schritt 3: Preparando O Ambiente Na Máquina Host

Eine Vorbereitung für die Umgebungseinstellung ohne Host besteht aus einer Konfiguration für serielle Clients für den Zugriff auf ein Dragonboard 410c.

Existem diversos programas com função de cliente serial disponíveis na Internet, segue abaixo um GUI für Windows und Linux:

Fenster

O Putty ist ein Programm für Emulação-Endungen mit unterstützten Protokollen für Raw, Telnet, Rlogin, SSH und Serial.

Laden Sie die Seite herunter und installieren Sie sie auf einem Computer.

Linux

Para acessar a porta serial no Linux, vamos usar o Software GNU Screen.

Seguem os passos para instalação em sistemas com:

APT-GET:

apt-get-Installationsbildschirm

YUM:

yum Installationsbildschirm

Installiert eine serielle Client-Installation auf einem Maquina-Host, wenn sie über eine serielle Schnittstelle für die Kommunikation mit einem Dragonboard 410c verfügt.

No próximo passo vamos entender como fazer a conexão física entre o Host e o Alvo.

Schritt 4: Conexão Serial Entre einen Dragonboard 410c E O Host

Conexão Serial Entre a Dragonboard 410c E O Host
Conexão Serial Entre a Dragonboard 410c E O Host
Conexão Serial Entre a Dragonboard 410c E O Host
Conexão Serial Entre a Dragonboard 410c E O Host

Um dos recursos oferecidos pelo Mezzanine é o Konverter USB para Serial.

Os passos necessários para usar o conversor usb-serial é:

  1. Identificar o USBSerial kein Mezzanine;
  2. Plugar oder Micro-USB kein Mezzanine;
  3. Plugar o USB kein Host.

Schritt 5: Identificando Qual Porta Serial Foi Aberta No Host

Identificando Qual Porta Serial Foi Aberta No Host
Identificando Qual Porta Serial Foi Aberta No Host
Identificando Qual Porta Serial Foi Aberta No Host
Identificando Qual Porta Serial Foi Aberta No Host

Após ter Concluído als etapas anteriores com sucesso, oder próximo passo é identificar a nível de sistema operacional qual porta serial foi aberta no Host. Segue abaixo oder caminho para fazer essa identificação no Windows und Linux:

Fenster

Para Identificar o ID da porta serial que foi aberta no Windows, Basta acessar o gerenciador de dispositivos e em seguir expandir a aba Portas (COM und LPT).

Linux

Kein Linux, kein Befehl, der für die Identifizierung von seriellen Ports verwendet wird, die für die Verwendung in den USA oder für den Host und für alle e oder dmesg verwendet werden. Para filtrar a pesquisa, iremos passar o parametro " | grep tty":

dmesg | grep tty

[0,000000] Konsole [tty0] aktiviert [0.654581] 0000:00:03.3: ttyS0 bei E/A 0x1830 (irq = 17, base_baud = 115200) ist ein 16550A [4855.339254] usb 3-1: FTDI USB Serial Device Converter jetzt angeschlossen zu ttyUSB0

Schritt 6: Acessando ein Dragonboard 410c über serielle Usando Windows

Acessando ein Dragonboard 410c über serielle Usando Windows
Acessando ein Dragonboard 410c über serielle Usando Windows
Acessando ein Dragonboard 410c über serielle Usando Windows
Acessando ein Dragonboard 410c über serielle Usando Windows
Acessando ein Dragonboard 410c über serielle Usando Windows
Acessando ein Dragonboard 410c über serielle Usando Windows

Für den Zugriff auf Dragonboard 410c auf einem Host mit einem Betriebssystem für Windows, mit der Verwendung von Software Putty.

Erforderliche Schritte zur Konfiguration uma nova conexão serial no Putty:

  1. Abrir o Putty (Bild 1)
  2. Wählen Sie eine Option Serieller Verbindungstyp aus. (Bild 2)
  3. Preencher o Serial line e Speed com as informações de comunicação (Bild 3)
  4. Clique em Open para iniciar a sessão (Bild 4)
  5. Tecle Enter para aparecer o terminal (Bild 5)

Beobachtungen:

  • Ein Geschwindigkeitspadrão für den Zugriff auf ein Dragonboard 410c über Serial é 115200 bps;
  • Para esse exemplo, vamos berücksichtigen eine Porta COM9 como ativa para comunicação.

Schritt 7: Acessando ein Dragonboard 410c über serielle Usando Linux

Vamos usar o mesmo conceito de passar a Porta e Velocidade como parametro para iniciar uma conexão serial.

Lembrando que a velocidade usada para comunicar com a Dragonboard 410c é 115200 bps.

Bildschirm

Bildschirm PORTA VELOCIDADE

Para fazer eine comunicação no Linux, genaue com permissão root.

Betrachten Sie ein Porta /dev/ttyUSB0, temos:

sudo-Bildschirm /dev/ttyUSB0 115200

O resultado é o acesso ao terminal do sistema:

root@linaro-a:

Dica:

O mesmo serve para usuários de macOS.

screen /dev/tty.usbserial-08-15 115200