using desktop window for BBB console

147 views
Skip to first unread message

mzimmers

unread,
Feb 16, 2017, 6:23:57 PM2/16/17
to BeagleBoard
Hi, all -

I'm running Jessie on my desktop (I can also boot Windows 7). I have Ethernet connectivity to my BBB, and am trying to set it up so I can direct BBB console output to a window on my desktop.

Oddly enough, this works using PuTTY under Windows, but when I apply the same settings to PuTTY under Debian, I get an error:

Unable to open connection to /dev/ttyS3
Unable to configure serial port

Since I can get this to work on Windows, I can rule out the serial-to-USB cable as a possible culprit, and I know that the connection is at least valid from a hardware sense. Also, I'm guessing the problem isn't on the BBB, so I'm figuring it's some kind of configuration issue on the desktop.

I thought this might be a permissions issue, but I added "dialout" to my user's groups, and I've tried it from root, with the same results, so that's not looking promising.

Any suggestions? I'm not married to using PuTTY. I started with it because I thought it would be easy since I already had it working under Windows, but I'm willing to use most anything.

I'm still new to Linux and BBB, so I'd appreciate fairly explicit answers.

Thanks!

William Hermans

unread,
Feb 16, 2017, 7:06:10 PM2/16/17
to beagl...@googlegroups.com
So. . .

william@eee-pc:~$ ls -I "tty[0-9]*" /dev |grep tty
tty
ttyS0
ttyS1
ttyS2
ttyS3
ttyUSB0

william@eee-pc:~$ sudo screen /dev/ttyUSB0 115200
[sudo] password for william:


Press enter if you need a prompt, but this is mostly only good for viewing serial debug output from the kernel.

Press ctrl A + ctrl D to exit screen
[detached from 14104.pts-0.eee-pc]

cat is only about as useful as above. Except with screen you can actually interact with the serial interface.  With cat, you only get a serial output "dump" Then minicom . .  I've only used it a handful of times, and it's not much better in the way of screen formatting than either of the above cases.

Anyway, /dev/ttyS3 is probably not the right interface for your serial device. Why don';t you run the first command I demonstrated above and then show us the output.






--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/aa13c912-3627-4cb7-bba8-625eeda6d660%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Hermans

unread,
Feb 16, 2017, 7:18:47 PM2/16/17
to beagl...@googlegroups.com
By the way, I do not run a GUI on my Linux dev systems. I do have an older laptop which has Lubuntu 14.04 on it. But I hardly use it. The point being, I've never run puTTY on Linux. But I could probably help troubleshoot your issue. Since I have around ~20 years hands on with Linux, most of that with Debian. A little bit with Mandrake( Red Hat ), and a tiny bit with Sabayon Linux( a Gentoo fork ).

mzimmers

unread,
Feb 16, 2017, 7:44:18 PM2/16/17
to BeagleBoard
mzimmers@debian:~$ ls -I "tty[0-9]*" /dev |grep tty
tty
ttyS0
ttyS1
ttyS2
ttyS3
mzimmers@debian:~$ 

William Hermans

unread,
Feb 16, 2017, 7:56:21 PM2/16/17
to beagl...@googlegroups.com

On Thu, Feb 16, 2017 at 5:44 PM, mzimmers <mzim...@gmail.com> wrote:
mzimmers@debian:~$ ls -I "tty[0-9]*" /dev |grep tty
tty
ttyS0
ttyS1
ttyS2
ttyS3
mzimmers@debian:~$ 

So, you serial interface does not seem to be showing up. Is it plugged into the USB port ? What output do you get  from running the following command ?

william@eee-pc:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 058: ID 1ebf:7f29
Bus 001 Device 003: ID 13d3:5071 IMC Networks
Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port



mzimmers

unread,
Feb 16, 2017, 8:00:12 PM2/16/17
to BeagleBoard
mzimmers@debian:~$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 13d3:3404 IMC Networks 
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 056e:8008 Elecom Co., Ltd 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 005: ID 0556:0001 Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter
Bus 003 Device 004: ID 04a9:1900 Canon, Inc. CanoScan LiDE 90
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mzimmers@debian:~$ 

William Hermans

unread,
Feb 16, 2017, 8:10:27 PM2/16/17
to beagl...@googlegroups.com
And the output you get from this ?
william@eee-pc:~$ lsmod |grep usbserial
usbserial              27365  5 pl2303
usbcore               104555  13 ehci_hcd,uhci_hcd,usbnet,cdc_subset,usb_storage,cdc_ether,usbserial,uvcvideo,pl2303,cdc_acm,rndis_host,rndis_wlan


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

mzimmers

unread,
Feb 16, 2017, 8:14:25 PM2/16/17
to BeagleBoard
mzimmers@debian:~$ lsmod | grep usbserial
usbserial              36293  1 ftdi_sio
usbcore               195468  11 btusb,snd_usb_audio,usb_storage,usbserial,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid,ftdi_sio,xhci_hcd
mzimmers@debian:~$ 

Not sure what to make of this... 

William Hermans

unread,
Feb 16, 2017, 8:22:11 PM2/16/17
to beagl...@googlegroups.com
Just checking to make sure the driver is loaded. So here is what I can say about your current situation. You serial device is detected byt the operating system, the driver is loaded, but the serial interface is not listed in the /dev/ directory. I can not say exactly why, but I do have a pretty good idea of what's happening here. systemd has not been told what to do with this device. e.g. With Wheezy, we had inittab we had to edit in order to have the device show up the applications in Linux. Such as puTTY.

So . . . for me this would turn into a google session, which you can do as easily as I. However give me a few minutes to look into this, as I know what to look for.

William Hermans

unread,
Feb 16, 2017, 8:24:16 PM2/16/17
to beagl...@googlegroups.com
Run this really quickly and show me the output.

$ find / -type f -name ttyUSB0

mzimmers

unread,
Feb 16, 2017, 8:27:08 PM2/16/17
to BeagleBoard
I had to run that with sudo:

mzimmers@debian:~$ sudo find / -type f -name ttyUSB0
[sudo] password for mzimmers: 
mzimmers@debian:~$ 

William Hermans

unread,
Feb 16, 2017, 8:29:33 PM2/16/17
to beagl...@googlegroups.com
And when running dmesg  |tail you do not get something similar to this ?

dmesg | tail
 ...
 ftdi_sio 1-1.1:1.0: FTDI USB Serial Device converter detected
 usb 1-1.1: Detected FT232RL
 usb 1-1.1: Number of endpoints 2
 usb 1-1.1: Endpoint 1 MaxPacketSize 64
 usb 1-1.1: Endpoint 2 MaxPacketSize 64
 usb 1-1.1: Setting MaxPacketSize 64
 usb 1-1.1: FTDI USB Serial Device converter now attached to ttyUSB0

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

mzimmers

unread,
Feb 16, 2017, 8:31:32 PM2/16/17
to BeagleBoard
No, I get this. Perhaps the tail isn't long enough?

mzimmers@debian:~$ dmesg | tail
[    5.141267] sd 5:0:0:1: [sdd] Attached SCSI removable disk
[    6.671770] usb 3-3: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[    6.672343] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[    6.672356] ftdi_sio 3-3:1.0: device disconnected
[   21.729999] FAT-fs (sdd1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[   22.678434] EXT4-fs (sdd2): mounted filesystem with ordered data mode. Opts: (null)
[  386.665801]  sdd: sdd1
[  929.834194] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
[15294.661470] perf interrupt took too long (2517 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[78086.748608] traps: dleyna-renderer[4807] general protection ip:7fb7fb54dde8 sp:7ffc3b116ab0 error:0 in libdleyna-renderer-1.0.so.1.0.3[7fb7fb544000+16000]
mzimmers@debian:~$ 


William Hermans

unread,
Feb 16, 2017, 8:41:03 PM2/16/17
to beagl...@googlegroups.com
Well you could run this command:

william@eee-pc:~$ dmesg | grep USB0
[9831384.302124] usb 3-1: pl2303 converter now attached to ttyUSB0



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

mzimmers

unread,
Feb 16, 2017, 8:44:23 PM2/16/17
to BeagleBoard
mzimmers@debian:~$ dmesg | grep USB0
[    3.392399] usb 3-3: FTDI USB Serial Device converter now attached to ttyUSB0
[    6.672343] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
mzimmers@debian:~$ 

So...do I correctly read this that first it connects, and then it disconnects a few seconds later?

William Hermans

unread,
Feb 16, 2017, 8:56:57 PM2/16/17
to beagl...@googlegroups.com
This is what it looks like without being physically at your computer. It looks like you plugged it in, and 3 seconds later pulled it back out again. Now, with that said, I'm not saying that's what you did. But that's the output You'd expect *IF* you did that.

So now the real troubleshooting begins.
  • First, is the serial end of the cable correctly connected to the beaglebone ?
  • Second, Is the beaglebone powered up and running ?
  • Third, if both of the above check out, are you using a USB hub between your PC and the converter ? If so, plug it directly into a USB port without the hub.
  • Fourth, change USB ports. Then see if converter is still behaving the same.

mzimmers

unread,
Feb 17, 2017, 11:37:52 AM2/17/17
to BeagleBoard

So now the real troubleshooting begins.
  • First, is the serial end of the cable correctly connected to the beaglebone ?
I'd assume so, as it worked under Windows. 
  • Second, Is the beaglebone powered up and running ?
Yes. 
  • Third, if both of the above check out, are you using a USB hub between your PC and the converter ? If so, plug it directly into a USB port without the hub.
Already a direct connection. 
  • Fourth, change USB ports. Then see if converter is still behaving the same.
 I can try this. Is there a way to translate the output of the lsusb command into a device name? For example, based on the output I got (posted above), I see that the bus/device I'm currently using is:

Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

But I don't know how that translates to a /dev/tty* name.

Thanks.

Robert Nelson

unread,
Feb 17, 2017, 11:50:16 AM2/17/17
to Beagle Board
On Thu, Feb 16, 2017 at 7:31 PM, mzimmers <mzim...@gmail.com> wrote:
> No, I get this. Perhaps the tail isn't long enough?
>
> mzimmers@debian:~$ dmesg | tail
> [ 5.141267] sd 5:0:0:1: [sdd] Attached SCSI removable disk
> [ 6.671770] usb 3-3: usbfs: interface 0 claimed by ftdi_sio while
> 'brltty' sets config #1
> [ 6.672343] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now
> disconnected from ttyUSB0
> [ 6.672356] ftdi_sio 3-3:1.0: device disconnected

this looks to be either a kernel, cable or hub problem..

Regards,

--
Robert Nelson
https://rcn-ee.com/

mzimmers

unread,
Feb 17, 2017, 12:03:00 PM2/17/17
to BeagleBoard
On Friday, February 17, 2017 at 9:50:16 AM UTC-7, RobertCNelson wrote:

this looks to be either a kernel, cable or hub problem..
 
Well, that's not good news. There is no hub, the cable works fine under Windows, so that leaves the kernel. And, this neophyte isn't ready to start mucking around in the kernel.

So...what's a good fallback idea here? I don't want to make this a big project, but it would be nice if I could get the BBB console output while my desktop is booted to Debian. I tried the "screen" command that William suggested, and that failed as well (gave a "[screen is terminating]" error and stopped).

Is this worthy of reporting as a bug to the keepers of Debian? 

William Hermans

unread,
Feb 17, 2017, 12:58:40 PM2/17/17
to beagl...@googlegroups.com
You can always retrograde to Wheezy, or use one of the Ubuntu 14.04 variants.  Personally I lean towards Lubuntu when I need a Linux desktop. But I do not use a Linux desktop all that often. I like Lubuntu because its LXDE that is highly configurable, and fast due to the desktop being accelerated.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

William Hermans

unread,
Feb 17, 2017, 1:10:52 PM2/17/17
to beagl...@googlegroups.com
Just to be clear, I rarely recommend Ubuntu. But in the case of being used as a desktop. Ubuntu in my mind makes more sense than anything else. Debian can run on a desktop system, but that's not really where Debian shines. For the purpose of getting a Linux "newb" familiar with Linux. Ubuntu will probably be more hassle free for you. Debian tends to do what it does well, but sometimes it can be much higher maintenance. Such as you're finding out now. But if you install Ubuntu on that second partition / disk, I bet the serial adapter will "just work". Of course I can not guarantee that, but an FTDI serial device is something all Linuxes should have working, and most will. Debian is a bit different because stability is paramount. So if something is not 100% reliable, it wont make it into the stock kernel. Which is possibly what happened, but maybe not.

mzimmers

unread,
Feb 17, 2017, 4:21:46 PM2/17/17
to BeagleBoard
Yeah, I was originally running Ubuntu...changed when I started playing with the BBB, as most of the examples used Debian and I figured there might be some advantage to having the same OS on my desktop.

By the way, someone in another forum identified the problem. It turns out that an app brltty was interfering. I uninstalled brltty and now screen works, even though PuTTY doesn't. Also, ttyUSB0 now shows up in my /dev directory.

William Hermans

unread,
Feb 17, 2017, 6:09:46 PM2/17/17
to beagl...@googlegroups.com
On Fri, Feb 17, 2017 at 2:21 PM, mzimmers <mzim...@gmail.com> wrote:
Yeah, I was originally running Ubuntu...changed when I started playing with the BBB, as most of the examples used Debian and I figured there might be some advantage to having the same OS on my desktop.

So every day usage, they're pretty much the same. It's when you start getting into the inner workings where they're different. They do also have different package names for some packages. Typically, I stay away from Ubuntu because I've had a lot of bad blood with it in the past. e.g. I was trying ot use it for server related duties in place of Debian, because it supposedly had reliable drivers for things Debian at the time was not supporting( new hardware that was released between Debian dev cycles ). In the end, I wound up moving ot Sabayon, whcih at the time was *the* cutting edge distro, and it did not support the hardware either . . .

By the way, someone in another forum identified the problem. It turns out that an app brltty was interfering. I uninstalled brltty and now screen works, even though PuTTY doesn't. Also, ttyUSB0 now shows up in my /dev directory.

No way anyone here could have known  that. Without physically being at your system. Maybe not even then.

woody...@yahoo.com

unread,
Feb 18, 2017, 4:50:52 PM2/18/17
to beagl...@googlegroups.com

--------------------------------------------
On Fri, 2/17/17, William Hermans <yyr...@gmail.com> wrote:

Subject: Re: [beagleboard] Re: using desktop window for BBB console
To: beagl...@googlegroups.com
Date: Friday, February 17, 2017, 8:10 PM

Just to be clear, I
rarely recommend Ubuntu. But in the case of being used as a
desktop. Ubuntu in my mind makes more sense than anything
else. Debian can run on a desktop system, but that's not
really where Debian shines. For the purpose of getting a
Linux "newb" familiar with Linux. Ubuntu will
probably be more hassle free for you. Debian tends to do
what it does well, but sometimes it can be much higher
maintenance. Such as you're finding out now. But if you
install Ubuntu on that second partition / disk, I bet the
serial adapter will "just work". Of course I can
not guarantee that, but an FTDI serial device is something
all Linuxes should have working, and most will. Debian is a
bit different because stability is paramount. So if
something is not 100% reliable, it wont make it into the
stock kernel. Which is possibly what happened, but maybe
not.

On Fri, Feb 17, 2017
at 10:58 AM, William Hermans <yyr...@gmail.com>
wrote:
You can always retrograde to Wheezy, or use one of
the Ubuntu 14.04 variants.  Personally I lean towards
Lubuntu when I need a Linux desktop. But I do not use a
Linux desktop all that often. I like Lubuntu because its
LXDE that is highly configurable, and fast due to the
desktop being accelerated.

On Fri, Feb 17, 2017
from it, send an email to beagleboard...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORoFcr7hm9o0Zmw_n752kY%3D485jT6Jbi7ecEXqfeJzzFLg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
n noiembrie 1947 regele a fost invitat la Londra la casatoria printesei Elisabeta viitoarea regina Elisabeta a ll-a cu printul Philip de Grecia'. La
Reply all
Reply to author
Forward
0 new messages