Difference between revisions of "Serial Port Communication on Linksys AC Series with OpenWRT"

m
no edit summary
m
m
 
Line 24: Line 24:
After plugging in the device of choice, check the /dev directory for: ttyUSBX (ttyUSB0, ttyUSB1, etc.)  This will be needed to let the serial software know which device to connect to.
After plugging in the device of choice, check the /dev directory for: ttyUSBX (ttyUSB0, ttyUSB1, etc.)  This will be needed to let the serial software know which device to connect to.


=== Picocom ===
===Picocom===


* picocom -b 9600 /dev/ttyUSB (All of the other defaults (data bits 8, no parity, stop bit 1, no flow control) picocom will typically match most standard devices from Dell, APC, etc., adjust as needed)
*picocom -b 9600 /dev/ttyUSB (All of the other defaults (data bits 8, no parity, stop bit 1, no flow control) picocom will typically match most standard devices from Dell, APC, etc., adjust as needed)


Command control of Picocom is a bit odd.  It involves starting every command with CTRL A, the CTRL WhatEverOtherCommand (Picocom refers to CTRL as just C)<syntaxhighlight lang="text">
Command control of Picocom is a bit odd.  It involves starting every command with CTRL A, the CTRL WhatEverOtherCommand (Picocom refers to CTRL as just C)<syntaxhighlight lang="text">
Line 55: Line 55:
</syntaxhighlight>
</syntaxhighlight>


=== Minicom ===
===Minicom===


* minicom -b 9600 --device /dev/ttyUSB0 (data bits 8, no parity, stop bit 1, no flow control) picocom will typically match most standard devices from Dell, APC, etc., adjust as needed)
*minicom -b 9600 --device /dev/ttyUSB0 (data bits 8, no parity, stop bit 1, no flow control) picocom will typically match most standard devices from Dell, APC, etc., adjust as needed)


Minicom can also configure its own startup parameters where just this command needs to be entered: minicom --device /dev/ttyUSB0
Minicom can also configure its own startup parameters where just this command needs to be entered: minicom --device /dev/ttyUSB0
Line 63: Line 63:
Configure this way;
Configure this way;


* CTRL A, 0
*CTRL A, 0
* Serial Port Setup
*Serial Port Setup
* ...follow prompts
*...follow prompts


OR, edit the /etc/minirc.dfl manually.
OR, edit the /etc/minirc.dfl manually.
=== Additional Information ===
This article is about the Arduino device, which happens to be accessed via a Serial interface, so it applies to other serial devices too: https://openwrt.org/docs/guide-user/advanced/arduino