lnxguy
I have a Quadra running Klipper and Mainsail on one of my printers.  The install is easy using the KIAUH script.
b_webb
Printsleo3d wrote:
My first thought would be it's something cable-related. Have you tried a different USB cable? Also what type of printer and mainboard is this?


Mine too.  I tried two cables that have both worked successfully with Klipper/Linux. 

The machine is an 8-bit Melzi style board.  It is the factory board in a Monoprice Maker Select V2.  This machine works fine on a PI.
Reply 0 0
Printsleo3d
I found a website that goes over some diagnosis of similar boards. This is the website (http://reprapltd.com/reprappro/documentation/huxley/troubleshooting/index.html). After troubleshooting the cable my mind went to either a poor usb connection on the board itself (maybe the pins inside have bent or been damaged), or when you plug it in the board will get tertiary power from the Quadra, and maybe there is an issue arising from there? The section below is what I saw on the above mentioned website and it does into some more educated troubleshooting that you can take and start checkign issues off the list. (I am linking the text here for ease of access, but I don't want to steal an web traffic and credit from the originating website, so maybe you should navigate there):

Problem

  • Can’t connect to Melzi
  • No LED lights up on Melzi
  • Melzi disconnects randomly

Solution

Check the Melzi’s physical connections first:

  • Connecting using USB power. Turn mains power off, move the central power jumper to the pins furthest from the screw terminals, plug in USB lead. The position of the autoreset jumper shouldn’t matter, though generally best to leave it off. Press the reset button on the board to check it hasn’t got stuck down. Check that the pin furthest from the screw terminals on the power jumper is supplying 5V – if not, you may have a damaged USB lead. Does the LED light on the board start flashing after 20 seconds or so? If not, it’s possible the firmware or the Arduino processor itself that’s damaged.
  • In normal running, the autoreset jumper (the one at the top of the board) should be removed, or left hanging on just one of the pins, and the central power jumper should be bridging the middle pin and the pin closest to the screw terminals. This means the Arduino processor is supplied with power from the 19V power input, rather than USB.
  • If the hot end fan comes on, the board is getting some power. Check that you get 19V at the power input screw terminals, that the polarity is correct (though various things will blow up if the polarity is wrong!), and that the wires are in good contact with the screw terminals, ie can’t be pulled out, or feel loose when you wiggle them. Then check that the pin closest to the screw terminals on the power jumper is supplying 5V. If you don’t get 5V on this pin, the voltage regulator that supplies the logic side of the board (processor, endstops, thermistors) with 5V is not working.
  • If you are getting 5V on this pin, but the LED on the board doesn’t come on (can take up to 20 seconds), then something has happened to the firmware on the Arduino processor, or a short circuit has caused damage to the processor itself. Press the reset button on the board to check it hasn’t got stuck down.

Check PC software installation:

USB driver problems:

If, when you plug your Melzi in, it is recognised as an ‘FT232R USB UART’ in ‘other devices’ in the Device Manager, you need to manually install the FTDI driver:

  1. Download the driver from www.ftdichip.com and unzip/expand the folder in a sensible place on your hard drive.
  2. Right-click on ‘FT232R USB UART’ in the Device Manager, select ‘Properties’, select ‘Driver’ tab, select ‘Update Driver…’
  3. Select ‘Browse my computer for driver software’ then ‘Let me pick from a list of device drivers on my computer’
  4. Select ‘Have Disk…’ then navigate to the folder containing the files you extracted in step 1
  5. Select the ‘ftdibus.inf’, and click ‘Open’, then ‘OK’, then ‘Next’. You may get a warning about digitally signing the driver; proceed anyway.
  6. The Melzi should now be recognised in ‘other devices’ as a ‘USB Serial Port’. Select it again, and repeat the installation process above, this time selecting the ‘ftdiport.inf’ driver.
  7. Once installed correctly, the Melzi should show up under ‘Ports (COM & LPT)’ as ‘USB Serial Port (COM[x])’, where [x] is the assigned COM port.
  8. There are two parts to the driver; the second is listed under ‘Universal Serial Bus controllers’ in the Device Manager, called ‘USB Serial Converter’. You can check the driver that is installed correctly, by going to the Properties > Driver tab, and see that it’s the same version as the ‘USB Serial Port’.
  9. You should now be able to connect with Pronterface.

There is a video which show you how to do this on youtube, too: www.youtube.com

Random disconnections:

These can have a variety of causes. USB is quite prone to Electro Magnetic Interference (EMI), via the power line. Large motors (in air conditioning, fridges, fans, drills and other hand tools etc) starting and stopping on the same ring main can cause power spikes, while other high current devices, unstable mains supply, or poor USB power connectivity on the host PC can knock out the USB connection. If the printer seems to continue working without resetting (for example, if you are printing from SD card, it continues to print), this is the most likely source of the problem. Check that the USB cable is connected properly, and for any damage – a poor connection will be more susceptible. Customers have found that adding a surge suppressors, power conditioners and/or UPSs to smooth the mains supply, and/or using a USB cable with a ferrite core, can help.

If the printer is resetting, the cause is more likely to be related to power to the printer. Double-check that the 19V power input wires and the heated bed power wires are well-seated in the screw terminals; they should be really solid. They have to carry a lot of current, and a loose connection here will generate heat, and possibly cause a disconnection/reset if the contact is poor. Once you are satisfied with this, check that you are getting 19V from the power supply when under load. Test at the 19V power input screw terminals, turn on the bed, and see if the voltage drops. We occasionally have PSUs that give uneven voltage.

When these disconnections happen, Pronterface keeps the connection to the port open. The Melzi is still there, but reconnects with a different port number. Usually in Pronterface, you can click ‘Disconnect’ (to close the connection to the printer), then click the ‘Port’ button; the new USB port will be selected, to which you can then connect.

Reply 0 0
Michael Burmeister-Brown inovato
I apologize if this is way off the mark and I don't use Klipper.  But since this is talking about USB, have you disabled brltty?  It likes to grab serial ports aggressively.

sudo apt remove brltty
Reply 2 0
Printsleo3d
@inovato I was coming here to say this exact thing!! That's so funny. I just got reminded by a subscriber of this issue and I have a feeling this will end up being the culprit.
Reply 1 0
b_webb
I apologize if this is way off the mark and I don't use Klipper.  But since this is talking about USB, have you disabled brltty?  It likes to grab serial ports aggressively.

sudo apt remove brltty



Yes!  That was it! I am up and running!
Reply 0 0
lnxguy
Howdy,

This reminded me to mention that I use a USB dongle that isolates the 5V pin and avoids potential problems with putting voltage from the USB port on the Quadra into the printer board.
Reply 0 0
darkhorse
I thought I'd share this info here, but if the forum feels it is inappropriate or irrelevant, please feel free to discard the post. 

I have an older AmLogic S905X3 (32-bit, arm7a, android 10) tv box with 4GB RAM and 128GB ROM.  Basically sitting in a box unused because I couldn't figure out how to get linux running on it. Would be great as a octoprint host, or even better, klipper, fluidd, etc.

Anyway, I found this youtube video about setting up a chroot linux environment on top of android.  Targeted at old android phones, but the process worked for me using android tv v10.0.

https://www.youtube.com/watch?v=B5gGMIXwDuo

I installed Debian Buster without issue. Gonna give Octoprint a try first, but will then move my printer over to klipper.

Here is some setup instructions.

Anyway, maybe this can help breathe some life into old android tv boxes laying around.  Cheers.

Reply 1 0
Reply