I ended up just leaving the cat open to view the incoming bytes, and running screen in another terminal to send keypresses, which worked just fine and was a lot easier than using echo over and over. I then discovered that if I did cat /dev/ttyS0 in one terminal, and echo alongstring > /dev/ttyS0 in another, I could see everything just fine! But for some reason, most of the characters wouldn't show up on screen. I hooked up an oscilloscope to the wire and discovered that every keypress was sent properly I could see it going over the wire. So I did a loopback test - connected RX and TX together - to see if what I sent would come back in. It seemed like it would pick up the first 3-4 characters of every transmission, then miss the rest. For some reason, the output was a total mess. I used stty to configure the serial port according to APC's documentation, launched screen /dev/ttyS0, and went to work. I connected it to the serial port on an R720XD, and passed the port through to a Ubuntu VM. Press 'Enter' to save the changes.I recently needed to reset the password on an old APC UPS which requires connecting their proprietary serial cable, hitting the reset button, and logging in with the default username and password over the serial interface. By default this will be saved as 'minicom.log', but change it to whatever you like with the 'A' key. Select 'Filenames and paths' and press 'F' (Logging options). To exit Minicom when in terminal mode press 'Ctrl-A' to get a message bar at the bottom of the terminal window and then press 'X'.Īnother useful Option is to log all information to a file which will be saved in your Home directory. Hit enter, and you may be asked for your username, indicating a successful connection. Once saved, one may choose Exit, and one is at the minicom prompt. Once configured, one may "Save setup as dfl", which will save these as the default configurations for future connections (/etc/minicom/minirc.dfl). Once these have been adjusted, one may want to also go to the Modem and dialing menu and remove all information in setting options A through I. Next, one will want to consult the hardware vendor's manual for the Bits per second, data bits, Parity, stop bits, and Flow control. Then, adjust the Serial Device to the device one has, for example: A - Serial Device : /dev/ttyS0 One will next choose "Serial port setup'. Next, enter in a terminal enter: sudo minicom -s which we will need in order to use Minicom. In the first section above it is ttyS0, the other is ttyUSB0. What we are interested in is the name of the serial port. usb 4-3: pl2303 converter now attached to ttyUSB0 audit(1243322582.732:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5705 profile="/usr/sbin/cupsd" namespace="default"įor a USB-to-Serial adapter, one may see: console enabled If it is a direct serial connection, the output will be something like this: console enabled In order to find the name of your port(s) enter this command in terminal: dmesg | grep tty Install the program with: sudo apt-get install minicomĪlternatively, you can get Minicom via the Synaptic Package Manager. It is used to talk to external RS-232 devices such as mobile phones, routers, and serial console ports. Minicom is a text-based serial port communications program.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |