by CarAlAg » Mon Jun 22, 2015 10:04 am
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 (1.32 MiB) Viewed 17206 times
-
- Foto 22-6-15 10 49 56.jpg (1.39 MiB) Viewed 17206 times
-
- Foto 22-6-15 10 50 02.jpg (1.9 MiB) Viewed 17206 times