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

Commanding the CMU CAM2 by CM2 controller

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
3 postsPage 1 of 1
3 postsPage 1 of 1

Commanding the CMU CAM2 by CM2 controller

Post by xyz123456 » Tue Jul 15, 2008 9:27 am

Post by xyz123456
Tue Jul 15, 2008 9:27 am

Hi all,
I am trying to command the CMUcam 2 using the CM2 controller by the TTL serial port of the CMUcam2.

I am not able to figure out the method of sending the command to the CMUcam2. For example: The command SF can be sent from the PC to get a frame from the CMUcam2. But how do I send this from the CM2 controller.

I tried sending the ascii value of S first then the ascii value of F. But I did not get any response.

Can anyone help me out with this.

Thanks in advance
Hi all,
I am trying to command the CMUcam 2 using the CM2 controller by the TTL serial port of the CMUcam2.

I am not able to figure out the method of sending the command to the CMUcam2. For example: The command SF can be sent from the PC to get a frame from the CMUcam2. But how do I send this from the CM2 controller.

I tried sending the ascii value of S first then the ascii value of F. But I did not get any response.

Can anyone help me out with this.

Thanks in advance
xyz123456
Newbie
Newbie
Posts: 3
Joined: Tue Jul 08, 2008 8:27 am

Post by limor » Wed Jul 16, 2008 1:34 am

Post by limor
Wed Jul 16, 2008 1:34 am

not too familiar with CM2 but if it were CM5 I would first verify that serial communications is in order. for example write a simple echo program that relays back and forth data between the two serial ports and then connect one to the the PC and the other to the CMUcam2
not too familiar with CM2 but if it were CM5 I would first verify that serial communications is in order. for example write a simple echo program that relays back and forth data between the two serial ports and then connect one to the the PC and the other to the CMUcam2
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Commanding the CMU CAM2 by CM2 controller

Post by xyz123456 » Thu Jul 17, 2008 8:24 am

Post by xyz123456
Thu Jul 17, 2008 8:24 am

Hi all,
I tried to send the ascii value of carriage return from the CM2 controller. But i am getting a NCK from the CMUCAM2 . Can anyone help me with this. The piece of code i had written is given below:

typedef unsigned char byte
int main()
{

.......
TxD80(13); //Transmit via serial port

.......
}

void TxD80(byte c)
{
while(!TXD0_READY); // Wait till transmit buffer is empty
TXD0_DATA = c; // put data into transmit buffer
}

Do let me know if there is any error in the implementation.

Thanks in advance.
Hi all,
I tried to send the ascii value of carriage return from the CM2 controller. But i am getting a NCK from the CMUCAM2 . Can anyone help me with this. The piece of code i had written is given below:

typedef unsigned char byte
int main()
{

.......
TxD80(13); //Transmit via serial port

.......
}

void TxD80(byte c)
{
while(!TXD0_READY); // Wait till transmit buffer is empty
TXD0_DATA = c; // put data into transmit buffer
}

Do let me know if there is any error in the implementation.

Thanks in advance.
xyz123456
Newbie
Newbie
Posts: 3
Joined: Tue Jul 08, 2008 8:27 am


3 postsPage 1 of 1
3 postsPage 1 of 1