0
$\begingroup$

I am able to connect the create 2 robot to my laptop with a serial cable. I am using putty_beta terminal to run. I am not able to key in commands in the terminal. but I am able to receive information from the robot. I want to achieve two way serial connection. What can I do?

enter image description here

$\endgroup$
1
  • $\begingroup$ Why do you think you don't have two-way serial communication? You definitely are receiving information. Try pressing control+G while in PuTTY; this will send character code 7, which should reset the robot. If the robot resets, you have two-way communication. $\endgroup$
    – Steve
    Commented May 25, 2017 at 2:13

2 Answers 2

1
$\begingroup$

I was not able to send commands just using putty, because putty sends every character individually. You need to write your own code or use something like https://github.com/xa4a/go-roomba to communicate with the roomba

$\endgroup$
1
$\begingroup$

The Roomba expects binary data. When you type in the PuTTY terminal, you are sending ASCII data. For example when you type "128" into the terminal, you are actually sending 3 bytes of data: [49 50 56]. And because many commands of the OI Spec are outside the typeable ASCII range, using the terminal in this manner won't work.

You should use a programming language such as C, C#, Python, etc. to send the data packet. There are many libraries for the Create2 freely available online.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.