Ubuntu Linux and Edgeport/416

Sounds like something broke in newer kernels.

I recommend opening a case with Digi Tech. Support.

Fair enough - case logged :slight_smile:

Looks like this has been resolved:

http://www.spinics.net/lists/linux-usb/msg35314.html

Thanks Chris for pursuing this!

I think it has, but I’ve been off on holiday, so haven’t been able to confirm it definitely :slight_smile:

Have you? I’ll give it a try on Tuesday, when I’m back

Chris

I haven’t done any extensive testing, but have been able to reboot a few times without any problems - all the devices are created and pass basic loopback tests.

Kernel used:

2.6.35 SMP i686

Just back in the office, and done some more extensive testing, so it all looks good :slight_smile:

Thanks

Chris

And it looks like the fix is going into the latest ubuntu (LTS) kernel tree :slight_smile: (2.6.32-25.43)

Should all “just work”

This thread seems to relate to a problem I have been working on. I have an Edgeport/4 that I need to run under Ubuntu Linux. It works fine under Windows, but Ubuntu 10.04, kernel 2.6.32-25-generic, does not show these serial tty ports at all. lsusb shows the Edgeport/4 OK. And, it does not function. In my following of the above the above thread, I am left hopeful that future updates to Ubuntu will correct my problem. Might this be expected? I have the luxury of not needing a solution for a few months. Thanks.

Hi Bob,

Its possible that its the same issue - do you have any kernel logs to compare?

I’ve just checked the latest kernel from 10.04 (I’m using 64bit server version)

ii linux-image-2.6.32-25-server 2.6.32-25.45

and this works out of the box.

I did think that the appropriate patch had been submitted and was going into the main tree, so it appears to be the case.

So, check your version and see if its the same as the above. If it isn’t, upgrade, if it is, then your problem may be different.

I’m assuming the patch would go into the “generic” tree as well as the “server” tree, but haven’t checked and I’m afraid not in a position to try this version with our equipment where it is.

Chris

Thanks much Chris. At this point it looks like my simplest path is to install Ubuntu1010.10 that has kernel 2.6.35-14 and see if it works. This will happen in the next day or so.

Meanwhile, here is the initialization that shows in the kernel log. I tried to only post the relevant parts :
Oct 29 13:03:39 bob-desktop kernel: [ 20.101258] usbcore: registered new interface driver usbserial
Oct 29 13:03:39 bob-desktop kernel: [ 20.101294] USB Serial support registered for generic
Oct 29 13:03:39 bob-desktop kernel: [ 20.101365] usbcore: registered new interface driver usbserial_generic
Oct 29 13:03:39 bob-desktop kernel: [ 20.101369] usbserial: USB Serial Driver core
Oct 29 13:03:39 bob-desktop kernel: [ 20.147929] agpgart-intel 0000:00:00.0: Intel 865 Chipset
Oct 29 13:03:39 bob-desktop kernel: [ 20.151800] agpgart-intel 0000:00:00.0: AGP aperture is 64M @ 0xf8000000
Oct 29 13:03:39 bob-desktop kernel: [ 20.169445] lp0: using parport0 (interrupt-driven).
Oct 29 13:03:39 bob-desktop kernel: [ 20.256326] [drm] Initialized drm 1.1.0 20060810
Oct 29 13:03:39 bob-desktop kernel: [ 20.302676] psmouse serio1: ID: 10 00 64
Oct 29 13:03:39 bob-desktop kernel: [ 20.304981] USB Serial support registered for Edgeport 2 port adapter
Oct 29 13:03:39 bob-desktop kernel: [ 20.316137] USB Serial support registered for Edgeport 4 port adapter
Oct 29 13:03:39 bob-desktop kernel: [ 20.316173] USB Serial support registered for Edgeport 8 port adapter
Oct 29 13:03:39 bob-desktop kernel: [ 20.316197] USB Serial support registered for EPiC device
Oct 29 13:03:39 bob-desktop kernel: [ 20.316233] io_edgeport 4-1:1.0: Edgeport 4 port adapter converter detected
Oct 29 13:03:39 bob-desktop kernel: [ 20.316339] Initializing USB Mass Storage driver…
Oct 29 13:03:39 bob-desktop kernel: [ 20.322387] usb 4-1: Inside Out Networks Edgeport/4 detected
Oct 29 13:03:39 bob-desktop kernel: [ 20.340263] scsi4 : SCSI emulation for USB Mass Storage devices
Oct 29 13:03:39 bob-desktop kernel: [ 20.344480] usbcore: registered new interface driver usb-storage
Oct 29 13:03:39 bob-desktop kernel: [ 20.344489] USB Mass Storage support registered.
Oct 29 13:03:39 bob-desktop kernel: [ 20.345212] usb-storage: device found at 2
Oct 29 13:03:39 bob-desktop kernel: [ 20.345219] usb-storage: waiting for device to settle before scanning
Oct 29 13:03:39 bob-desktop kernel: [ 20.358378] usb 4-1: firmware: requesting edgeport/down.fw

[a bunch omitted here]

Oct 29 13:03:39 bob-desktop kernel: [ 21.062479] usb 4-1: firmware: requesting edgeport/boot.fw
Oct 29 13:03:39 bob-desktop kernel: [ 21.069366] usb 4-1: Edgeport 4 port adapter converter now attached to ttyUSB0
Oct 29 13:03:39 bob-desktop kernel: [ 21.069453] usb 4-1: Edgeport 4 port adapter converter now attached to ttyUSB1
Oct 29 13:03:39 bob-desktop kernel: [ 21.069533] usb 4-1: Edgeport 4 port adapter converter now attached to ttyUSB2
Oct 29 13:03:39 bob-desktop kernel: [ 21.069614] usb 4-1: Edgeport 4 port adapter converter now attached to ttyUSB3
Oct 29 13:03:39 bob-desktop kernel: [ 21.069649] usbcore: registered new interface driver io_edgeport
Oct 29 13:03:39 bob-desktop kernel: [ 21.069653] io_edgeport: v2.7:Edgeport USB Serial Driver
Oct 29 13:03:39 bob-desktop kernel: [ 21.215971] alloc irq_desc for 17 on node -1
Oct 29 13:03:39 bob-desktop kernel: [ 21.215977] alloc kstat_irqs on node -1

After this there is no functioning of the serial ports.

More later - Bob

Problem SOLVED:

I am going to run my Windows programs under Wine in Ubuntu10.04 Linux. As the previous post shows, the Edgeport/4 serial ports are identified as ttyUSB0, 1, 2, and 3. In Wine the recognized name is comn where n takes on the com port number, in DOS terminology. See http://fedoraforum.org/forum/showthread.php?t=194885 My Edgeport/4 is set for com4, 5, 6, and 7. To set up symbolic links to accomplish this, I added the following terminal commands:

cd .wine
cd dosdevices
ln -s /dev/ttyUSB0 com4
ln -s /dev/ttyUSB1 com5
ln -s /dev/ttyUSB2 com6
ln -s /dev/ttyUSB3 com7

I only tested com4 and com5, but they provided serial communications completely as expected. The commands can be incorporated into a script as indicated in the reference. I’m learning lots!!

This is being used on my sailboat to handle data communications (Airmail 2000 program with radio and modem control) along with GPS and AIS receivers for navigation (openCPN program). This uses all 4 ports.

Bob

Glad you sorted it out - I thought it didn’t look like quite the same problem

Chris

I think I’ve got the same problem - based on the logs below

I’m on the following kernel

$ uname -a
Linux OOB1 2.6.32-38-generic-pae #83-Ubuntu SMP Wed Jan 4 12:11:13 UTC 2012 i686 GNU/Linux

I fear the fix has not made it to the generic load…at least not on the Ubuntu 10.04.4 LTS codebase

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION=“Ubuntu 10.04.4 LTS”

Logs (After a reboot there were only two ttyUSB ports listed as can be seen from the disconnect. After removal/re-insertion there are four. It seems a reboot is handled differently to a re-insertion - guessing)

kjs@OOB1:~$ dmesg
[1212867.480037] usb 2-1: USB disconnect, address 2
[1212867.480042] usb 2-1.1: USB disconnect, address 3
[1212867.480318] edgeport_ti_2 ttyUSB0: Edgeport TI 2 port adapter converter now disconnected from ttyUSB0
[1212867.480469] edgeport_ti_2 ttyUSB1: Edgeport TI 2 port adapter converter now disconnected from ttyUSB1
[1212867.480511] io_ti 2-1.1:1.0: device disconnected

[1212875.920027] usb 2-1: new full speed USB device using uhci_hcd and address 5
[1212876.074098] usb 2-1: configuration #1 chosen from 1 choice
[1212876.077064] hub 2-1:1.0: USB hub found
[1212876.079352] hub 2-1:1.0: 1 port detected
[1212876.353932] usb 2-1.1: new full speed USB device using uhci_hcd and address 6
[1212876.466038] usb 2-1.1: configuration #1 chosen from 1 choice
[1212876.469036] io_ti 2-1.1:1.0: Edgeport TI 2 port adapter converter detected
[1212876.929846] usb 2-1.1: firmware: requesting edgeport/down3.bin
[1212877.663745] io_ti: probe of 2-1.1:1.0 failed with error -5
[1212877.896040] usb 2-1: USB disconnect, address 5
[1212877.896045] usb 2-1.1: USB disconnect, address 6
[1212880.256026] usb 2-1: new full speed USB device using uhci_hcd and address 7
[1212880.405315] usb 2-1: configuration #1 chosen from 1 choice
[1212880.408357] hub 2-1:1.0: USB hub found
[1212880.410537] hub 2-1:1.0: 2 ports detected
[1212880.689139] usb 2-1.1: new full speed USB device using uhci_hcd and address 8
[1212880.801254] usb 2-1.1: configuration #1 chosen from 1 choice
[1212880.804377] io_ti 2-1.1:1.0: Edgeport TI 2 port adapter converter detected
[1212881.265053] usb 2-1.1: firmware: requesting edgeport/down3.bin
[1212881.960960] io_ti: probe of 2-1.1:1.0 failed with error -5
[1212882.037923] usb 2-1.2: new full speed USB device using uhci_hcd and address 9
[1212882.289013] usb 2-1.2: configuration #1 chosen from 1 choice
[1212882.292995] io_ti 2-1.2:1.0: Edgeport TI 2 port adapter converter detected
[1212882.459021] usb 2-1.2: Edgeport TI 2 port adapter converter now attached to ttyUSB0
[1212882.459130] usb 2-1.2: Edgeport TI 2 port adapter converter now attached to ttyUSB1
[1212882.462872] usb 2-1.1: USB disconnect, address 8
[1212884.321558] usb 2-1.1: new full speed USB device using uhci_hcd and address 10
[1212884.574653] usb 2-1.1: configuration #1 chosen from 1 choice
[1212884.578623] io_ti 2-1.1:1.0: Edgeport TI 2 port adapter converter detected
[1212884.744656] usb 2-1.1: Edgeport TI 2 port adapter converter now attached to ttyUSB2
[1212884.744770] usb 2-1.1: Edgeport TI 2 port adapter converter now attached to ttyUSB3