greybeard

 GET Timeouts and Halts at the end of what looks like initialization. Connected and Selected a test file Armed the printer with its Run cmd This is the output on Repetier ----------- Printer reset detected start N1 M110*34                     (Set Line No to 1) ok N2 M115*36                    (read version No) FHamori Version 4.3 8/30/2016  ok Comm Timeout reset 23 ok                                (??? N3 missing, is it temp read??) N4 M114*35                   (read current position) X0.0 Y0.0 Z0.0 E0.0  ok    Comm Timeout reset         (Is there a format problem with Version & Position??) N5 M111 S6*98              (Debug with No echo; just status) ok N6 T0*60                        (Tool No 0,  unused just a noop) ok N7 M80*28                     (PS On    just a noop) ok N8  M107*45                  (Fan Off ) ok N9 M117 ETE 15s14      (Message to LCD   worked) ok N10 G28*34                   (Home    worked) ok N11 G1 Z5 F5000*52      (Move, I think it worked after Home) ok N12 M109  S200*89        (Set temp min,  worked) ok N13  G21*40                   (dimentions in MM ) ok -------HALTS and stays halted , No timeout ---------------------- Looks like only the initialization ran?

About

Username
greybeard
Joined
Visits
8
Last Active
Roles
Member

Comments

  • Perhaps the UART should not be sending a message while in the receive interrupt, but wait till it finishes to send??
  • NO ping pong works. I am not in ping-pong mode. I am running out of ideas about why I have this problem and am considering the possibility that perhaps my interrupt driver is too long and cant keep up when the transmit and receive buffers are both a…
  • I have added the line numbers to OK and it was very helpful in seeing what is happening.  It indicated that the last command's acknowledge wasn't received, yet the move which follows the OK for G1 commands did take place. Perhaps, I cant understand …
  • The speed and time to completion of an earlier G1 was quite large but that did not halt the machine, so I dont know it that is the real problem. I will add the Line numbers because that will be a better indication. 
  • That should be quite helpful, thanks.  I have tried adding a G4 command and found that it goes further but stops again.  It seems that G1 commands are too slow and perhaps exceed the timeout and that could be the reason for the halts.  In ping pong …
  • Why am I geting new commands type M when I dont output ok?
  • OK then that means that move type commands should output OK after they have been parsed which frees up the receive buffer and other commands after they have been implemented.   Thanks. Actually I've tried all sorts of combinations before and this is…
  • G0, G1 and G28  plus a few more output OK before they parse and perform these tasks, so that the buffer isn't really emptied of these commands yet. All other G and M commands output OK after the command line is completely finished. Is this wrong?
  • What I mean by  "saved" is that the input message from the host gets stripped of unnecessary headers, check sum, *,  and endings and placed (i.e. saved) into a Serial UART input circular buffer so that it can be used later by the parser to set up va…
  • I am not sure I followed your comments.  Maybe my example will help.  This is all about the printer reception. The input message may looks like:   N123 G0 X876.876  Y986.986\n\r    saved as G0 X876.876  Y986.986\nI was just wondering if this is what…
  • If I use the Terminal program instead of Repetier host I can see the response from M105. It seems that its this command is the problem, and certainly not the fact that its the N3 location.
  • Why would that be the only instruction out of many that is filtered out. How do you select the written log?Btw  I looked into the Receive buffer for M105, and its there, but I just dont see any signs of it nor its response. For now it has me baffled.
  • It is very likely that G28 was way too slow because of my implementation and timed out the following command, since G28 replies right away before it starting the homing, however the following command may have to wait for G28 to finish before they ca…
  • The version line also had an "ok"  acknowledge, Sorry.
  • The example given in the RepRap Wiki for the Check Sum implied to me that the check sum was not done at the front end of the uart_Rx ISR but after it was buffered.  So I did that whole function in the Parser, which of course means that there can be …
  • I dont know what you mean by out of order Gcommands?  I Parse the commands in the order they came in and the ok signals are also in the same order going out. When you get a check sum error should the input buffer pointers be reset to zero so that yo…
  • Thanks that helps, since that is what I implemented.  I just finished checking it.  However I do my check sum in the parser rather than in the RxInterrupt routine before running the command. The RxInterrupt routine is where I detect Move commands li…
  • I dont control character arrivals but the whole line representing one command line. Once the line is enabled I dont allow another command until it is parsed. Because of this I probably am loosing some short commands so I will make the changes for al…
  • The Repetier host is putting out the rs Line number sometimes when it stops and at other times it just stops and there is no ok sent from the printer even though the firmware on my end must have sent it to get back to the main loop.  I have a 64 byt…
  • Isnt it in Repetier Host?
  • M105 works and got beyond that hang up. The next problem is for me to find out. A G1 command line does move the printer but it somehow outputs rs then stops, whereas it runs in the terminal.  Its some software error.  Thanks for the help. 
  • Yes I wrote my own firmware, but I am no software expert. Most commands  work on Repetier but I've been cleaning up a few  of the responses to the host, as they aren't all correct. I think this is the last issue, except probably the delays. Since I …
  • I have that list but it doesnt describe what Repetier outputs for all examples.For example:It doesnt explain  the meaning of example;  ETA 15s     or ETA 20:54:45 day 23 ??For M105  it outputs T:209.7/210 B:50.8/50 T0:209.7/210 @:47 B@:0I recognize …
  • Yeah I changed the order and put ok before the information and now two of the timeouts that are in the current initialization sequence have been fixed.   I just dont understand the example given below.  M104 S70 sets the temperature to 70 and my res…
  • So all requests for information should be ok Information   should M1
  • So you are saying that just ' ok'  isnt valid, but  need ok 15.  What is 15?  So I also need TargetExtr0 70.  The responses from the controller are what they are because I wrote the program to the best of my understanding of G codes. Thats why there…
  • When there is a bad command the Slave is supposed to respond with rs&LineNo.  In my case it wasrs7   This doesnt seem to be accepted by the host since it just sits there afterwards.   Is this format OK?
  • Many PCB files use a format called gerber files.  That is the format you will need to convert to gcode.  I wonder if you could just print the gerber layer and have a way to scan that and convert it to gcode.  I've seen people take family pictures an…