PiperPilot2
Posts: 8
Joined: Wed Nov 06, 2019 6:28 pm

Can't get PI 3B+ to connect with Anet A8

Wed Nov 06, 2019 6:38 pm

What is the problem?
I cannot seem to connect my PI 3B+ to my Anet A8 printer
What did you already try to solve it? Bought different USB cable, tried different ps, tried changing outlets ps was plugged into, moved cable around all the different usb ports on PI

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, what kind of hardware precisely, ...) Anet A8 with upgraded Anet30 v1.7 motherboard, running current version of Marlin (not the bugfix version) 1.8.9, Raspberry PI 3B+, and Octoprint 1.3.12, running on Octopi 0.16.0
Everytime I go to connect with the settings on : serial port /dev/tty/USB0, baud rate: 115200, it ends up timing out, and saying more or less no reply from printer. Below is one of the logs, which is always the same. I have the plugin for undervoltage and overheat enabled, but never see anything at top of screen, relating to either issue. Just about ready to give up!
2019-11-06 06:49:05,385 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2019-11-06 16:39:14,859 - Enabling serial logging
2019-11-06 16:39:32,646 - Connecting to: /dev/ttyUSB0
2019-11-06 16:39:32,666 - Changing monitoring state from "Offline" to "Opening serial port"
2019-11-06 16:39:32,671 - Connected to: Serial<id=0x72d9f7f0, open=True>(port='/dev/ttyUSB0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2019-11-06 16:39:32,671 - Changing monitoring state from "Opening serial port" to "Connecting"
2019-11-06 16:39:32,683 - Send: N0 M110 N0125
2019-11-06 16:39:32,695 - Send: N0 M110 N0125
2019-11-06 16:40:02,712 - No answer from the printer within the connection timeout, trying another hello
2019-11-06 16:40:02,726 - Send: N0 M110 N0*125
2019-11-06 16:40:12,726 - There was a timeout while trying to connect to the printer
2019-11-06 16:40:12,741 - Changing monitoring state from "Connecting" to "Offline"
2019-11-06 16:40:12,755 - Connection closed, closing down monitor

22/7
Posts: 22
Joined: Thu Sep 26, 2019 9:07 pm

Re: Can't get PI 3B+ to connect with Anet A8

Wed Nov 06, 2019 8:18 pm

See if you can add the printer using /dev/serial/by-path value for whatever usb slot your printer is attached to.

I have 4 printers (2 aneta8s) connected to my pi4 using repetier server and I use the /dev/serial/by-path values for the usb connection settings.

PiperPilot2
Posts: 8
Joined: Wed Nov 06, 2019 6:28 pm

Re: Can't get PI 3B+ to connect with Anet A8

Thu Nov 07, 2019 12:08 am

where would I add that , and what exactly would I put down. Sorry this is new to me. I am running Octoprint, or trying to.

22/7
Posts: 22
Joined: Thu Sep 26, 2019 9:07 pm

Re: Can't get PI 3B+ to connect with Anet A8

Thu Nov 07, 2019 12:19 am

When you connect the printer to the pi, in an ssh session (or command line if you are using the desktop) you will issue the command

Code: Select all

ls /dev/serial/by-path
There will be a value there that should correspond to the usb connection.

I haven't used octoprint but in repetier server I have to add my printers and set them up to include what port the printer is attached to. This setting is in the printer settings within repetier server. I would guess octoprint would be similar.

I will attach screenshots when I return to my work room.

User avatar
scruss
Posts: 2542
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Can't get PI 3B+ to connect with Anet A8

Thu Nov 07, 2019 1:15 am

do you have any other USB serial devices plugged in? They might be the ones taking up the /dev/ttyUSB0
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

PiperPilot2
Posts: 8
Joined: Wed Nov 06, 2019 6:28 pm

Re: Can't get PI 3B+ to connect with Anet A8

Thu Nov 07, 2019 1:56 am

Can you tell me what your serial and path is for you anet? Mine is currnetly showing /dev/tty/USB0

22/7
Posts: 22
Joined: Thu Sep 26, 2019 9:07 pm

Re: Can't get PI 3B+ to connect with Anet A8

Thu Nov 07, 2019 3:14 am

Code: Select all

pi@repserv:~ $ ls /dev/serial/by-path
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-port0
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-port0
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-port0
usb-0:1.3:1.0-port0 = a8-1
usb-0:1.4:1.0-port0 = a8-2

The attached image is how I select the port in the printer settings of repetier server.

/dev/ttyUSBx would normally be used but through trial and error I found that specifying the /dev/serial/by-path value was more reliable for my connections through the print server. For example = a 36+ hour print finished with no interruptions. When I first used the ttyusbX I had problems maintaining 8 hour prints without interruptions.

YMMV...I have never used octoprint.

One other note: I have marlin flashed to all my printers. I also have UUIDs on all printers so that they are "uniquely identified" to the raspberry pi. If you are using more than one printer you may need to look into UUID per printer.
Attachments
ss.jpg
ss.jpg (80.37 KiB) Viewed 285 times

Spyder19
Posts: 16
Joined: Sat Jun 02, 2018 3:16 am

Re: Can't get PI 3B+ to connect with Anet A8

Thu Nov 07, 2019 9:48 am

PiperPilot2 wrote:
Thu Nov 07, 2019 1:56 am
Can you tell me what your serial and path is for you anet? Mine is currnetly showing /dev/tty/USB0
Doesn't the fact that your printer is showing up on USB0 mean that the PI itself sees it, and the problem might be with octo-print ?

I have 2 Anet A8's, one is on a 3B and the other is on a 3B+. Both have Logitech cameras for Octo-print.

Code: Select all

OctoPrint 1.3.10 running on OctoPi 0.15.1
Admittedly, an older version, but I like it the way it is ;)

This is what I get on the 3B+...

Code: Select all

pi@octopi-bplus:~ $ lsusb

Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 006: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
And this...

Code: Select all

pi@octopi-bplus:~ $ ls /dev/serial/by-path

platform-3f980000.usb-usb-0:1.1.3:1.0-port0
And this...

Code: Select all

pi@octopi-bplus:~ $ ls /dev/ttyUSB*

/dev/ttyUSB0
The fact that you're saying this...
PiperPilot2 wrote:
Thu Nov 07, 2019 1:56 am
Mine is currnetly showing /dev/tty/USB0
Says to me that the PI sees it, and the problem might be OctoPrint. So let's look at it...

In Octo-Print, under the "Options" wrench, go to "Serial Connection", "General", and tell me if your settings are set to "Serial Port auto" or /dev/ttyUSB0, and "Baud Rate Auto" or 115200 ?

I have both settings on that page set to "auto". If yours are different, try "Auto" and see what happens

PiperPilot2
Posts: 8
Joined: Wed Nov 06, 2019 6:28 pm

Re: Can't get PI 3B+ to connect with Anet A8

Thu Nov 07, 2019 8:21 pm

My path is currently showing /dev/tty/USB0. On the settings page it has been set to Auto, and it has been set to /dev/tty/USB0, and 115200. Doesn't seem to make a difference either way.
Had a friend of mine with degree in Computer Science take control of my computer over the internet, and checked SSH is enabled, and tried hooking directly to router with LAN cable, and printer still did not answer. Tried everything for about 2 hours , then said "I don't know what else to try". I had it hook up yesterday for about 30 seconds and that was it. I have all USB ports working, and there is no Undervoltage issues or I would get the icon come on from that plugin.
Don't really know what to do at this point. Could try another PI if I had one, but very slim chance that it is a bad PI.
Friend likes to joke with me and say get rid of that junk Anet, and buy you a real printer like a Prusa I3 MK3

Spyder19
Posts: 16
Joined: Sat Jun 02, 2018 3:16 am

Re: Can't get PI 3B+ to connect with Anet A8

Fri Nov 08, 2019 5:16 am

You also said that you upgraded the firmware, which means that you had to, at some point, talk to the Anet control board, with Arduino I assume ?

This means that the serial port on the control board is working...

This still seems to point to Octo-Print. I was thinking of asking you to see if you could load an earlier version, but I don't see one on Gina's website or her github, and I just tried to upload one of my old copies to github, and it seems that my account won't let me send anything bigger than 25m

Or maybe... Maybe it's not Octo-Print, and it's a setting in the new Marlin you uploaded ?

Or did you say Skynet ? Either way, have you checked the firmware you uploaded ?

PiperPilot2
Posts: 8
Joined: Wed Nov 06, 2019 6:28 pm

Re: Can't get PI 3B+ to connect with Anet A8

Fri Nov 08, 2019 9:19 pm

I uploaded Marlin back about 4 or 5 months ago, and have been using usb cable from computer to printer all this time, and yes it was through Arduino. By asking if I have checked the firmware I uploaded,are you referring to Marlin, or Octoprint? Octoprint comes right up on the screen when I connect to it.

Spyder19
Posts: 16
Joined: Sat Jun 02, 2018 3:16 am

Re: Can't get PI 3B+ to connect with Anet A8

Sat Nov 09, 2019 12:40 pm

PiperPilot2 wrote:
Fri Nov 08, 2019 9:19 pm
are you referring to Marlin, or Octoprint?
I'm thinking that you should check Marlin.

Also, there's a first thing that seems to be a good comment to make, (which I should have made earlier) which is that the USB cable should be as short as possible, and have one of those ferrite cores

Here's what I'm seeing, tell me if I'm wrong...

1 Your computer is connecting to the Octo-Print web page (which resides on the Pi, and is served up by the Pi)
2 Your Pi seems to be connecting to your printers control board (/dev/tty/USB0)
3 Octo-Print doesn't recognize your printer, or that you have a printer

PiperPilot2
Posts: 8
Joined: Wed Nov 06, 2019 6:28 pm

Re: Can't get PI 3B+ to connect with Anet A8

Mon Nov 11, 2019 1:00 am

Yes I am able to connect to the PI over the internet with no problem. I have momentarily connected printer to Octoprint for a few short seconds, so I assume it had to at one point recognize the printer. I have heard of undervoltage problems causing these issues, but my ps is a 5v 2500ma ps , so that should be no problem. I had a 5 ft USB cable connecting to printer, but friend told me to get shorter, so I ordered a 1ft cord, and just recieved it from Amazon couple days ago. Made no difference at all.
I was going to post a couple pictures of wouldn't let me saying to big, and I don't have Photoshop to change resolution.

Spyder19
Posts: 16
Joined: Sat Jun 02, 2018 3:16 am

Re: Can't get PI 3B+ to connect with Anet A8

Mon Nov 11, 2019 2:47 am

Have you tried

https://community.octoprint.org/

3D printer problems with Octo-Print are their specialty

PiperPilot2
Posts: 8
Joined: Wed Nov 06, 2019 6:28 pm

Re: Can't get PI 3B+ to connect with Anet A8

Mon Nov 11, 2019 4:19 am

Yep, have a post there also. Still waiting on a reply from someone.

User avatar
scruss
Posts: 2542
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Can't get PI 3B+ to connect with Anet A8

Mon Nov 11, 2019 2:35 pm

PiperPilot2 wrote:
Thu Nov 07, 2019 8:21 pm
Friend likes to joke with me and say get rid of that junk Anet, and buy you a real printer like a Prusa I3 MK3
Nothing wrong with the Anet. They use the same serial setup as Creality and most other affordable printers. The “10,000 hex bolts flying in close formation” home-made Reach 3D printer I have ran with the same serial setup on OctoPrint for years. So your lack of an answer from here or the OctoPrint community is that there's something missing in what you're telling us. (Hey, that came across as a bit blamey: there are a lot of variables here, and it's easy for anyone to miss one. Ask me about the times I've forgotten to turn the printer on …) If everything is as expected, the printer should be working. But it's not, and you're frustrated and annoyed. It's not you. Even if you did have a Prusa i3 mk3s, you'd have to get over the same hurdles (but at least you'd get a pack of gummy bears with the Prusa to console yourself with).

The short USB cable issue is for power to the Raspberry Pi, not signal to the printer.

Can you print (or even control the printer slightly) from another (not Raspberry Pi) computer via USB from something like Cura or Printrun/Pronterface? Don't worry if your exact printer isn't listed in the setup, as an Anet A8 is a pretty-much stock Marlin printer. It's certainly stock enough that if you tell Pronterface to move an axis, it should move an axis.

Is the printer turned on? Can you get it to do a preheat from the front panel and see that at least it's warming something up? A USB connection from a Raspberry Pi is often enough to power up the control electronics of a 3D printer, but can't drive the motors or hot end.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

Return to “Troubleshooting”