View unanswered posts | View active topics It is currently Sun May 19, 2013 2:43 pm



Reply to topic  [ 2 posts ] 
Gen6 Firmware problem with resending communications errors 
Author Message

Joined: Thu Mar 31, 2011 3:08 pm
Posts: 95
Post Gen6 Firmware problem with resending communications errors
I am using ReplicatorG and occasionally get communications errors at which point the whole process goes into melt down and never recovers. On investigation I found the following:

The RepRep GCode spec (http://objects.reprap.org/wiki/GCodes) says that each line should start with 'ok' or 'rs' and ReplicatorG is programmed to do this. However the Gen6 firmware sends 'Resend' at the start of lines that need resending. Hence ReplicatorG never sends the line again and mayhem follows.

I have patched the following 2 lines in process_g_code line 738 - 738

char buffer[100]="rs ";
ltoa(gc.LastLineNrRecieved+1, buffer+3, 10);

This seems to have cured the problem. This would probably also affect any other driver s/w written to follow the information on the RepRap.org g code page.

Cheers
Geoff

_________________
http://apapageek.blogspot.com


Tue Apr 19, 2011 1:42 pm
Profile

Joined: Mon Mar 28, 2011 10:32 am
Posts: 12
Post Re: Gen6 Firmware problem with resending communications erro
It seems that libreprap (used by repsnapper) understands both "rs" (official) and "Resend".

fived.c:
Quote:
} else if(!strncasecmp("rs", reply, 2) || !strncasecmp("resend", reply, 6)) {


Probably other apps support both too.


Wed Jun 08, 2011 1:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.