Fail to detect Printer (Anycubic Mega X)

Hello,

I have installed OctoPi reasently on my PI Model B+ and want to use it with my Anycubic Mega X Printer.
I can log into octopi.local but when i try to connect to my printer:

This happens:

The Printer can not be detected and i can only select AUTO for serialport

I have tried several different cables and restarted the whole system a few times :frowning: nothing worked :frowning:

Terminal Table:

Changing monitoring state from "Offline" to "Detecting serial port"
Serial port list: []
Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
Failed to autodetect serial port, please set it manually.
Changing monitoring state from "Offline" to "Detecting serial port"
Serial port list: []
Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
Failed to autodetect serial port, please set it manually.
Changing monitoring state from "Offline" to "Detecting serial port"
Serial port list: []
Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
Failed to autodetect serial port, please set it manually.

As Browser i use Chrome.

Thanks for your help!

Greatings from Germany Sebastian

Just quickly linking the next debugging steps here:

So... install putty, connect to your Pi via SSH (username: pi, default password: raspberry). Then:

  • Plug the printer in.
  • Run dmesg. Share the output.
  • Run lsusb. Share the output.
1 Like

Also: please share your logs (<- this is a link, please click it)... I'm pretty sure I told you on Discord to share what you were asked to share in the template :wink:

pi@octopi:~ $ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.75+ (dom@buildbot) (gcc version 4.9.3 (crossto ol-NG crosstool-ng-1.22.0-88-g8460611)) #1270 Tue Sep 24 18:38:54 BST 2019
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr =00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruc tion cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi Model B Plus Rev 1.2
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 8 MiB at 0x17400000
[ 0.000000] On node 0 totalpages: 98304
[ 0.000000] Normal zone: 864 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 98304 pages, LIFO batch:31
[ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x49c with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 97440
[ 0.000000] Kernel command line: coherent_pool=1M bcm2708_fb.fbwidth=656 bcm2 708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x1ec00000 vc_mem.mem_si ze=0x20000000 console=ttyAMA0,115200 console=tty1 root=PARTUUID=6c586e13-02 roo tfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 369464K/393216K available (6973K kernel code, 635K rwdata , 2080K rodata, 464K init, 797K bss, 15560K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xd8800000 - 0xff800000 ( 624 MB)
lowmem : 0xc0000000 - 0xd8000000 ( 384 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0x(ptrval) - 0x(ptrval) (6975 kB)
.init : 0x(ptrval) - 0x(ptrval) ( 464 kB)
.data : 0x(ptrval) - 0x(ptrval) ( 636 kB)
.bss : 0x(ptrval) - 0x(ptrval) ( 798 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 25197 entries in 74 pages
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000031] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2 147483647500ns
[ 0.000092] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_ idle_ns: 1911260446275 ns
[ 0.000221] bcm2835: system timer (irq = 27)
[ 0.000640] Console: colour dummy device 80x30
[ 0.001272] console [tty1] enabled
[ 0.001352] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[ 0.060393] pid_max: default: 32768 minimum: 301
[ 0.060963] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.061022] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.062459] CPU: Testing write buffer coherency: ok
[ 0.063852] Setting up static identity map for 0x8200 - 0x8238
[ 0.065331] devtmpfs: initialized
[ 0.075869] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.076364] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.076444] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.077815] pinctrl core: initialized pinctrl subsystem
[ 0.079413] NET: Registered protocol family 16
[ 0.082629] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.089644] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.089721] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.089889] Serial: AMBA PL011 UART driver
[ 0.093219] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[ 0.136479] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dma chans=0x1
[ 0.139073] SCSI subsystem initialized
[ 0.139393] usbcore: registered new interface driver usbfs
[ 0.139552] usbcore: registered new interface driver hub
[ 0.139813] usbcore: registered new device driver usb
[ 0.150934] raspberrypi-firmware soc:firmware: Attached to firmware from 2019 -09-24 17:39, variant start_x
[ 0.160956] raspberrypi-firmware soc:firmware: Firmware hash is 6820edeee4ef3 891b95fc01cf02a7abd7ca52f17
[ 0.173273] clocksource: Switched to clocksource timer
[ 0.277648] VFS: Disk quotas dquot_6.6.0
[ 0.277835] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.278210] FS-Cache: Loaded
[ 0.278586] CacheFiles: Loaded
[ 0.297980] NET: Registered protocol family 2
[ 0.299357] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.299480] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.299596] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.299718] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.299911] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.299982] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.300434] NET: Registered protocol family 1
[ 0.301582] RPC: Registered named UNIX socket transport module.
[ 0.301646] RPC: Registered udp transport module.
[ 0.301677] RPC: Registered tcp transport module.
[ 0.301706] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.303913] hw perfevents: no irqs for PMU, sampling events not supported
[ 0.304036] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters ava ilable
[ 0.308167] Initialise system trusted keyrings
[ 0.308631] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.323773] FS-Cache: Netfs 'nfs' registered for caching
[ 0.325168] NFS: Registering the id_resolver key type
[ 0.325268] Key type id_resolver registered
[ 0.325304] Key type id_legacy registered
[ 0.325356] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.331038] Key type asymmetric registered
[ 0.331110] Asymmetric key parser 'x509' registered
[ 0.331247] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 50)
[ 0.331771] io scheduler noop registered
[ 0.331829] io scheduler deadline registered (default)
[ 0.332460] io scheduler cfq registered
[ 0.332512] io scheduler mq-deadline registered (default)
[ 0.332550] io scheduler kyber registered
[ 0.335366] bcm2708_fb soc:fb: FB found 1 display(s)
[ 0.344661] Console: switching to colour frame buffer device 82x26
[ 0.352197] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 656 x416
[ 0.361447] bcm2835-rng 20104000.rng: hwrng registered
[ 0.364823] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000 000(512 MiB)
[ 0.371433] vc-sm: Videocore shared memory driver
[ 0.375130] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x202 00000
[ 0.401506] brd: module loaded
[ 0.418188] loop: module loaded
[ 0.421956] Loading iSCSI transport class v2.0-870.
[ 0.425981] usbcore: registered new interface driver smsc95xx
[ 0.428862] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.459679] dwc_otg 20980000.usb: base=(ptrval)
[ 0.662866] Core Release: 2.80a
[ 0.665723] Setting default values for core params
[ 0.668552] Finished setting default values for core params
[ 0.871782] Using Buffer DMA mode
[ 0.874717] Periodic Transfer Interrupt Enhancement - disabled
[ 0.877628] Multiprocessor Interrupt Enhancement - disabled
[ 0.880445] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 0.883427] Dedicated Tx FIFOs mode
[ 0.887017] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = d7514 000 dma = 0x57514000 len=9024
[ 0.892636] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 0.905408] dwc_otg: Microframe scheduler enabled
[ 0.905670] WARN::hcd_init_fiq:457: FIQ on core 0
[ 0.908326] WARN::hcd_init_fiq:458: FIQ ASM at c04fdd70 length 36
[ 0.910937] WARN::hcd_init_fiq:497: MPHI regs_base at d8810000
[ 0.913551] dwc_otg 20980000.usb: DWC OTG Controller
[ 0.916218] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 0.918927] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[ 0.921563] Init: Port Power? op_state=1
[ 0.924196] Init: Power Port (0)
[ 0.927124] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bc dDevice= 4.19
[ 0.932184] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[ 0.935000] usb usb1: Product: DWC OTG Controller
[ 0.937714] usb usb1: Manufacturer: Linux 4.19.75+ dwc_otg_hcd
[ 0.940441] usb usb1: SerialNumber: 20980000.usb
[ 0.944364] hub 1-0:1.0: USB hub found
[ 0.947042] hub 1-0:1.0: 1 port detected
[ 0.950682] dwc_otg: FIQ enabled
[ 0.950694] dwc_otg: NAK holdoff enabled
[ 0.950700] dwc_otg: FIQ split-transaction FSM enabled
[ 0.950720] Module dwc_common_port init
[ 0.951287] usbcore: registered new interface driver usb-storage
[ 0.954613] mousedev: PS/2 mouse device common for all mice
[ 0.958726] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 0.961952] bcm2835-cpufreq: min=700000 max=700000
[ 0.965607] sdhci: Secure Digital Host Controller Interface driver
[ 0.968403] sdhci: Copyright(c) Pierre Ossman
[ 0.971828] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[ 0.975135] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.978878] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.981976] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.985248] usbcore: registered new interface driver usbhid
[ 0.988155] usbhid: USB HID core driver
[ 0.992160] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 0.997361] [vc_sm_connected_init]: start
[ 1.007866] [vc_sm_connected_init]: end - returning 0
[ 1.012538] Initializing XFRM netlink socket
[ 1.015461] NET: Registered protocol family 17
[ 1.018323] Key type dns_resolver registered
[ 1.022812] registered taskstats version 1
[ 1.025655] Loading compiled-in X.509 certificates
[ 1.038581] uart-pl011 20201000.serial: cts_event_workaround enabled
[ 1.041609] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 1.937239] console [ttyAMA0] enabled
[ 1.947285] sdhost: log_buf @ (ptrval) (57513000)
[ 2.002308] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 2.012389] of_cfs_init
[ 2.038001] of_cfs_init: OK
[ 2.044591] Waiting for root device PARTUUID=6c586e13-02...
[ 2.053795] random: fast init done
[ 2.060246] Indeed it is in host mode hprt0 = 00021501
[ 2.161500] mmc0: host does not support reading read-only switch, assuming wr ite-enable
[ 2.177614] mmc0: new high speed SDHC card at address 59b4
[ 2.187984] mmcblk0: mmc0:59b4 00000 7.35 GiB
[ 2.198184] mmcblk0: p1 p2
[ 2.217170] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesyst em
[ 2.227546] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 2.273514] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.287044] Indeed it is in host mode hprt0 = 00001101
[ 2.533899] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcd Device= 2.00
[ 2.548101] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.563786] hub 1-1:1.0: USB hub found
[ 2.574964] hub 1-1:1.0: 5 ports detected
[ 2.913389] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.993700] EXT4-fs (mmcblk0p2): recovery complete
[ 3.012132] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O pts: (null)
[ 3.026802] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 3.049149] devtmpfs: mounted
[ 3.056083] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, b cdDevice= 2.00
[ 3.071017] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber =0
[ 3.086217] Freeing unused kernel memory: 464K
[ 3.094183] This architecture does not have kernel memory protection.
[ 3.104149] Run /sbin/init as init process
[ 3.115065] smsc95xx v1.0.6
[ 3.220121] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb- 1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:d5:63:24
[ 3.972320] systemd[1]: System time before build time, advancing clock.
[ 4.143632] NET: Registered protocol family 10
[ 4.154204] Segment Routing with IPv6
[ 4.223726] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SEL INUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL + XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybr id)
[ 4.256753] systemd[1]: Detected architecture arm.
[ 4.287607] systemd[1]: Set hostname to .
[ 4.307194] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argumen t
[ 5.874547] uart-pl011 20201000.serial: no DMA platform data
[ 6.252225] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not sup port BPF/cgroup based firewalling.
[ 6.279358] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warni ng is only shown for the first loaded unit using IP firewalling.)
[ 7.184229] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.219227] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.230576] systemd[1]: Listening on udev Kernel Socket.
[ 7.244977] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.263854] systemd[1]: Created slice system-getty.slice.
[ 7.280375] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 7.296037] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 9.356752] systemd[1]: Mounted Kernel Configuration File System.
[ 9.675659] systemd[1]: Started File System Check Daemon to report status.
[ 9.966613] systemd[1]: Started Apply Kernel Variables.
[ 10.144619] systemd[1]: Started Journal Service.
[ 11.369409] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 11.975540] systemd-journald[75]: Received request to flush runtime journal f rom PID 1
[ 14.212081] vc_sm_cma: module is from the staging directory, the quality is u nknown, you have been warned.
[ 14.221464] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 14.221490] [vc_sm_connected_init]: start
[ 14.230734] media: Linux media interface: v0.10
[ 14.243972] [vc_sm_connected_init]: installed successfully
[ 14.381765] videodev: Linux video capture interface: v2.00
[ 14.525590] bcm2835_mmal_vchiq: module is from the staging directory, the qua lity is unknown, you have been warned.
[ 14.529172] bcm2835_mmal_vchiq: module is from the staging directory, the qua lity is unknown, you have been warned.
[ 14.630312] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.632358] bcm2835_v4l2: module is from the staging directory, the quality i s unknown, you have been warned.
[ 15.093719] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.242857] bcm2835_audio soc:audio: card created with 8 channels
[ 15.357420] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 15.357494] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 15.374083] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 15.374142] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 15.381669] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 15.381733] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 16.963528] Under-voltage detected! (0x00050000)
[ 19.043585] Voltage normalised (0x00000000)
[ 23.592587] random: crng init done
[ 23.592611] random: 7 urandom warning(s) missed due to ratelimiting
[ 25.526504] 8021q: 802.1Q VLAN Support v1.8
[ 26.075825] cfg80211: Loading compiled-in X.509 certificates for regulatory d atabase
[ 26.707638] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 27.141726] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:1 02396k SSFS
[ 27.364512] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 28.960809] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E

pi@octopi:~ $ lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Log Files:

Much thanks for your kind and fast support!

... we need the actual files, not a screenshot of the download page :wink:

However we can also stop here... your printer isn't being detected as a serial device at all, so apparently it either isn't compatible with OctoPrint or something is broken here. Definitely not a software issues. I suggest you try to google around a bit if this printer even speaks serial.

Also:

[ 16.963528] Under-voltage detected! (0x00050000)

Get a proper power supply for your pi, it's not getting enough power.

ok thanks soooo much !

ok I actually think my Printer USB Port might be damaged :frowning: if contacted the support now.

@Bearded_Cobra: have you gotten some additional inforamtion this reg.?
I've looking for some info too, but I did not get till now a reasonable answer :-/
I'm having the same issue with my anycubic mega X
Thanks in advance

@gribarian @Bearded_Cobra_48 Might be old news but noticed the original poster had his baudrate at 115200 and im not sure if this is correct as i have to have mine at the 250000. i tried many times in pronterface to connect at the 115200 but with no luck and i just decided to try a different baud till i found one that actually worked (the problem with very little documentation on these printers) any ways im going to try and setup octoprint for my mega x, ill post back if it works, not sure if any of this is still relevant but someone may search down the road....

Edit : literally took me 20 minutes to get up and running and accidentally interupt a print i had going. works like a charm use baud 250000

Thank you very much for your answer! :wink:
I'll try your suggestion and I really hope, it can work acceptable.
Have a nice and quite time and keep safe

@gribarian Yeah no problem. im new to this but i saw that people were having trouble getting octo to work on mega X and i saw an issue as it turned out mine works great and i thought id share.

1 Like