Just a thought based on what happened to me in a similar context. Maybe due to buffering, the leading /r really belongs to the end of the preceeding response string? Only a thought.
> -----Original Message----- > From: forget color [mailto:[email protected]] > Sent: den 13 juni 2010 18:09 > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] unexpected output from emcrsh > > I don't see the same behavior over telnet, although I can't examine > the raw strings that way and I'm not trying to store and work with the > strings it's sending back like I am with my client. But given what I > see over telnet it appears to work fine. > > I found a way to deal with it on my end. I test to see if what is > returned starts with '\r' and if it does, I strip it out. As > mentioned earlier, ACKs after I set verbose to ON show this different > layout. > > So perhaps it's not an issue that needs addressing? I presume others > have software in place that expects the current behavior so maybe it's > not an issue that needs addressing? If I can help in any way, let me > know, but now that I've worked out a solution I'm set. > > thanks Eric! > > > On Sun, Jun 13, 2010 at 7:01 AM, Eric H. Johnson > <[email protected]> wrote: > > I am basing what I said on looking at the code, I have not had a > chance to > > try it. Are you seeing that through your code? Can you reproduce it > through > > other means, such as directly through telnet? > > > > Regards, > > Eric > > > > > > but wouldn't that reversal return > > > > SET MDI ACK\n\r > > > > instead of what i'm getting: > > > > \rSET MDI ACK\n > > > > ? it seems like i'm getting the ACK string *between* the cr and lf > instead > > of having them reversed at the end. > > > > thanks! > > > > > > --------------------------------------------------------------------- > --------- > > ThinkGeek and WIRED's GeekDad team up for the Ultimate > > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > > lucky parental unit. See the prize list and enter to win: > > http://p.sf.net/sfu/thinkgeek-promo > > _______________________________________________ > > Emc-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/emc-users > > > > ----------------------------------------------------------------------- > ------- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
