Octoprint not connecting to /dev/ttyAMA0 on Mate 22.04

Bug #1989287 reported by David Drumm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu MATE
New
Undecided
Unassigned

Bug Description

Unable to get OctoPrint connection to 3D printer working on /dev/ttyAMA0 after upgrading from Mate 20.04 to Mate 22.04. (Fresh install of everything done twice already) Hardware is a Creality CR6-SE with community firmware connected to Pi4 with 8GB in Argon case with 250GB SSD (Kernel Linux 5.15.0-1013-raspi aarch64)

    ERROR Log Info:
    Connecting to port /dev/ttyAMA0, baudrate 115200
    Serial detection: Handshake attempt #3 with timeout 2.0s
    M110 detected, setting current line number to 0
    Changing monitoring state from "Detecting serial connection" to "Error"
    Changing monitoring state from "Error" to "Offline after error"

(Appears to have most the of same issues that accompanied having the brltty.service running in version 20.10)

User is a member of tty & dialout groups

Have also tested connection to /dev/ttyAAMA0 with Pronterface and it also fails to connect.

USB info from dmesg below:

[ 2.548884] usb usb1: SerialNumber: 0000:01:00.0
[ 2.553627] hub 1-0:1.0: USB hub found
[ 2.553698] hub 1-0:1.0: 1 port detected
[ 2.554204] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 2.554216] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 2.554228] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 2.554423] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 2.554431] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.554437] usb usb2: Product: xHCI Host Controller
[ 2.554442] usb usb2: Manufacturer: Linux 5.15.0-1014-raspi xhci-hcd
[ 2.554446] usb usb2: SerialNumber: 0000:01:00.0
[ 2.568019] hub 2-0:1.0: USB hub found
[ 2.568116] hub 2-0:1.0: 4 ports detected
[ 2.573581] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode
[ 2.575172] brcmstb-i2c fef09500.i2c: @97500hz registered in polling mode
[ 2.595104] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator
[ 2.595276] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator
[ 2.615819] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[ 2.807634] dwc2 fe980000.usb: EPs: 8, dedicated fifos, 4080 entries in SPRAM
[ 2.808085] dwc2 fe980000.usb: DWC OTG Controller
[ 2.809322] dwc2 fe980000.usb: new USB bus registered, assigned bus number 3
[ 2.809368] dwc2 fe980000.usb: irq 24, io mem 0xfe980000
[ 2.809540] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 2.809547] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.809553] usb usb3: Product: DWC OTG Controller
[ 2.809558] usb usb3: Manufacturer: Linux 5.15.0-1014-raspi dwc2_hsotg
[ 2.809562] usb usb3: SerialNumber: fe980000.usb
[ 2.860469] hub 3-0:1.0: USB hub found
[ 2.860531] hub 3-0:1.0: 1 port detected
[ 2.887593] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 3.038283] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 3.038316] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.038330] usb 1-1: Product: USB2.0 Hub
[ 3.040232] hub 1-1:1.0: USB hub found
[ 3.040536] hub 1-1:1.0: 4 ports detected
[ 3.163970] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 3.185341] usb 2-2: New USB device found, idVendor=174c, idProduct=1156, bcdDevice= 1.00
[ 3.185361] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 3.185374] usb 2-2: Product: Forty
[ 3.185385] usb 2-2: Manufacturer: Argon
[ 3.185396] usb 2-2: SerialNumber: 0000000000E4
[ 3.218738] usbcore: registered new interface driver usb-storage
[ 3.226952] scsi host0: uas
[ 3.227309] usbcore: registered new interface driver uas
[ 3.227844] scsi 0:0:0:0: Direct-Access Argon Forty 0 PQ: 0 ANSI: 6
[ 3.228853] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 3.229636] sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
[ 3.229645] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 3.229801] sd 0:0:0:0: [sda] Write Protect is off
[ 3.229808] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 3.230022] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 3.230603] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[ 3.268778] sda: sda1 sda2
[ 3.284223] sd 0:0:0:0: [sda] Attached SCSI disk
[ 3.335618] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[ 3.467206] usb 1-1.3: New USB device found, idVendor=0ac8, idProduct=3460, bcdDevice= 1.00
[ 3.467240] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.467253] usb 1-1.3: Product: Kodak Dual Webcamera
[ 3.467265] usb 1-1.3: Manufacturer: Sakar Corp.
[ 3.547690] usb 1-1.4: new low-speed USB device number 4 using xhci_hcd
[ 3.659542] usb 1-1.4: New USB device found, idVendor=17ef, idProduct=6019, bcdDevice= 1.00
[ 3.659562] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.659568] usb 1-1.4: Product: Lenovo USB Optical Mouse
[ 3.659573] usb 1-1.4: Manufacturer: PixArt
[ 3.676807] usbcore: registered new interface driver usbhid
[ 3.676823] usbhid: USB HID core driver
[ 3.687097] input: PixArt Lenovo USB Optical Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:17EF:6019.0001/input/input0
[ 3.687365] hid-generic 0003:17EF:6019.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt Lenovo USB Optical Mouse] on usb-0000:01:00.0-1.4/input0
[ 3.935332] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 4.471723] systemd[1]: Inserted module 'autofs4'

Tags: ttyama0
Revision history for this message
David Drumm (davedrumm41) wrote :

                FIX FOUND * * * FIX FOUND * * *

A solution that WORKS was suggest to me on the Octoprint forum. sudo systemctl disable brltty

It seems like I am not the only person who has WASTED countless hours because you have decided to ship this version of Mate with the "BRLTTY" service enabled.

BRLTTY as I'm sure you are aware has a conflict with ttyUSB0 causing ttyAMA0 not to connect to any USB devices. A major issue to many CNC router and 3D printer users.

Might want to rethink shipping the service disabled in the future.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.