'프로그램 사용/minicom'에 해당되는 글 6건

  1. 2023.01.05 minicom lf에 cr 붙이기
  2. 2022.08.25 minicom 16진수로 보기
  3. 2021.09.16 minicom 로그 저장하기
  4. 2021.09.16 minicom timestamp
  5. 2021.01.28 minicom 폭 늘리기
  6. 2020.09.24 /dev/tty 를 sudo 쓰지 않고 사용하기

Add carriage Return을 활성화 해주면 자동으로  lf에 cr을 붙여주는 듯.

(ctrl - a,z - u)

 

[링크 : https://unix.stackexchange.com/questions/283924/]

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

minicom 16진수로 보기  (0) 2022.08.25
minicom 로그 저장하기  (0) 2021.09.16
minicom timestamp  (0) 2021.09.16
minicom 폭 늘리기  (0) 2021.01.28
/dev/tty 를 sudo 쓰지 않고 사용하기  (0) 2020.09.24
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 lf에 cr 붙이기  (0) 2023.01.05
minicom 로그 저장하기  (0) 2021.09.16
minicom timestamp  (0) 2021.09.16
minicom 폭 늘리기  (0) 2021.01.28
/dev/tty 를 sudo 쓰지 않고 사용하기  (0) 2020.09.24
Posted by 구차니
프로그램 사용/minicom2021. 9. 16. 16:20

통신을 주고 받으면서 해당 내용을 파일로 저장하는 기능.

ctrl-a,z 에서 "Capture on/off.....L" 을 눌러 들어가면

+-------------------------------------------------------------------+
|                      Minicom Command Summary                      |
|                                                                   |
|              Commands can be called by CTRL-A <key>               |
|                                                                   |
|               Main Functions                  Other Functions     |
|                                                                   |
| Dialing directory..D  run script (Go)....G | Clear Screen.......C |
| Send files.........S  Receive files......R | cOnfigure Minicom..O |
| comm Parameters....P  Add linefeed.......A | Suspend minicom....J |
| Capture on/off.....L  Hangup.............H | eXit and reset.....X |
| send break.........F  initialize Modem...M | Quit with no reset.Q |
| Terminal settings..T  run Kermit.........K | Cursor key mode....I |
| lineWrap on/off....W  local Echo on/off..E | Help screen........Z |
| Paste file.........Y  Timestamp toggle...N | scroll Back........B |
| Add Carriage Ret...U                                              |
|                                                                   |
|             Select function or press Enter for none.              |
+-------------------------------------------------------------------+

 

저장할 파일명을 물어본다. minicom을 실행한 현재 디렉토리를 기준으로 저장된다.

+-----------------------------------------+
|Capture to which file?                   |
|> minicom.cap                            |
+-----------------------------------------+

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

minicom lf에 cr 붙이기  (0) 2023.01.05
minicom 16진수로 보기  (0) 2022.08.25
minicom timestamp  (0) 2021.09.16
minicom 폭 늘리기  (0) 2021.01.28
/dev/tty 를 sudo 쓰지 않고 사용하기  (0) 2020.09.24
Posted by 구차니
프로그램 사용/minicom2021. 9. 16. 13:01

minicom에서 "Timestamp toggle...N" 을 누르면

별다른 티를 내지 않고 그냥 나가버리는데

+-------------------------------------------------------------------+
|                      Minicom Command Summary                      |
|                                                                   |
|              Commands can be called by CTRL-A <key>               |
|                                                                   |
|               Main Functions                  Other Functions     |
|                                                                   |
| Dialing directory..D  run script (Go)....G | Clear Screen.......C |
| Send files.........S  Receive files......R | cOnfigure Minicom..O |
| comm Parameters....P  Add linefeed.......A | Suspend minicom....J |
| Capture on/off.....L  Hangup.............H | eXit and reset.....X |
| send break.........F  initialize Modem...M | Quit with no reset.Q |
| Terminal settings..T  run Kermit.........K | Cursor key mode....I |
| lineWrap on/off....W  local Echo on/off..E | Help screen........Z |
| Paste file.........Y  Timestamp toggle...N | scroll Back........B |
| Add Carriage Ret...U                                              |
|                                                                   |
|             Select function or press Enter for none.              |
+-------------------------------------------------------------------+

 

한번 누를 때 마다 다음과 같은 시간 포맷으로 출력된다.

개인적으로는 ms 단위까지 표현해주는게 좋음.

U-Boot
[2021-09-16 14:23:35] U-Boot
[2021-09-16 14:23:55.603] U-Boot 

 

[링크 : https://stackoverflow.com/questions/54377832/extended-timestamp-as-default-in-minicom]

[링크 : https://askubuntu.com/questions/905655/not-able-to-add-timestamp-to-minicom-readings]

 

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

minicom lf에 cr 붙이기  (0) 2023.01.05
minicom 16진수로 보기  (0) 2022.08.25
minicom 로그 저장하기  (0) 2021.09.16
minicom 폭 늘리기  (0) 2021.01.28
/dev/tty 를 sudo 쓰지 않고 사용하기  (0) 2020.09.24
Posted by 구차니
프로그램 사용/minicom2021. 1. 28. 14:56

minicom 으로 실행하면 폭이 늘어나지 않고 창도 안커지는데(putty)

아래와 같이 하면 창을 늘리면 같이 늘어난다.

 

$ TERM=linux minicom

[링크 : https://unix.stackexchange.com/questions/106644/how-to-change-the-width-of-remote-serial-console]

 

+물론 시리얼로 접속해서는 화면은 늘어나도 실제로 콘솔 영향을 받는지

더 위아래로 길게 나오진 않는다 ㅠㅠ

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

minicom lf에 cr 붙이기  (0) 2023.01.05
minicom 16진수로 보기  (0) 2022.08.25
minicom 로그 저장하기  (0) 2021.09.16
minicom timestamp  (0) 2021.09.16
/dev/tty 를 sudo 쓰지 않고 사용하기  (0) 2020.09.24
Posted by 구차니
프로그램 사용/minicom2020. 9. 24. 11:36

dialout 그룹에 포함시키면 된다고 한다.

귀찮아서 /etc/group 을 수정하긴 했는데

명령어로도 가능은 한 듯?

 

그런데 왜 그룹 변경하면 리부팅이 필요할까?

 

[링크 : https://unix.stackexchange.com/questions/14354/read-write-to-a-serial-port-without-root]

[링크 : https://igotit.tistory.com/entry/우분투에서-USB-2-UART-칩-CP2101-권한설정하기-ttyUSB-시리얼포트]

 

+

newgrp 하면 리부팅 안해도 된다네?

그리고 로그아웃 했다 로그인 할 때 적용이 된다고 하니

우분투 데스크탑 유저라면 리부팅이 편할수도 있긴 하겠다..

[링크 : https://serverfault.com/.../is-a-reboot-required-to-refresh-permissions-after-adding-a-user-to-a-new-group]

 

+

$ stat /dev/ttyUSB0
  File: /dev/ttyUSB0
  Size: 0          Blocks: 0          IO Block: 4096   문자 특수 파일
Device: 6h/6d Inode: 658         Links: 1     Device type: bc,0
Access: (0660/crw-rw----)  Uid: (    0/    root)   Gid: (   20/ dialout)
Access: 2023-03-08 10:04:36.356257260 +0900
Modify: 2023-03-08 10:04:36.356257260 +0900
Change: 2023-03-07 17:22:47.356257260 +0900
 Birth: -

$ sudo usermod -a -G dialout $USER

[링크 : https://askubuntu.com/questions/133235/how-do-i-allow-non-root-access-to-ttyusb0]

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

minicom lf에 cr 붙이기  (0) 2023.01.05
minicom 16진수로 보기  (0) 2022.08.25
minicom 로그 저장하기  (0) 2021.09.16
minicom timestamp  (0) 2021.09.16
minicom 폭 늘리기  (0) 2021.01.28
Posted by 구차니