Short set of notes.
The most reliable way I’ve found to connect to a remote device is to open a connection immediately after connecting the USB cable to the PC.
At this time, I haven’t figured out a clean way to disconnect and reconnect without physically unplugging. Closing the screen session (ESC->CTRL+A->SHIFT+D->SHIFT+D) makes follow-up connections via the same line unreliable.
EDIT: This should work: http://askubuntu.com/a/661/364657
Connections require the Black GND (Ground), White TX (Transmit), Green RX (Receieve) pins connected. Connecting the Red VCC (Power) pin is STRONGLY discouraged.
Reference: http://linux-sunxi.org/UART http://linux-sunxi.org/LeMaker_Banana_Pi#Adding_a_serial_port
1 2 3 4 5 |
# Find out what the USB device name is: ll /dev/ttyUSB* # Assuming it's ttyUSB0, connect to the device using GNU screen sudo screen /dev/ttyUSB0 115200 |
Other methods: https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/debugging-tips/target-serial-access
Cool! Connecting to the Banana Pi via a Serial cable. I've wanted to figure out how to do this for quite a while. 🙂 pic.twitter.com/1bhNG6m0Jd
— The Mike Kasprzakâ„¢ (@mikekasprzak) November 25, 2015
And if you’re feeling silly, data can be send directly to the connected TTY like so.
1 |
echo "HEY YOU! GET OFF MY COMPUTER!" > /dev/ttyS0 |
And just for fun, sending a bunch of garbage via SSH to the connected Serial cable. 😉 pic.twitter.com/fj9pK9PnJa
— The Mike Kasprzakâ„¢ (@mikekasprzak) November 25, 2015
Extra
I’m running Armbian (Ubuntu 14.04) on my Banana.