probonopd / WirelessPrinting

Print wirelessly from Cura, PrusaSlicer or Slic3r to your 3D printer connected to an ESP8266 or ESP32 module
352 stars 65 forks source link

Discovering printer constantly #97

Closed ipepe closed 5 years ago

ipepe commented 5 years ago

I updated to 10dc081 and ESP can't connect with printer. Im getting: Last received response: echo:Unknown command: "p�¯å¸‡˛Êò�ò‡òÊò�òġM115"ok

chepo92 commented 5 years ago

Same issue but the cause is other than the order, it has to try at least two times with the same baud

GMagician commented 5 years ago

I checked code... and maybe with latest change I made two consecutive commands may be used again (that was not possible with first "big" change I've done to let everything works...I thinks that now we can go back adding two M112...

chepo92 commented 5 years ago

it was broken by #87

GMagician commented 5 years ago

Yes! but first test of it was written with no possibility to send 2 messages and not receive one answer...final revision actually can let it work again so I think two M115 may be readded

chepo92 commented 5 years ago

Yes! but first test of it was written with no possibility to send 2 messages and not receive one answer...final revision actually can let it work again so I think two M115 may be readded

I don't think that is the better solution, let me add some magic

probonopd commented 5 years ago

@ipepe please try https://transfer.sh/10kbVS/ESP8266WirelessPrintAsync_d1_mini_413711c.bin (from https://github.com/probonopd/WirelessPrinting/pull/98) and let us know if resolves this for you. Thanks!

chepo92 commented 5 years ago

This one should be working https://transfer.sh/a69dO/ESP8266WirelessPrintAsync_d1_mini_1129b07.bin !

chepo92 commented 5 years ago

@ipepe How did you connect your ender stock board with esp? as far as I know it doesn't have the serial pins to conect (I don't have an ender to check, just looked at some online diagrams)

ipepe commented 5 years ago

@chepo92 https://wiki.ipepe.pl/doku.php?id=ender3:esp3d_wirelessprinting

@probonopd will check in few hours

chepo92 commented 5 years ago

@chepo92 https://wiki.ipepe.pl/doku.php?id=ender3:esp3d_wirelessprinting

I imagined that was needed.
So technicaly it's not stock, some hacking is needed

ipepe commented 5 years ago

What's I meant by stock is that its not MKS. To be truly stock it should have stock firmware also.

probonopd commented 5 years ago

We should attempt not to be too dependent on the particularities of any individual firmware, if possible.

chepo92 commented 5 years ago

We should attempt not to be too dependent on the particularities of any individual firmware, if possible.

I don't see your point, marlin fw is like one of the standart (if not the most used), printer detection wasn't working for it so it wouldn't for any marlin-like fw

probonopd commented 5 years ago

I agree. My point is that even if we cannot interpret some messages, we should ignore that message and still continue. The OEM Marlin on my printers, for example, does not even report all capabilities.

ipepe commented 5 years ago

I flashed 1129b07 and seems to be working. Although it is prone to freezing and slow at responding to requests.