LoginSignup
1
2

macintoshでserial(USB) console

Last updated at Posted at 2019-04-26

macintoshでserial(USB) console
https://researchmap.jp/jobhy1rte-1826017/

Mac OS X (Snow Leopard)でSerial Console
を参考に単純通信端末

#Homebrew
http://brew.sh/index_ja.html

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir /usr/local

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
==> Installation successful!
==> Next steps
Install the Command Line Tools for Xcode: https://developer.apple.com/downloads
Run `brew doctor` before you install anything
Run `brew help` to get started
ken011M:~ administrator$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: A newer Command Line Tools release is available.
The standalone package can be obtained from
  https://developer.apple.com/downloads
or it can be installed via Xcode's preferences.

Warning: An outdated version of Git was detected in your PATH.
Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub.
Please upgrade: brew upgrade git

Warning: Your Xcode (4.2.1) is outdated
Please update to Xcode 4.6.3.
Xcode can be updated from
  https://developer.apple.com/downloads

#2 minicom
http://mizupc8.bio.mie-u.ac.jp/pukiwiki/index.php?シリアル端末ソフト%2Fminicom

brew install minicom
==> Downloading http://ftp.de.debian.org/debian/pool/main/m/minicom/minicom_2.7.
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/minicom/2.7 --mandir=/usr/local/Cella
==> make install
==> Caveats
Terminal Compatibility
======================
If minicom doesn't see the LANG variable, it will try to fallback to
make the layout more compatible, but uglier. Certain unsupported
encodings will completely render the UI useless, so if the UI looks
strange, try setting the following environment variable:

LANG="en_US.UTF-8"

Text Input Not Working
======================
Most development boards require Serial port setup -> Hardware Flow
Control to be set to "No" to input text.
==> Summary
 /usr/local/Cellar/minicom/2.7: 16 files, 400K, built in 15 seconds

###2.1 sudo minicom -s

find / -name minicom -print で設定ファイルをどこに保存しているか確認。

find / -name minicom -print 
/usr/local/bin/minicom
/usr/local/Cellar/minicom
/usr/local/Cellar/minicom/2.7/bin/minicom
/usr/local/Library/LinkedKegs/minicom
/usr/local/opt/minicom

/usr/local/opt/minicom/etcに保存していた。

のデバイス名は、USB-Serialを別の口に刺すと変わることに注意。

ls /dev/tty.u*
で捜す。

設定画面は通信速度が115200になっている。設定ファイルには記述なし。
一端別の速度に変更して保存。再度115200に直して、設定を保存し直す。

ESC Zでメニューをだし
lineWrap on/off....W
Add Carriage Ret...U
を設定しないと、画面が流れる。

参考資料(reference)

【シリアル接続】Mac でシリアルコンソールを利用してみた
https://qiita.com/kobaboy/items/2e15805cf485de3ddf79

文書履歴(document history)

ver. 0.01 初稿 20190427 朝
ver. 0.02 参考資料 20190427 午前

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2