You could check the first reply to this post on telnet error handling in your particular case.
As you might be aware Some routers dont allow users to logon using telnet for security reasons, and if they do for operational reasons, there might even be restictions on what type of commands can be used.
Having said that i see you were able to have some kind of a handshake with the router, so i guess its trial and error for you now.