조회 수 9452 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

라즈베리파이3와 PC간 Serial 통신 테스트

 

라즈베리파이는 yocto로 빌드한 임베디드 리눅스이다.

 

UART 활성화

 

블루투스가 시리얼 포트를 사용하고 있어서 블루투스를 disable해야한다.

 

sd카드의 첫번째 파티션에서

raspberrypi.png

 

config.txt파일을 편집기로 연다.

config.txt.png

 

마지막 줄에 다음줄을 추가하고 저장한다.

dtoverlay=pi3-disable-bt

 

PC와 라즈베리파이(USB to Serial(TTL))를 연결

USB2TTL.png

 

라즈베리파이3의 Tx, Rx, Ground 핀은 아래 그림을 참조한다.

pins.png

 

PC에서 터미널을 실행하고 Serial(COM Port)연결

 

라즈베리파이에 SD카드를 넣고 부팅한다.

 

SSH로 접속해서

 

Baud Rate 설정

stty -F /dev/ttyAMA0 115200
 
문자열 전송
echo -e "hello world\r\n" > /dev/ttyAMA0
 
PC의 터미널 결과
helloworld.png

  1. 라즈베리파이3와 PC간 Serial 통신 테스트

    Date2019.05.20 Category개발환경 Bymakersweb Views9452
    Read More
  2. No Image

    yocto의 몇가지 중요한 용어 및 개념

    Date2019.06.21 Category개발환경 Bymakersweb Views7429
    Read More
  3. No Image

    libopencm3 활용, Cortex-M 펌웨어 개발

    Date2019.07.14 CategoryMCU Bymakersweb Views5303
    Read More
  4. STM32(Cortex-M3) 개발 - Firmware Flashing

    Date2019.07.23 CategoryMCU Bymakersweb Views6076
    Read More
  5. STM32(Cortex-M3) 개발환경구축 with PlatformIO

    Date2019.07.26 Category개발환경 Bymakersweb Views6849
    Read More
  6. 블루투스(Bluetooth) 기초

    Date2019.08.02 Category통신 Bymakersweb Views8857
    Read More
  7. STM32(Cortex-M3) LED Blink with PlatformIO

    Date2019.08.05 Category펌웨어 Bymakersweb Views5410
    Read More
  8. STM32 & LibOpenCM3, printf함수사용

    Date2019.08.08 Category펌웨어 Bymakersweb Views5369
    Read More
  9. Yocto를 이용한 wandboard BSP 및 Qt5 SDK 빌드

    Date2019.09.29 Category개발환경 Bymakersweb Views5595
    Read More
  10. No Image

    mainline 커널 및 etnaviv 를 사용하는 Wandboard(Freescale i.MX6Q)에서 eglfs를 사용

    Date2019.10.17 Category운영체제 Bymakersweb Views5130
    Read More
  11. 임베디드 리눅스 부팅 절차

    Date2019.10.21 Category운영체제 Bymakersweb Views10706
    Read More
  12. ESP-IDF 의 A2DP리뷰 (ESP32)

    Date2019.10.28 CategoryMCU Bymakersweb Views13132
    Read More
  13. ESP32 블루투스 스피커(A2DP Sink)

    Date2019.10.29 Category통신 Bymakersweb Views6612
    Read More
  14. HelloWorld 커널 모듈과 yocto 레시피 추가 방법

    Date2019.12.09 Category드라이버 Bymakersweb Views10401
    Read More
  15. No Image

    임베디드 시스템에서 베어메탈(Bare metal) 이란?

    Date2019.12.11 Category펌웨어 Bymakersweb Views8495
    Read More
  16. 임베디드 비대칭 멀티 프로세싱(asymmetric multiprocessing) 시스템

    Date2019.12.31 Category운영체제 Bymakersweb Views4599
    Read More
  17. RISC-V : 자유롭고 개방 된 RISC 명령어 세트 아키텍처

    Date2020.01.01 CategoryMCU Bymakersweb Views4583
    Read More
  18. No Image

    디바이스 트리(Device Tree, DT)

    Date2020.01.12 Category운영체제 Bymakersweb Views9825
    Read More
  19. No Image

    플랫폼 디바이스 및 드라이버에 대해서

    Date2020.02.01 Category드라이버 Bymakersweb Views11698
    Read More
  20. No Image

    라즈베리파이 부팅 가능한 sd카드 파티션 생성

    Date2020.04.15 Category운영체제 Bymakersweb Views5353
    Read More
Board Pagination Prev 1 2 3 Next
/ 3