Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

controlling RN over seriel port w/ PC

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
4 postsPage 1 of 1
4 postsPage 1 of 1

controlling RN over seriel port w/ PC

Post by asbrandsson » Wed Dec 19, 2007 12:53 am

Post by asbrandsson
Wed Dec 19, 2007 12:53 am

Hello,

I am wondering if anyone can point me in the right direction for creating a series of programs that will allow me to control the RN over the seriel port.

I am trying to use the ER-1 program to give my RN some vision and brains. For those not familiar with it, it is set up on an if-then system. one of the thens is run program. So basically I would like a program that will work like a remote. if you hear hello, then say hi and run k1, k1.exe would open the seriel port and active k1.

Asbrandsson
Hello,

I am wondering if anyone can point me in the right direction for creating a series of programs that will allow me to control the RN over the seriel port.

I am trying to use the ER-1 program to give my RN some vision and brains. For those not familiar with it, it is set up on an if-then system. one of the thens is run program. So basically I would like a program that will work like a remote. if you hear hello, then say hi and run k1, k1.exe would open the seriel port and active k1.

Asbrandsson
asbrandsson
Robot Builder
Robot Builder
Posts: 12
Joined: Wed Dec 19, 2007 12:48 am

Post by limor » Thu Dec 20, 2007 2:06 pm

Post by limor
Thu Dec 20, 2007 2:06 pm

opening and closing the serial port on the PC every time you want to send something to the RN1 seems like call for trouble.

It sounds like what you are looking for is an API for the PC to talk with the RN1. The RN1 board would run some RoboBasic code that would execute commands sent over the serial port.

This would allow you to write your own PC application and command the RN1 this way.

There were a few people who did this kind of remote control please search the forum and also the wiki
opening and closing the serial port on the PC every time you want to send something to the RN1 seems like call for trouble.

It sounds like what you are looking for is an API for the PC to talk with the RN1. The RN1 board would run some RoboBasic code that would execute commands sent over the serial port.

This would allow you to write your own PC application and command the RN1 this way.

There were a few people who did this kind of remote control please search the forum and also the wiki
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Post by asbrandsson » Thu Dec 20, 2007 4:31 pm

Post by asbrandsson
Thu Dec 20, 2007 4:31 pm

Hello,

I just bought a copy of ERSP 2.0, which I think will allow me to do more or less what you are talking about.

In the mean time, I am using the ER-1 program as the brains and vision. Which means that I have taken the head off of the Robonova and velcroed a logitec pro 5000 in its place. On the front I have velcroed a OQO 1+ and a four port usb splitter. Which splits off the webcam and the usb to serial port Robonova controller.

Since I can not use the movement parts of the ER-1 Robot Control Interface, I can only use the run program side of the then side of behaviors. Which means that it would say if you are in exploration mode and you see a set of stairs, then execute routen K8 (for example) which would get the robonova to walk forward, then execute routen K35 (a stair climbing routen). If I had to use bluetooth to achieve this I could, but baiscally the serial port is already there?

Asbrandsson
Hello,

I just bought a copy of ERSP 2.0, which I think will allow me to do more or less what you are talking about.

In the mean time, I am using the ER-1 program as the brains and vision. Which means that I have taken the head off of the Robonova and velcroed a logitec pro 5000 in its place. On the front I have velcroed a OQO 1+ and a four port usb splitter. Which splits off the webcam and the usb to serial port Robonova controller.

Since I can not use the movement parts of the ER-1 Robot Control Interface, I can only use the run program side of the then side of behaviors. Which means that it would say if you are in exploration mode and you see a set of stairs, then execute routen K8 (for example) which would get the robonova to walk forward, then execute routen K35 (a stair climbing routen). If I had to use bluetooth to achieve this I could, but baiscally the serial port is already there?

Asbrandsson
asbrandsson
Robot Builder
Robot Builder
Posts: 12
Joined: Wed Dec 19, 2007 12:48 am

Post by i-Bot » Thu Dec 20, 2007 6:23 pm

Post by i-Bot
Thu Dec 20, 2007 6:23 pm

If you look at the template program, you will see that the first variable defined is RR, and this is later checked to be between 50 an 83, then used in the ON statement.

When a character is sent over the serial PC interface it goes into this first RR variable. Note: characters over 127 are used for the communication protocol between RoboBasic and the Robonova controller, so cannot be used.

So just send the character between 50 and 32 out of the PC serial interface at 9600 bps, and the Robonova will perform the action determined by the ON statement.
If you look at the template program, you will see that the first variable defined is RR, and this is later checked to be between 50 an 83, then used in the ON statement.

When a character is sent over the serial PC interface it goes into this first RR variable. Note: characters over 127 are used for the communication protocol between RoboBasic and the Robonova controller, so cannot be used.

So just send the character between 50 and 32 out of the PC serial interface at 9600 bps, and the Robonova will perform the action determined by the ON statement.
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am


4 postsPage 1 of 1
4 postsPage 1 of 1