'이론 관련'에 해당되는 글 344건

  1. 2021.12.22 FFT RBW - Resolution Band Width
  2. 2021.12.07 CRC-16 / X-25
  3. 2021.11.22 PCB 동박 두께 oz
  4. 2021.11.18 mp4 container
  5. 2021.11.04 RS485 오실로스코프 파형
  6. 2021.11.01 EtherCAT - Ethernet for Control Automation Technology
  7. 2021.10.22 current loop to rs232
  8. 2021.10.10 MPPT 컨트롤러
  9. 2021.10.09 인산철 배터리
  10. 2021.09.27 WiFi 프로토콜, cipher
이론 관련/전기 전자2021. 12. 22. 16:17

FFT에서 얼마나 세밀하게 분석을 하냐의 단위

동일한 파형이라도 RBW가 낮아질수록 원본에 가까운 형태로 볼 수 있는 듯.

 

The resolution bandwidth (RBW) determines the fast-Fourier transform (FFT) bin size, or the smallest frequency that can be resolved.

[링크 : https://zone.ni.com/reference/en-XX/help/372058U-01/nirfsa/resolution_bandwidth/]

 

 

+

2023.07.14

엇.. RBW 계산에 윈도우 타입에 따른 계수가 들어간다고..

kaiser window에서 beta1=16.7일 때 k=2.23 이라는데, k 값이 그러면 amplitude 관련 보정에 대한 그 계수가 아닌가?

Where k is a window-related coeffcient, N is the number of time-domain samples used in the DFT calculation, and Fs is the sampling frequency. For the Kaiser window with beta1 = 16.7, k is about 2.23. The RBW shape factor, defned as the frequency ratio between the spectrum amplitude at 60 dB and 3 dB, is about 4:1. On the RSA5100/6100, the spectrum analysis measurement uses Equation 2 to calculate the required number of samples for the DFT based on the input span and RBW settings.

[링크 : https://download.tek.com/document/37W_17249_6_Fundamentals_of_Real-Time_Spectrum_Analysis1.pdf]

 

 

15p
RBW의 크기에 따라 측정되는 Noise의 크기도 달라짐.
Dynamic Range 확보를 위해서는 상대적으로 작은 RBW가 요구된다.

[링크 : http://ebook.pldworld.com/_eBook/-계측기-/Rohde-Schwarz/board/스펙트럼%20분석기술%20세미나.pdf]

 

+

2023.07.19

팔수록 이상한 용어만 잔뜩 나오냐 ㅠㅠ

RBW = (NENBW * samplerate) / input_length

인데 NENBW는 normalized effective noise bandwidth of the window 라..

RBW - Resolution bandwidth

Resolution bandwidth of the estimate, returned as a scalar.

The resolution bandwidth, RBW, is the smallest positive frequency, or frequency interval, that can be resolved. It is equal to NENBW*SampleRate/L, where L is the input length, and NENBW is the normalized effective noise bandwidth of the window.

The data type of RBW matches the data type of the input.

[링크 : https://kr.mathworks.com/help/dsp/ref/dsp.spectrumestimator.getrbw.html]

 

equivalent noise bandwidth 라는 함수인데..

이건 또 어떻게 구현되는거냐.. normalized가 빠졌는데 동일한건가?

bw = enbw(hamming(1000))
bw = 1.3638

bw = enbw(flattopwin(10000),44.1e3)
bw = 16.6285

[링크 : https://kr.mathworks.com/help/signal/ref/enbw.html]

'이론 관련 > 전기 전자' 카테고리의 다른 글

ac dc coupling  (0) 2022.02.23
led 와 solar panel  (0) 2022.02.22
MPPT 컨트롤러  (0) 2021.10.10
인산철 배터리  (0) 2021.10.09
220V 전원  (0) 2021.09.21
Posted by 구차니

아래가 정확하게 맞는건진 모르겠지만..

비슷하면서도 초기값과 xor 값 그리고 비트 시프트 하는 것이 전혀 다르다.

 

uint16_t crc16_ccitt_false(char* pData, int length)
{
    int i;
    uint16_t wCrc = 0xffff;
    while (length--) {
        wCrc ^= *(unsigned char *)pData++ << 8;
        for (i=0; i < 8; i++)
            wCrc = wCrc & 0x8000 ? (wCrc << 1) ^ 0x1021 : wCrc << 1;
    }
    return wCrc;
}

uint16_t crc16_x25(char* pData, int length)
{
    int i;
    uint16_t wCrc = 0xffff;
    while (length--) {
        wCrc ^= *(unsigned char *)pData++ << 0;
        for (i=0; i < 8; i++)
            wCrc = wCrc & 0x0001 ? (wCrc >> 1) ^ 0x8408 : wCrc >> 1;
    }
    return wCrc ^ 0xffff;
}

[링크 : https://stackoverflow.com/.../58768018/what-is-the-difference-between-crc-16-ccitt-false-and-crc-16-x-25]

'이론 관련 > 네트워크 관련' 카테고리의 다른 글

nrz encoding/decoding  (0) 2022.08.24
광 케이블 DAC, AOC  (0) 2022.06.30
RS485 오실로스코프 파형  (0) 2021.11.04
EtherCAT - Ethernet for Control Automation Technology  (0) 2021.11.01
WiFi 프로토콜, cipher  (0) 2021.09.27
Posted by 구차니

대개 물병에 보면 몇 oz / ml 이런식으로 표기해서 oz는 부피 단위 같은데

(다시 찾아보니 무게 단위라고)

[링크 : https://en.wikipedia.org/wiki/Ounce]

 

도대체.. PCB에 뜬금없이 왜 부피가 들어가나 검색을 해보게 됨

 

구리 1oz는 약 28.35g 이라는데

온도에 따른 부피 변화를 또 고려해야 하는건 아니겠지 -ㅁ-

아무튼 그정도 무게의 구리를 펴서 쫘악 바르면

1피트 * 1피트(약 30cm)의 PCB 기반 기분 약 35um 정도 두께로 쫘약 펴면 그 크기가 만들어 진다고

[링크 : https://my-know-how.tistory.com/3]

 

다만 얇으면 얇을수록 흐를 수 있는 전류가 낮아지고

아무래도 얇으면 열을 흡수할 수 있는 매질이 부족해지니, 이래저래 trade-off가 존재할 수 밖에 없을 듯.

게다가 원자재값 상승으로 구리가 비싸지면.. 흐음...

[링크 : https://dailylifetip.tistory.com/entry/PCB-동박두께Base-Copper-clad-관련-요약]

[링크 : https://igotit.tistory.com/entry/PCB-동박-두께-05-온스-1온스-2온스]

Posted by 구차니

 

Structure of MP4 Files 

MP4 is an extensible container file, meaning that it does not define a strict structure and allows custom structure and hierarchy for each media type. The data in the MP4 file is divided into two sections, the first containing the media-related data and the second containing metadata. The media data contains audio or video and metadata indicate flags for random access, timestamps, etc. The structures in MP4 are typically referred to as atoms or boxes. The minimum size of an atom is 8 bytes(the first 4 bytes specify size and the next 4 bytes specify type). Here is a list of the root level atoms contained in MP files:
  • ftyp: Contains the file type, description, and the common data structures used.
  • pdin: Contains progressive video loading/downloading information.
  • moov: Container for all the movie metadata.
  • moof: Container with video fragments.
  • mfra: The container with random access to the video fragment
  • mdat: Data container for media.
  • stts: sample-to-time table.
  • stsc: sample-to-chunk table.
  • stsz: sample sizes (framing)
  • meta: The container with the metadata information.

[링크 : https://docs.fileformat.com/video/mp4/]

[링크 : http://www.ftyps.com/]

[링크 : https://m.blog.naver.com/yesing1/70096278829]

 

+

22.01.24

[링크 : https://whitesnake1004.tistory.com/710]

 

+

팟 플레이어 메타 정보

General
Complete name                  : C:\file_example_MP4_480_1_5MG.mp4
Format                         : MPEG-4
Format profile                 : Base Media / Version 2
Codec ID                       : mp42 (mp42/mp41/isom/avc1)
File size                      : 1.50 MiB
Duration                       : 30 s 527 ms
Overall bit rate               : 411 kb/s
Encoded date                   : UTC 2015-08-07 09:13:02
Tagged date                    : UTC 2015-08-07 09:13:02

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : Baseline@L3
Format settings                : 3 Ref Frames
Format settings, CABAC         : No
Format settings, Reference fra : 3 frames
Format settings, GOP           : M=1, N=90
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 30 s 33 ms
Bit rate                       : 300 kb/s
Width                          : 480 pixels
Height                         : 270 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 30.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.077
Stream size                    : 1.08 MiB (72%)
Writing library                : x264 core 146 r11M 121396c
Encoding settings              : cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=48 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=infinite / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=300 / ratetol=1.0 / qcomp=0.60 / qpmin=5 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=330 / vbv_bufsize=360 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                   : UTC 2015-08-07 09:13:02
Tagged date                    : UTC 2015-08-07 09:13:02
Codec configuration box        : avcC

Audio
ID                             : 2
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Codec ID                       : mp4a-40-2
Duration                       : 30 s 527 ms
Bit rate mode                  : Constant
Bit rate                       : 112 kb/s
Channel(s)                     : 2 channels
Channel layout                 : L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Stream size                    : 417 KiB (27%)
Encoded date                   : UTC 2015-08-07 09:13:02
Tagged date                    : UTC 2015-08-07 09:13:02

size(4byte) + fourcc?(4byte) + data 라는 구조로 보면

 

ftyp 구획은 0x20 =32byte이고 이건 size의 4바이트 포함하여, 포맷의 종류를 적어두는 느낌? mp42 mp41 isom avc1

팟 플레이어 파일 정보 에서는 아래와 같이 나온다.

Codec ID                       : mp42 (mp42/mp41/isom/avc1)

 

moov 구획 0x2E30 길이(11824)

인코더의 메타정보 같기도 하고.. L-SMASH Video Handler, L-SMASH Audio Handler 이런 문구가 나온다.

 

free 구획 8 바이트 길이(내용 없음)

 

mdat 구획 0x17c690 (1,558,160 바이트)

 

일단은 mdat 로 끝나도 파일 재생에는 문제 없다.

[링크 : https://file-examples.com/index.php/sample-video-files/sample-mp4-files/]

 

+

moov 는 비디오 데이터의 인덱스 역할을 합니다.
플레이어가 이 인덱스에 접근할때까지 영상은 재생되지 않습니다.
보통 moov는 파일을 설명하는 모든 정보가 생성된 뒤에 파일의 끝에 저장됩니다.

[링크 : https://duzi077.tistory.com/118]

 

moov : 미디어의 모든 메타 데이타를 저장하는 무비 박스 (movie box)
  mvhd: 무비 헤더 박스 (movie header box)
  trak : 무비 안의 단일 트랙을 정의하는 박스 (track box) ------------ 반복 가능
    tkhd : 트랙의 특성을 기술 (track header box)
    edts : (edit box)
      elst : (edit list box)
    mdia : 트랙의 미디어 타입과 샘플 데이타 (media box)
      mdhd : 미디어의 특성을 기술 (media header box)
      hdlr : (handler reference box)
      minf : (media information box)
        hdlr : (handler reference box)
        stbl : (sample table box)
          stsd : 트랙의 디코딩에 필요한 코덱의 정보 (sample description box)
          stts : 샘플의 시간 (time-to-sample box)
          stsz : 청크 내 샘플의 크기 (sample size box)
          stsc : 청크 내 샘플의 수 (sample to chunk box)
          stco : 청크의 위치 (chunk offset box)

[링크 : https://unipro.tistory.com/104]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

SLP - Superword Level Parallelism  (0) 2022.06.02
digital twin  (0) 2022.04.13
current loop to rs232  (0) 2021.10.22
usb dwc  (0) 2021.09.23
fp16  (0) 2021.05.10
Posted by 구차니

RS485는 LSB 부터 전송하게 되는 듯?

일단 예제는 아래와 같은데

[링크 : https://www.best-microcontroller-projects.com/how-rs232-works.html]

 

대문자 J는 0x4A 이고

 

2진수로 계산하면 0b01001010 이고

 

실제로 찍은걸 보면 0이 Low고 1이 High로 매핑되고

LSB 부터니까 01010010 순서고

레벨을 바꾸어서 보면 10101101 인데

start bit 1개 들어가니 110101101 으로 보인다.

오호.. 신기해라(!)

 

'이론 관련 > 네트워크 관련' 카테고리의 다른 글

광 케이블 DAC, AOC  (0) 2022.06.30
CRC-16 / X-25  (0) 2021.12.07
EtherCAT - Ethernet for Control Automation Technology  (0) 2021.11.01
WiFi 프로토콜, cipher  (0) 2021.09.27
wake on patern matching  (0) 2021.06.10
Posted by 구차니

'이론 관련 > 네트워크 관련' 카테고리의 다른 글

CRC-16 / X-25  (0) 2021.12.07
RS485 오실로스코프 파형  (0) 2021.11.04
WiFi 프로토콜, cipher  (0) 2021.09.27
wake on patern matching  (0) 2021.06.10
rs-422  (0) 2021.06.03
Posted by 구차니

current loop <-> 232로 변환이 되는걸 보면 신기하네

전류를 이용해서 0과 1을 구분하게 하고 전송하는 걸려나?

[링크 : https://en.wikipedia.org/wiki/Digital_current_loop_interface]

 

가격이 자비가 없구만 -_-

[링크 : https://www.advantech.co.kr/products/9b61869b-9881-49a5-ae89-43f1437c14d1/bb-232cl9r/mod_aee5aa69-8a42-46eb-8bf8-10df17c4a938]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

digital twin  (0) 2022.04.13
mp4 container  (0) 2021.11.18
usb dwc  (0) 2021.09.23
fp16  (0) 2021.05.10
gps 체크섬  (0) 2020.11.17
Posted by 구차니
이론 관련/전기 전자2021. 10. 10. 21:47

태양광 패널 관련해서 찾다보니 이런게 나오네..

PWM 방식도 있긴한데 MPPT가 더 효율이 좋게 최대 전력을 뽑아내주는 듯.

 

일단 솔라패널의 특성상 최대 출력 전압이 있는데

90% 정도의 전압을 뽑아낼 때 최대 전류가 나오는 듯

근데.. 어떻게 전압을 원하는 대로 빼내지?

 

[링크 : https://en.m.wikipedia.org/wiki/Maximum_power_point_tracking]

 

 

 

[링크 : https://blog.naver.com/sipeng/220035371228]

[링크 : https://electronics.stackexchange.com/.../what-is-the-best-way-to-limit-voltage-of-a-solar-panel]

[링크 : https://electronics.stackexchange.com/questions/326271/solar-charging-with-a-super-capacitor-buffer]

'이론 관련 > 전기 전자' 카테고리의 다른 글

led 와 solar panel  (0) 2022.02.22
FFT RBW - Resolution Band Width  (0) 2021.12.22
인산철 배터리  (0) 2021.10.09
220V 전원  (0) 2021.09.21
current loop  (0) 2021.09.02
Posted by 구차니
이론 관련/전기 전자2021. 10. 9. 23:01

리튬계열인데 기존에는 코발트 이런게 들어가서

LiFePO4 를 전극으로 사용하여 희소금속의 사용을 줄이는 배터리

다만 Li-ion의 3.7V보다는 낮은 전압이 걸리고 몇개 묶으면 기존의 납축전지와 동일해서 사용하는 듯.

 

[링크 : https://blog.naver.com/youni0701/221219489064]

'이론 관련 > 전기 전자' 카테고리의 다른 글

FFT RBW - Resolution Band Width  (0) 2021.12.22
MPPT 컨트롤러  (0) 2021.10.10
220V 전원  (0) 2021.09.21
current loop  (0) 2021.09.02
라즈베리 파이 3B+ USB boot  (0) 2021.08.23
Posted by 구차니

WPA2 TKIP/AES는

프로토콜과 알고리즘(cipher) 이라는 두 개의 콤비네이션(!)으로 이뤄진 용어이다.

[링크 : https://www.netmanias.com/ko/post/blog/5376/security-wi-fi/wi-fi-wpa2-aes-ccmp-encryption-algorithm]

 

WPA : WEP 대체용

WPA2 : WPA 대체용

WPA3 : PSK(Pre-Shared Key) with SAE(Simultaneous Authentication of Equals) 대체

 

WPA-Personal = WPA-PSK

WPA-Enterpirse = RADIUS 인증 서버 요청을 필요하는 WPA

WPS = Wi-Fi Protected Setup (버튼 눌러서 암호 입력 없이 사용하는 방법)

 

Encryption protocol

TKIP = Temporal Key Integrity Protocol

CCMP = CTR mode with CBC-MAC Protocol, WPA2 에서 사용하는 AES 기반 암호화 기술

[링크 : https://en.wikipedia.org/wiki/Wi-Fi_Protected_Access]

'이론 관련 > 네트워크 관련' 카테고리의 다른 글

RS485 오실로스코프 파형  (0) 2021.11.04
EtherCAT - Ethernet for Control Automation Technology  (0) 2021.11.01
wake on patern matching  (0) 2021.06.10
rs-422  (0) 2021.06.03
FTPS  (0) 2021.02.07
Posted by 구차니