![]() I have built a custom embedded system using debian 6.0. Using /etc/inittab i have made several (8) processes running on different /dev/ttyX terminals, which i can switch between using Alt+FX key combination. The thing is using this setup i need to attach a keyboard/monitor to device and reboot it, to be able to operate on it, which is so undesirable. How to connect to Ubuntu using Serial Port? Configure the Host's terminal emulator for VT102 emulation. How do I set up Debian 6.0.3 to work with serial. I know linux supports terminals through serial port and i have a couple of them on the device, but i need to have all these processes output in a single serial port terminal. I have found about screen utility for terminal multiplexing, but still not sure if this is the way to go, and the actual setup that needs to be done. Any experience or best practice on this scenario would be highly appreciated. If you have any control over the running applications, why not have them log to syslog and have syslog output to the serial terminal? Having said that, asking screen to start all the applications in separate sessions using e.g. The at or exec commands is an interesting idea. However, there are two concerns: • screen uses various terminal commands, so it places requirements on the terminal emulator you use to connect. A stupid terminal emulator may not cut it. • screen is more bandwidth-intensive than an ordinary shell, mostly because switching between screens will redraw the whole screen. This may make a difference if your serial terminal is something like 9600 baud. Also, it is worth noting that in the case of a crash, if all your processes log to the same tty, your terminal emulator will display e.g. A kernel panic or a spontaneous reboot (if it was connected at the time of disaster). However, if that screen was not the visible one, you will not see it since you can't switch to it. OTOH, if it is a problem with just the one process, screen's scrollback buffer may come in handy. I am trying to connect minicom to a serial device that is connected via a USB-to-serial adapter. This is a PL2303 and from everything I've read no additional drivers are required. The device is recognised as a PL2303. I'm a beginner at minicom. Is this the correct command to execute? Or do I need to configure something? $ sudo minicom --device /dev/ttyUSB0 minicom: cannot open /dev/ttyUSB0: No such file or directory $ sudo lsusb -v Bus 002 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Device Descriptor: bLength 18 bDescriptorType 1 $ tail /var/log/syslog #then removed and attached the device. Mar 13 23:31:49 ubuntu kernel: [805] usb 2-1: pl2303 converter now attached to ttyUSB0 Mar 13 23:34:44 ubuntu kernel: [829] usb 2-1: USB disconnect, address 7 Mar 13 23:34:44 ubuntu kernel: [821] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0 Mar 13 23:34:44 ubuntu kernel: [874] pl2303 2-1:1.0: device disconnected Mar 13 23:34:52 ubuntu kernel: [856] usb 2-1: new full speed USB device using uhci_hcd and address 8 Mar 13 23:34:52 ubuntu kernel: [845] pl2303 2-1:1.0: pl2303 converter detected Mar 13 23:34:52 ubuntu kernel: [809] usb 2-1: pl2303 converter now attached to ttyUSB0. I get get the same minicom error, 'cannot open /dev/ttyUSB0: No such file or directory' Three notes: • I get the error when the device attached to the serial port end of my Prolific Technology PL2303 USB/Serial adapter is turned off. After turning on the device (an embedded controller running Linux) minicom connected fine. • I have to run as super user (i.e. Sudo minicom) • Sometimes I have to unplug and plug back in the USB-to-serial adapter to get minicom to connect to it. I am running Ubuntu 10.04 LTS (Lucid Lynx) under VMware (running on Windows 7).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |