Serial Communication between CM-510/BeagleBone Black

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

Serial Communication between CM-510/BeagleBone Black

Post by CarAlAg » Mon Jun 22, 2015 10:04 am

Post by CarAlAg
Mon Jun 22, 2015 10:04 am

Hello.

This is a cry for help.

I'm trying to send a "Hello World" message from the BBB to the CM-510 using the seriallib Robotis provides but I'm not able to achieve anything.

In order to simplify things, right now I'm just trying to send a "Hello World" message from the CM-510 to the hyperterminal through the serial port but it's more of the same. I mean, nothing arrives to the hyperterminal.

Any idea? has anybody had the same issue?

My program is like this (some declarations are unused after):

#include <avr/io.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include "serial.h"
#include "termios.h"
#include "global.h"

void main( void )
{
int x;
unsigned char cosa;
unsigned char *buffer_rec;
unsigned char *buffer_tra;
unsigned char *mensaje="hola_mundoB";

serial_initialize(9600); // USART Initialize
sei();

printf("\n inicializado\n");
_delay_ms(3000);
_delay_ms(5000);

serial_write(mensaje,18);

}
Hello.

This is a cry for help.

I'm trying to send a "Hello World" message from the BBB to the CM-510 using the seriallib Robotis provides but I'm not able to achieve anything.

In order to simplify things, right now I'm just trying to send a "Hello World" message from the CM-510 to the hyperterminal through the serial port but it's more of the same. I mean, nothing arrives to the hyperterminal.

Any idea? has anybody had the same issue?

My program is like this (some declarations are unused after):

#include <avr/io.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include "serial.h"
#include "termios.h"
#include "global.h"

void main( void )
{
int x;
unsigned char cosa;
unsigned char *buffer_rec;
unsigned char *buffer_tra;
unsigned char *mensaje="hola_mundoB";

serial_initialize(9600); // USART Initialize
sei();

printf("\n inicializado\n");
_delay_ms(3000);
_delay_ms(5000);

serial_write(mensaje,18);

}
Attachments
Foto 22-6-15 10 50 29.jpg
Foto 22-6-15 10 50 29.jpg (1.32 MiB) Viewed 17201 times
Foto 22-6-15 10 49 56.jpg
Foto 22-6-15 10 49 56.jpg (1.39 MiB) Viewed 17201 times
Foto 22-6-15 10 50 02.jpg
Foto 22-6-15 10 50 02.jpg (1.9 MiB) Viewed 17201 times
CarAlAg
Newbie
Newbie
Posts: 3
Joined: Mon Jun 22, 2015 9:31 am

Re: Serial Communication between CM-510/BeagleBone Black

Post by CarAlAg » Tue Jun 23, 2015 6:58 pm

Post by CarAlAg
Tue Jun 23, 2015 6:58 pm

Maybe if anybody can just show me how "serial_read" from the seriallib works I could figure out what I need.
Maybe if anybody can just show me how "serial_read" from the seriallib works I could figure out what I need.
CarAlAg
Newbie
Newbie
Posts: 3
Joined: Mon Jun 22, 2015 9:31 am

Re: Serial Communication between CM-510/BeagleBone Black

Post by CarAlAg » Tue Jun 30, 2015 9:10 am

Post by CarAlAg
Tue Jun 30, 2015 9:10 am

Hello again. Forget abou the previous posts because I think I reached that goal. But the real thing here is that I need help in how to understand and making work a serial connection between a BBB and a CM-510.

Please, help.
Hello again. Forget abou the previous posts because I think I reached that goal. But the real thing here is that I need help in how to understand and making work a serial connection between a BBB and a CM-510.

Please, help.
CarAlAg
Newbie
Newbie
Posts: 3
Joined: Mon Jun 22, 2015 9:31 am

Re: Serial Communication between CM-510/BeagleBone Black

Post by andrefleitao » Tue Jul 07, 2015 10:37 am

Post by andrefleitao
Tue Jul 07, 2015 10:37 am

Hello CarAlAg

The Beaglebone Black (BBB) uses TTL voltage level signals on its serial ports. It has 6 serial ports: http://beaglebone.cameon.net/home/serial-ports-uart

The CM-510 board has other kind of voltage level signals (RS-232) Image

You can see here the difference: https://www.sparkfun.com/tutorials/215

This means that you need a level converter to connect BBB to CM-510 through the serial port. Robosavvy sells this one: http://robosavvy.com/store/sparkfun-spa ... r-smd.html

You'd also need a cable to connect to the serial jack on the CM-510.
Image
Hello CarAlAg

The Beaglebone Black (BBB) uses TTL voltage level signals on its serial ports. It has 6 serial ports: http://beaglebone.cameon.net/home/serial-ports-uart

The CM-510 board has other kind of voltage level signals (RS-232) Image

You can see here the difference: https://www.sparkfun.com/tutorials/215

This means that you need a level converter to connect BBB to CM-510 through the serial port. Robosavvy sells this one: http://robosavvy.com/store/sparkfun-spa ... r-smd.html

You'd also need a cable to connect to the serial jack on the CM-510.
Image
andrefleitao
Newbie
Newbie
Posts: 4
Joined: Wed Jul 01, 2015 9:55 am


4 postsPage 1 of 1
4 postsPage 1 of 1
cron