모종의 음모/HDLC2022. 8. 26. 15:47

아.. 이런 변수가 하나 더 있었던 건가..

111111 가 전송되려면 1111101 이런식으로 전송되어야 한다.

(그런데.. 진짜 데이터가 111110 이면 어떡해야 하지? 어짜피 5개가 되었으니 1111100이 되는건가?)

Because a flag sequence consists of six consecutive 1-bits, other data is coded to ensure that it never contains more than five 1-bits in a row. This is done by bit stuffing: any time that five consecutive 1-bits appear in the transmitted data, the data is paused and a 0-bit is transmitted.

HDLC transmits bytes of data with the least significant bit first (not to be confused with little-endian order, which refers to byte ordering within a multi-byte field).

[링크 : https://en.wikipedia.org/wiki/High-Level_Data_Link_Control]

 

The NRZI coding scheme transmits a 0 bit as a signal transition, and a 1 bit as no change. In this case, bit stuffing is most easily described as the insertion of a 0 bit after a long run of 1 bits.

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

 

[링크 : https://copycode.tistory.com/79]

[링크 : https://itwiki.kr/w/HDLC]

[링크 : https://goodgid.github.io/What-is-HDLC/]

 

+

 

 

0,1 눈대중으로 변환해서 연속된 0이나 1에 대한 오류가 존재하지만

전반적으로 비트가 뒤집힌 형태로 전송됨을 확인함. (바이트 내에서 LSB가 MSB에 존재함)

7E 11 22 33 1E 0A 7F
01111110 00010001 00100010 00110011 00011110 00001010 01111111 (raw)
01111110 10110100 10010110 10001000 10111110 10100110 01111111 (nrzi)

11111110 01011010 11010010 00100010 11111010 11001010 11111110 (수신데이터)
01111111 01011010 01001011 01000100 01011111 01010011 01111111 (수신데이터 바이트 단위 순서 변경)

 

'모종의 음모 > HDLC' 카테고리의 다른 글

HDLC bit stuff  (0) 2022.08.29
hdlc nrzi encoder / decoder (bit stuff 제외)  (0) 2022.08.29
HDLC FCS ccitt-1 16bit crc  (0) 2021.12.06
HDLC 프로토콜(High level Data Link Control)  (0) 2021.07.27
Posted by 구차니
파일방2022. 8. 26. 14:04

쥬라기 공원 기억이 잘 안나서.. 동영상을 찾아보는데 여전히 기억이 안난다(!)

[링크 : https://en.wikipedia.org/wiki/Fsn_(file_manager)]

 

아무튼 SGI 웍스에서 3d 파일 탐색기로 제공되던 녀석의 요즘(?) 버전이 fsv

[링크 : https://www.reddit.com/r/ManjaroLinux/comments/byqttv/is_it_possible_to_install_the_fsnfusion_file/]

[링크  : https://www.youtube.com/watch?v=bo3G0xJSqJs]

[링크  : http://fsv.sourceforge.net/]

'파일방' 카테고리의 다른 글

kchmviewer  (0) 2023.06.14
barrier - fork of synergy  (0) 2023.01.02
tsdb influxdb  (0) 2022.07.05
rufus - symbol 'grub_register_command_lockdown' not found  (0) 2022.06.27
codesys  (0) 2022.05.18
Posted by 구차니
개소리 왈왈/블로그2022. 8. 26. 10:55

이제 이메일/다음 계정을 카카오로 강제 통합 -_-

'개소리 왈왈 > 블로그' 카테고리의 다른 글

티스토리 복구는 개뿔  (0) 2022.10.17
티스토리 드뎌 복구  (2) 2022.10.16
해피빈 기부  (0) 2022.08.22
티스토리 레이아웃 왕창 깨지네  (0) 2022.08.08
근 한달만의 블로그 정리  (2) 2022.07.21
Posted by 구차니
프로그램 사용/minicom2022. 8. 25. 11:36

-H를 주면 hex mode로 출력되는데 작동중에 모드 전환하는건 없나?

 

$ minicom --help
Usage: minicom [OPTION]... [configuration]
A terminal program for Linux and other unix-like systems.

  -b, --baudrate         : set baudrate (ignore the value from config)
  -D, --device           : set device name (ignore the value from config)
  -s, --setup            : enter setup mode
  -o, --noinit           : do not initialize modem & lockfiles at startup
  -m, --metakey          : use meta or alt key for commands
  -M, --metakey8         : use 8bit meta key for commands
  -l, --ansi             : literal; assume screen uses non IBM-PC character set
  -L, --iso              : don't assume screen uses ISO8859
  -w, --wrap             : Linewrap on
  -H, --displayhex       : display output in hex
  -z, --statline         : try to use terminal's status line
  -7, --7bit             : force 7bit mode
  -8, --8bit             : force 8bit mode
  -c, --color=on/off     : ANSI style color usage on or off
  -a, --attrib=on/off    : use reverse or highlight attributes on or off
  -t, --term=TERM        : override TERM environment variable
  -S, --script=SCRIPT    : run SCRIPT at startup
  -d, --dial=ENTRY       : dial ENTRY from the dialing directory
  -p, --ptty=TTYP        : connect to pseudo terminal
  -C, --capturefile=FILE : start capturing to FILE
  -F, --statlinefmt      : format of status line
  -R, --remotecharset    : character set of communication partner
  -v, --version          : output version information and exit
  -h, --help             : show help
  configuration          : configuration file to use

These options can also be specified in the MINICOM environment variable.
This variable is currently unset.
The configuration directory for the access file and the configurations
is compiled to /etc/minicom.

Report bugs to <minicom-devel@lists.alioth.debian.org>.

 

-H, --displayhex
Turn on output in hex mode.

[링크 : https://www.systutorials.com/docs/linux/man/1-minicom/]

'프로그램 사용 > minicom' 카테고리의 다른 글

minicom에서 stty로 터미널 폭 조절하기  (0) 2023.10.24
minicom lf에 cr 붙이기  (0) 2023.01.05
minicom 로그 저장하기  (0) 2021.09.16
minicom timestamp  (0) 2021.09.16
minicom 폭 늘리기  (0) 2021.01.28
Posted by 구차니
Programming/web 관련2022. 8. 24. 18:05

음.. 환상이 컸었나..

지금 다시 보는데 POST로 id, pw를 plain text로 보내는 센스..

서버가 https로 보안채널이 되었다고 가정하지 않으면 의미없는 짓 같은 느낌..

 

[링크 : https://llshl.tistory.com/28]

[링크 : https://minho-jang.github.io/development/7/]

[링크 : https://velopert.com/2389]

 

SSO 구현에 JWT가 가능한진 좀 찾아봐야겠다.

[링크 : https://brunch.co.kr/@sangjinkang/36]

'Programming > web 관련' 카테고리의 다른 글

chart.js log 스케일  (0) 2023.03.31
chatGPT님 가라사대 Server-Sent Events (SSE)  (0) 2023.03.15
quirks mode  (0) 2022.08.08
grid와 flex  (0) 2022.07.04
markdown 문법 - 체크박스  (0) 2020.10.15
Posted by 구차니

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

cobs  (0) 2023.05.25
PAM4  (0) 2023.01.16
광 케이블 DAC, AOC  (0) 2022.06.30
RS485 오실로스코프 파형  (0) 2021.11.04
EtherCAT - Ethernet for Control Automation Technology  (0) 2021.11.01
Posted by 구차니
게임/닌텐도 스위치2022. 8. 23. 18:07

하다하다 안되서 가장 낮은 난이도로 시작

 

그냥 우직하게 딜 넣는거 보다는

촐싹대면서 샷건날려서 경직에 걸리면 달려가서 목 뽑아 버리는게 주요 패턴..

근데 생각해보니.. 둠1시절에도 촐싹대면서 탄막에 가까운 느낌으로 했던거 같긴하..다?

 

아무튼 요즘 둠 가이의 이미지. 맞으면 죽는거니 안 맞으면 됨!

 

다만 키보드, 마우스가 아닌 조이스틱이라 좀 더 조준이 힘들고 속이 터지는 차이가 있을뿐..

 

장점

1. 그래픽 좋다.

2. 피!!! 폭력!!! 글로리 킬!

3. 권총인데 저격하는 느낌 (차지 샷)

 

단점

1. 독 모드로는 안해봤는데 휴대모드에서 자막을 보려면 눈에 힘줘야 한다. 그래서 어지러웠나..

2. 3d 멀미 없는데 생겼습니...다? 배고파서 어지러운건지 지하철에서 해서 어지러운건진 감이 안옴

3. 진동이 약하다.

4. 사운드는 신경을 안써서 잘 모르겠지만 각도에 따라 자연스럽게 소리가 줄어야 하는데 갑자기 확 줄어서 아쉽.

5. 아니 원래 이렇게 둠 가이가 촐싹대며 날아 다녔던가.. 우직하게 맞아가며 좀 쏘지 않았...나?

   (적고 보니 크라이시스도 좀 리메이크 해줘 ㅠㅠ)

6. 그냥 아직까진 초반이지만 액션이 단조로운 느낌. 발견 -> 쏴서 경직 -> 달리고 -> 찢는다 -> 끝

7. 전기톱에.. 기름을 넣어주어야 하다니!!

8. 미래에는 자동권총이 없나 ㅠㅠ 단발이라니!

'게임 > 닌텐도 스위치' 카테고리의 다른 글

스위치 doom 최저 난이도 엔딩봄  (0) 2022.09.12
제노블레이드3 구매  (0) 2022.09.12
둠 스위치 중고 구매  (0) 2022.08.21
hdmi2usb 닌텐도 잘되네?  (2) 2022.08.19
스위치 게임 arms 구매  (0) 2022.07.10
Posted by 구차니
프로그램 사용/wayland2022. 8. 22. 18:04

오랫만에 생각난김에 검색했는데 8월 2일 커밋된 따끈한 녀석 발견!

[링크 : https://gitlab.freedesktop.org/wayland/weston/-/commits/main?search=atomic]

 

음.. 잘 해결되면 좋겠네..

backend-drm: improve atomic commit failure handling


When an atomic commit fails then the output will be stuck in
REPAINT_AWAITING_COMPLETION state. It is waiting for a vblank event that was
never scheduled.
If the error is EBUSY then it can be expected to be a transient error. So
propagate the error and schedule a new repaint in the core compositor.

This is necessary because there are some circumstances when the commit can fail
unexpectedly:
- With 'state_invalid == true' one commit will disable all planes. If another
  commit for a different output is triggered immediately afterwards, then this
  commit can temporarily fail with EBUSY because it tries to use the same
  planes.
- At least with i915, if one commit enables an output then a second commit for a
  different output immediately afterwards can temporarily fail with EBUSY. This
  is probably caused by some hardware interdependency.
Signed-off-by: Michael Olbrich's avatarMichael Olbrich <m.olbrich@pengutronix.de>

 

libweston/backend-drm/drm.c의 drm_repaint_flush()와

libweston/compositor.c의 output_repaint_timer_hander() 쪽에 수정이 가해진다.

[링크 : https://gitlab.freedesktop.org/wayland/weston/-/commit/3b3fdc52c31f828ff0fb71d2c6ce7bdcc64f20a1]

[링크 : https://gitlab.freedesktop.org/wayland/weston/-/blob/3b3fdc52c31f828ff0fb71d2c6ce7bdcc64f20a1/libweston/backend-drm/drm.c]

'프로그램 사용 > wayland' 카테고리의 다른 글

weston 커서 숨기기  (0) 2024.02.26
wayland hdmi - touch 연결  (0) 2023.09.08
weston screen shooter 뜯어보기  (0) 2022.08.17
wayland glreadpixels 실패  (0) 2022.08.16
sway + wayvnc  (0) 2022.08.10
Posted by 구차니
개소리 왈왈/블로그2022. 8. 22. 13:47

소멸 콩이 있다고 하니 기부!

8월이니 웬지 마음이 가는 기부로

 

'개소리 왈왈 > 블로그' 카테고리의 다른 글

티스토리 드뎌 복구  (2) 2022.10.16
카카오 계정 통합  (0) 2022.08.26
티스토리 레이아웃 왕창 깨지네  (0) 2022.08.08
근 한달만의 블로그 정리  (2) 2022.07.21
게을러졌어...  (0) 2022.05.16
Posted by 구차니
게임/닌텐도 스위치2022. 8. 21. 22:46

3만원에 중고로 구매

지하철에서 들고 다니면서 엔딩이나 볼 수 있으면 좋겠네

(하라는 공부는 안하고!)

 

 

 

 

Posted by 구차니