분류 전체보기66 Dockerfile 작성 개요 본 문서는 Dockerfile, docker-compose.yml, 도커 실행 명령 관련하여 자주 사용하는 특정 기능을 위해 필요한 자주 안쓰지만 필요한 기능을 위한 명령어 등을 정리한 문서이다. Dockerfile uvicorn으로 fastapi 서버를 돌리는 경우 FROM python:3.9 WORKDIR /app/ EXPOSE 9000 COPY ./app.py /app/ COPY ./utils/file1.py /app/utils/ COPY ./utils/file1.py /app/utils/ COPY ./router/router1.py /app/router/ COPY ./requirements.txt /app/ RUN pip3 install -r requirements.txt CMD uvicor.. 2023. 9. 14. [AWS/임베디드] S3 Bucket을 이용한 펌웨어 업데이트 기능 구현 / Python 오랜만에 티스토리로 돌아온 글은 AWS의 서비스를 임베디드 시스템, IOT 서비스에 가볍게 이용하는 요소들을 다루고자 한다. 첫 번째로 S3 Bucket을 이용한 펌웨어 업데이트 기능이다. 기존 소스들을 찾아본 결과 다 파일명을 알고 있어야 하던데 본 글에서는 최신 파일만 가져와 업데이트 하는 방향으로 구현하였다. 0. IAM 권한으로 Access Key 발급 외부 Python 으로 접근하기 위해서는 IAM 사용자 등록과 Access Key 발급이 필요하다. AWS 콘솔에서 IAM으로 이동한다. https://us-east-1.console.aws.amazon.com/iamv2/home?region=ap-northeast-2#/home https://us-east-1.console.aws.amazon.c.. 2023. 7. 12. AES128 History 기존 DES의 한계점이 부각됨에 따라 NIST에서 신규 블록 암호(Advanced Encryption Standard) 제안을 공고 Requirements 128 bit block length 3 types of key : 128, 192, 256 bits Superior stability comapred to known algorithms Effecient S/W & H/W application → Rijndael Algorithm(2001) was selected Features Iterations not Feistel cipher Block size : 128 bits Key length : 128, 192, or 256 btis Number of rounds vary by key l.. 2023. 1. 9. 시리얼 통신 : UART Universal Asynchronous Reciever-Transmitter UART는 총 4개의 연결선(VCC, GND, RX, TX)으로 구성된 full-duplex communication의 종류이다. 가장 일반적인 데이터 구조는 10bit로 8bit 데이터와 start bit(0), stop bit(1)로 구성된다. 이 경우 parity bit를 추가하지 않는 8N1(8-bit, no parity bit, 1 stop bit)의 구조를 가진다. 통신을 위해 reciever와 transmittor는 아래 세 가지 사항을 동기화하여야 한다. transmission speed(baud rate) : 9600, 115200 등... data length : 몇 비트의 데이터를 보내/받는가 START(0.. 2022. 11. 11. CAN Bus (2) CAN Protocol Basics CAN Frame types Data Frame : contains data Remote Frame : request data frame with specific identification Error Frame : report error Overload Frame : delays data/remote frames if process time is reloaded Logic Before we deal with dataframe, we need to configure binary logic. logical 0 is always superior than logical 1. This concept is important as this is how the bus determin.. 2022. 11. 7. CAN Bus (1) Introduction to CAN bus Controller Area Network was developed by BOSCH as a robust vehicle bus standard designed to allow microcontrollers and devices comminicate without a host computer. Therefore CAN Bus targets distributed control systems including vehicles to auto factory industries. History of CAN CAN 2.0(Classic CAN, 1Mb/s, 8bytes payload) was introduced in 1983 by BOSCH with ISO 11898 spe.. 2022. 11. 7. 이전 1 2 3 4 5 6 7 ··· 11 다음 반응형