INHOUDSOPGAWE:

Comunicação Serial Com a Dragonboard 410c Usando Mezzanine 96boards Sensors: 7 stappe
Comunicação Serial Com a Dragonboard 410c Usando Mezzanine 96boards Sensors: 7 stappe

Video: Comunicação Serial Com a Dragonboard 410c Usando Mezzanine 96boards Sensors: 7 stappe

Video: Comunicação Serial Com a Dragonboard 410c Usando Mezzanine 96boards Sensors: 7 stappe
Video: Visualizando os bytes da comunicação serial do arduino e ESP32 com um analisador lógico. 2024, Julie
Anonim
Comunicação Serial Com in Dragonboard 410c Usando Mezzanine 96boards Sensors
Comunicação Serial Com in Dragonboard 410c Usando Mezzanine 96boards Sensors

Ons kan hierdie tutoriaal as 'n noodsaaklike funksie vir 'n omskakeling van die omvangvolume van 'n draaiboek 410c -reeks gebruik.

Stap 1: Voorvereistes:

Os pré requisitos são:

Hardeware

  • (1) Rekenaar/notaboek
  • (1) Dragonboard 410c (pyltjie)
  • (1) 96 borde sensors mezzanine (pyl)
  • (1) Cabo-mikro-USB (Amazon)

Sagteware

  • Cliente Serial;
  • Linux kan op Debian gebaseer word.

Stap 2: Plugando O 96boards Sensors Mezzanine Na Dragonboard 410c

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

'N Vooraanstaande proses om 96 boordsensors mezzanine (mezzanine) en Dragonboard 410c (DB410c) te gebruik.

O mezzanine funciona com um um shield for a Dragonboard 410c, permitindo expandable more recursos of hardware. Além disso, utiliza conectores padrão para sensores, atuadores e inputs da família Grove.

Stap 3: Voorbereiding van 'n Ambiente Na Máquina -gasheer

'N Voorbereidende ambiente de desenvolvimento no Host bevat 'n konfigurasie van 'n seriële kliënt vir 'n Dragonboard 410c.

Daar is verskillende programme wat met die reeks op die internet bedien kan word, sowel as vir Windows en Linux:

Windows

O Putty é um programa para emulação de terminais que suporta protocolos Raw, Telnet, Rlogin, SSH e Serial.

Laai die vorige weergawe af en installeer dit as 'n gasheer.

Linux

Vir toegang tot 'n seriële weergawe sonder Linux, gebruik ook sagteware -GNU -skerm.

Ons kan die volgende installeer:

APT-KRY:

apt-get installasie skerm

YUM:

yum installasie skerm

Ons kan ook 'n reeksklas installeer met 'n seriële gasheer, en dit kan ook 'n voorbereiding wees vir 'n kombinasie van 'n Dragonboard 410c.

Daar is geen moontlike toegang tot die gasheer van die gasheer of die gasheer nie.

Stap 4: Seriële toegang tot 'n Dragonboard 410c E O Host

Seriële toegang tot 'n Dragonboard 410c E O Host
Seriële toegang tot 'n Dragonboard 410c E O Host
Seriële toegang tot 'n Dragonboard 410c E O Host
Seriële toegang tot 'n Dragonboard 410c E O Host

Ons kan ook terugkeer na mezzanine of USB -omskakelaar vir reekse.

Ons benodig usos of usb-reeks omskakelaar:

  1. Identifiseer o USBSerial no Mezzanine;
  2. Koop of mikro-USB sonder mezzanine;
  3. Plaas USB of gasheer.

Stap 5: Identificando Qual Porta Serial Foi Aberta Geen gasheer

Identificando Qual Porta Serial Foi Aberta Geen gasheer nie
Identificando Qual Porta Serial Foi Aberta Geen gasheer nie
Identificando Qual Porta Serial Foi Aberta Geen gasheer nie
Identificando Qual Porta Serial Foi Aberta Geen gasheer nie

As 'n gevolgtrekking, kan ons ook 'n identifikasie van 'n funksionele stelsel vir die seriële foi aberta no Host gee. Dit kan ook gekenmerk word deur 'n identifikasie van Windows en Linux:

Windows

Vir identifikasie van 'n seriële e -pos wat in Windows gebruik kan word, kan ons ook 'n uitbreiding van 'n portaal (COM en LPT) verkry.

Linux

Geen Linux kan ook gebruik word vir die identifikasie van 'n seriële reeks vir ons as gasheer vir die hele gasheer nie. Para filtrar and pesquisa, iremos passar o parâmetro "| grep tty":

dmesg | grep tty

[0.000000] console [tty0] enabled [0.654581] 0000: 00: 03.3: ttyS0 at I/O 0x1830 (irq = 17, base_baud = 115200) is 'n 16550A [4855.339254] usb 3-1: FTDI USB Serial Device converter nou aangeheg aan ttyUSB0

Stap 6: Kry toegang tot 'n Dragonboard 410c via seriële Usando -vensters

Toegang tot Dragonboard 410c via seriële Usando -vensters
Toegang tot Dragonboard 410c via seriële Usando -vensters
Toegang tot Dragonboard 410c via seriële Usando -vensters
Toegang tot Dragonboard 410c via seriële Usando -vensters
Toegang tot Dragonboard 410c via seriële Usando -vensters
Toegang tot Dragonboard 410c via seriële Usando -vensters

Vir toegang tot Dragonboard 410c -verskaffers van gasheer vir bedryfstelsel Windows, of gebruikte sagteware Putty.

Passos benodigdhede vir die konfigurasie van 'n nuwe reeks met 'n reeks stopverf:

  1. Abrir o Putty (prent 1)
  2. Kies 'n opsie Seriële em Verbindingstipe. (prent 2)
  3. Preencher of reeksreël en snelheidskom as informasie -inligting (prent 3)
  4. Klik op Open foraicis a sessão (prent 4)
  5. Tecle Enter for aparecer or terminal (prent 5)

Waarnemings:

  • 'N Velocidade padrão vir toegang tot 'n Dragonboard 410c via Serial en 115200 bps;
  • As voorbeeld kan u dit ook oorweeg om COM9 te gebruik as 'n kombinasie.

Stap 7: Toegang tot Dragonboard 410c via Serial Usando Linux

Ons kan dit ook gebruik om 'n geskikte weergawe van die reeks te gebruik.

Ons kan 'n velocidade gebruik vir 'n kombinasie met 'n Dragonboard 410c en 115200 bps.

Skerm

skerm PORTA VELOCIDADE

Vir fazer a comunicação no Linux, precisa ser with permissão root.

Oorweeg 'n porta /dev /ttyUSB0, soos:

sudo skerm /dev /ttyUSB0 115200

As gevolg hiervan kan u ook die terminale stelsel:

root@linaro-a:

Dica:

Ons bedien ook die gebruik van macOS.

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

Aanbeveel: