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

OctoPrint always busy #119

Closed SSkull995 closed 5 years ago

SSkull995 commented 5 years ago

Hi! I have a problem setting the wemos on my MKS 1.4. I flashed it with the firmware, no problems; I connected it to my wifi and I can connect to the IP on internet (the web GUI). I can also connect with Cura to it. However, as soon as I say "Print with OctoPrint", Cura says that "Octoprint is busy", thus no print can be done. Any suggestions? I connected it to AUX 1 on the MKS. Thanks in advance!

SSkull995 commented 5 years ago

Edit: I can't print from the web GUI as well

probonopd commented 5 years ago

Which firmware and version are you running on the MKS?

Are you sure the ESP is communicating properly with the MKS?

Please connect to the ESP using telnet and observe the messages; please post the log here.

SSkull995 commented 5 years ago

Hi @probonopd, I actually believe that the wemos d1 doesn't talk at all. I connected to the aux 2 pins, like A11/D65 and A12/D66, but I never declared them in the .ino

probonopd commented 5 years ago

A11/D65 and A12/D66 are MKS pins, right? You don't need to declare them in the WirelessPrinting .ino. You connect the WeMos TX/RX/GND/5V pins to the appropriate counterparts on the MKS, and that should be it.

SSkull995 commented 5 years ago

Yes they are the pins for the MKS. However, I don't know why, the printer is not accessible

SSkull995 commented 5 years ago

I just disconnected the wemos rx-tx and the result is the same, busy

GMagician commented 5 years ago

You may check what do you get in ipaddr/info? and as already told you @probonopd check telnet Note that wemos rx must be connected to MKS tx and wemos tx to mks rx...

GMagician commented 5 years ago

Also...sure D65 and D66 are used as tx/rx?

SSkull995 commented 5 years ago

I will try the telnet later, sorry but yesterday I was a bit tired. I checked on the mks board and the tx and rx pins are located where I put the WeMos, very strange. I will check again in a few hours, as soon as I am back from the lab.

SSkull995 commented 5 years ago

Thanks a lot!

SSkull995 commented 5 years ago

Ok so, I checked the connection and...... TA DA! I found the problem, I connected the wemos to the wrong pins. Now it works like a charm, no more cables, except for Repetier Host. Thank you very much!

probonopd commented 5 years ago

Glad it is working for you now.

SSkull995 commented 5 years ago

Hi @probonopd, I have another issue actually. When I send the code, the response is this: { "files": { "local": { "name": "cached.gco", "origin": "local" } }, "done": true }

The printer doesn't even start

SSkull995 commented 5 years ago

From both Cura and the IP

There is also this thing that pops up: No FS, there is no file system apparently. This might be the problem? I am not using the SD shield on the wemos

probonopd commented 5 years ago

After switching on, does it say "SPIFFS" on the display of the printer? Can you post the output of the telnet port?

SSkull995 commented 5 years ago

I might have figured it out. I will let you know as soon as I check. What is the correct baud rate to upload the sketch? Arduino tells me that there is an error uploading

Kind regards, Giovanni On 4 May 2019, 11:01 +0200, probonopd notifications@github.com, wrote:

Can you watch the output of the telnet port? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

SSkull995 commented 5 years ago

It says that espcomm open failed, maybe because it is connected to the main board?

Kind regards, Giovanni On 4 May 2019, 11:01 +0200, probonopd notifications@github.com, wrote:

Can you watch the output of the telnet port? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

probonopd commented 5 years ago

Where does it say "espcomm open failed"?

SSkull995 commented 5 years ago

Ok so I answer via email but nothing arrived. In the Arduino IDE, when I upload the sketch, in the bottom tab, it says uploading and then espcomm_failed

probonopd commented 5 years ago

Do not upload to the ESP over USB while the ESP is attached to the printer.

probonopd commented 5 years ago

You could use the OTA (over the air update) function, then you would not need the Arduino IDE nor USB...

SSkull995 commented 5 years ago

got it. I unplugged the esp from the printer and reduced the baud rate

SSkull995 commented 5 years ago

So now I am sending the code to wemos OTA through Cura, the bed is heating ahah. Will check once again. If I have to modify something, AFAIU I can do it OTA via the update right? What should I use as update?

probonopd commented 5 years ago

Enter the IP address that is displayed on your printer's display after powering on into your web browser and go from there :-) you can upload the .bin file (e.g., from https://github.com/probonopd/WirelessPrinting/releases/tag/continuous) there.

probonopd commented 5 years ago

Is it printing?

SSkull995 commented 5 years ago

On the Arduino IDE. Pic below

Kind regards, Giovanni On 4 May 2019, 11:26 +0200, probonopd notifications@github.com, wrote:

Where does it say "espcomm open failed"? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

SSkull995 commented 5 years ago

Ok it sent the message ahahah. It prints but when I cancel the print, I need to restart everything and clean the cache

SSkull995 commented 5 years ago

I believe it is normal

probonopd commented 5 years ago

Yes. Seems like it is working for you now. What kind of printer are you using?

SSkull995 commented 5 years ago

Hi sorry! I replied via email but never arrived. I have a CreatBot modified, with MKS Gen 1.4 and some TMCs