Wednesday, November 22, 2017

minicom - friendly serial communication program


minicom

minicom - is a menu driven communications program. It emulates ANSI and VT102 terminals. It has a dialing directory and auto zmodem download.

Installation


# on RedHat based:
yum install minicom

# on Debian based:
sudo apt-get install minicom

Special Keys


# Menu
CTRL-A Z

# To Quit
CTRL-A Q

# To send (via xmodem/ymodem/zmodem)
CTRL-A S

# To receive (via xmodem/ymodem/zmodem)
CTRL-A R

# To configure
CTRL-A O

Command Line


# Bring up minicom configuration
minicom -s

# Connect to ttyUSB0 with 115200 baud rate
minicom -b 115200 -D /dev/ttyUSB0
The default configuration is 115200 8N1 with Hardware Flow Control. I usually disable Hardware Flow Control in my setting and save to the default 'df1'.

Tio


Although minicom describes itself as "friendly", it can be painful to setup and use.  As a suggestion, if you don't need send/receive abilities like xmodem, tio is much easier to use.

References







tio - A simple TTY terminal I/O application

Minicom is painful to use. I found a much easier tool to use called tio - A simple TTY terminal I/O application.

Usage


tio /dev/ttyUSB0
tio -b 115200 /dev/ttyUSB0  # 115200 is the default baud rate

Installing Tio



Using the release tar method:
mkdir ~/.src
cd ~/.src
wget https://github.com/tio/tio/releases/download/v1.20/tio-1.20.tar.xz
tar -avxf tio-1.20.tar.xz
cd tio-1.20/
./configure
make && make install

Using the source source method:
sudo apt-get install autoconf
mkdir ~/.src
cd ~/.src
git clone https://github.com/tio/tio.git
cd tio
sh autogen.sh
./configure
make && make install

Example Usage


# tio -b 115200 /dev/ttyUSB0
[tio 16:53:30] tio v1.20
[tio 16:53:30] Press ctrl-t q to quit
[tio 16:53:30] Connected

> some serial text

Exiting


To exit tio:
ctrl-t q


Other references






Thursday, March 30, 2017

Pi is a Palindrome


I know the last few digits of Pi...

Inside a mathematical singularity where infinity ends, where two parallel lines meet in Euclidean space, it turns out Pi is a Palindrome.  :-)


Full Comic





Tuesday, March 14, 2017

Pi Day



Happy Pi Day Everyone!  Today is 3.14, so eat plenty of pies.


3.14
15926535
8979323846
2643383279
5028841971
6939937510
5820974944
5923078164
0628620899
8628034825
3421170679





Saturday, March 11, 2017

Daylight Saving Time is Upon Us


Daylight Saving Time is upon us tonight - Sunday, March 12th, 2017 at 2am.  Don't forget to turn your "non-smart" clocks forward an hour.

I like to remind myself with, the following which helps me remember which direction to turn the clocks to.

"Spring" forward into action, and "Fall" back to sleep.




Friday, March 10, 2017

Why Fundamental Forces Are Difficult To Explain



Richard Feynman was asked Why Magnets Repel Each Other?  His answer sums up why it is so difficult to explain physics.  It requires accepting other answers as truth, or you rabbit hole down an endless path of why questions.  We take for granted that when your hand pushes against a chair it moves.  But your physical hand never actually touches the chair.  The electrical forces repel the chair at a minuscule level.  The magnetic force is very similar to the electrical forces.  The iron atoms of a magnet are all lined up so the magnetic forces are amplified to where they cross a greater distance.





Thursday, February 4, 2016

Electronics Merit Badge


Electronics is the science that controls the behavior of electrons so that some type of useful function is performed. Today, electronics is a fast-changing and exciting field.

Requirements

  1. Describe the safety precautions you must exercise when using, building, altering, or repairing electronic devices.
  2. Do the following:
    1. Draw a simple schematic diagram. It must show resistors, capacitors, and transistors or integrated circuits. Use the correct symbols. Label all parts.
    2. Tell the purpose of each part.
  3. Do the following:
    1. Show the right way to solder and desolder.
    2. Show how to avoid heat damage to electronic components.
    3. Tell about the function of a printed circuit board. Tell what precautions should be observed when soldering printed circuit boards.
  4. Discuss each of the following with your merit badge counselor, and then choose ONE of the following and build a circuit to show the techniques used:
    1. Tell how you can use electronics for a control purpose, and then build a control device circuit.
    2. Tell about the basic principles of digital techniques, and then build a digital circuit. Show how to change three decimal numbers into binary numbers and three binary numbers into decimal numbers.
    3. Tell about three audio applications of electronics, and then build an audio circuit.
Show how to read the schematic diagram of the project you chose and, to the best of your ability, explain to your counselor how the circuit you built operates.

  1. Do the following:
    1. Show how to solve a simple problem involving current, voltage, and resistance using Ohm’s law.
    2. Tell about the need for and the use of test equipment in electronics. Name three types of test equipment. Tell how they operate.
  2. Find out about three career opportunities in electronics that interest you. Discuss with and explain to your counselor what training and education are needed for each position.

Resources