Showing posts with label Nero. Show all posts
Showing posts with label Nero. Show all posts

Thursday, August 13, 2009

Nero in video!!!

Hi everyone!

Here's a video of Nero's behavior which is wrong, somehow the commands that it's receiving are switched. Perhaps someone can give us a clue on what's going on with it.

Regards!

Pioneers in Pictures

Hey everyone!

As promised here are some pictures taken from both Pio and Nero which I'll explain:

1. Here's Nero in a lateral view and in a perspective view, we can see that it's fully operational and assembled (videos in further posts).


2. Here's Pio and it might look a bit disassembled but it's just because as the on board computer has the extra serial ports to use the laser we had to use an auxiliary port that receives the serial commands, though we haven't been able to get the connector we need and we have to make, we hope in the next few days we can get our hands in it and make it fully operational as well.


3. Here are some pictures of the Bluetooth bundle we wanted to use.


Perhaps these images can give a better idea to what we were attempting to do.

Regards to all!

Wednesday, July 22, 2009

Bluetooth configuration for Nero

Hello everyone!

After leaving the lab my brother told me he had a similar bluetooth issue once so he wrote this quick tutorial. I am sharing this information and will attach it in assembla as well. I hope this instructions solve our problems with Nero's bluetooth communication.


1. Instalar lo necesario:
sudo apt-get install bluez-pin
sudo apt-get install bluez-utils

2. Editar configuración del Bluetooth:
sudo gedit /etc/bluetooth/hcid.conf

3. Remplazar el contenido actuar del archivo por:
#
# HCI daemon configuration file.
#

# HCId options
options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;

# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;

# PIN helper
pin_helper /usr/bin/bluepin;

# D-Bus PIN helper
#dbus_pin_helper;
}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "Nino's Laptop";

# Local device class
class 0x3e0100;

# Default packet type
#pkt_type DH1,DM1,HV1;

# Inquiry and Page scan
iscan enable; pscan enable;

# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;

# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;

# Authentication and Encryption (Security Mode 3)
#auth enable;
#encrypt enable;
}

4. Reiniciar los servicios de Bluetooth:
sudo /etc/init.d/bluez-utils restart

5. Para checar que todo esté bien hasta el momento
hcitool scan

Debe de devolver alguna lista de dispositivos cercanos…

6. Para obtener el canal donde se encuentra el puerto serial:
sdptool browse XX:XX:XX:XX:XX:XX
donde XX:XX:XX:XX:XX:XX es la dirección MAC del dispositivo Bluetooth

Debe de regresar algo parecido a:
Browsing XX:XX:XX:XX:XX:XX ...
Service Name: Bluetooth Serial Port
Service RecHandle: 0x10007
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Serial Port" (0x1101)
Version: 0x0100
Por lo que en ese caso sería el canal 1…

7. Editar el rfcomm.conf:
sudo gedit /etc/bluetooth/rfcomm.conf

De la siguiente forma:
rfcomm4 {
bind yes;
device XX:XX:XX:XX:XX:XX;
channel X;
comment "Serial Port";
}

8. Para terminar…
sudo rfcomm release 4
rfcomm connect 4

Si todo está bien, debe de aparecer algo parecido a:
$ rfcomm connect 4
Connected /dev/rfcomm4 to XX:XX:XX:XX:XX:XX on channel X
Press CTRL-C for hangup

No opriman en ningún momento CTRL-C hasta que sepan que todo está detenido y no hay peligro de que el robot pueda seguir caminando por su cuenta…


SU PUERTO SERIAL (PARA EL .CFG) SERÍA EL /dev/rfcomm4


Regards!

Tuesday, July 21, 2009

Bluetooth Connectivity

We haven't accomplished yet connectivity between Player and Nero but we already accomplished connectivity using the Terminal so I will explain what is to be done in order to achieve it.

1. $cd /etc/bluetooth
2. $ls
3. Make sure you have the rfcomm.conf file and then $sudo gedit rfcomm.conf
4. In the file paste:
rfcomm0{
bind yes;
device 00:0A:3A:2D:7C:64;
channel 1;
comment "Serial Bluetooth";
}
5. The interface should then be created, to check it type $ls /dev/rfcomm0 and it should appear. That is the new interface to be used.
6. To connect to the AirCable use $rfcomm connect 0
7. A connection message should appear and the blue led in the AirCable should be turned on.

We now need to know if we can execute a script of something to connect Player and Nero but we are making progress.

Cheers!

Wednesday, July 15, 2009

Aria Demo using the Pioneers

Since the beginning of the week we've been trying to change the way we will use both Pio and Nero in order to finally start to work on them physically. As teacher Alejandro Pineda suggested, we should get rid of the on board computer the robots have and just focus on managing the data they get and receive via serial port.

To achieve that we've been making tests on the printed circuits and we now found out the way to make them work without the computer and just by serial port which will be more convenient because we can get a Bluetooth adapter to get wireless communication between our computers and the robots.

First we had to install the USB-Serial cable and we found a website which explains how to do it in a quick way: http://blog.mypapit.net/2008/05/how-to-use-usb-serial-port-converter-in-ubuntu.html

Using the Synaptic Package Manager one can install the Aria libraries and then use the example programs to test connectivity, the directory is /usr/local/Aria and there is a directory with examples called 'examples'. We used the demo provided and the syntax after the cable has been installed is: $ ./demo -robotPort /dev/ttyUSB0

We executed this demo program and it worked fine, the sonars seems to be working properly but there are several tests to make. For the time being Nero is now operational. We will continue doing a couple of tests and then use playerjoy to teleoperate Nero. After that we will procede with Pio in order to get him fully operational too and make the proper tests.

Tuesday, June 16, 2009

Problems with Ubuntu installation in Nero

Today Carlos G., Arturo, Carlos L. and I went to the lab to try to solve some of the existential issues Nero has.

We were trying to see if it is possible to install Ubuntu on a hardrive using Nero. We then managed to get a power source for a cd device Carlos L. brought, however it wasn't being identified.

The conclusion we got to is that one of the IDE ports available isn't working properly and we need both of them for the installation of Ubuntu (one for the HD and one for the cd device).

We are going to test tomorrow a floppy device in Nero and verify if it is being identified. We would also want to know if Renato can indicate us the specific way in which the connections of the Pioneers should be done. Maybe our problem is based in a specific missconception concerning this fact.

Monday, June 15, 2009

Work on Friday

Just like Luis just say, we go to the lab on Friday, and we try to fix the usb problem, but the time wasn't enough. Another thing that happen on Friday is that I take the "ide to usb" cable to try to get the image of the disk in a low way... I'm still with this problem, but I think is possible to get the image and we can put on any HD to make it simple(OS installation in NERO). We will find a solution for this problem soon...

Cheers :)

Wednesday, June 10, 2009

Problems in the Nero's OS

Hi,

Yesterday I try to install Ubuntu in "Nero". But I have one "little" problem I can't connect the CD player because I don't have the AC cable. So, if anyone have "one" haha :) Can he/she lend me for the "cause"? haha :) And with this I hope we can know what is the problem... the HD or anything else ...

Cheers,

Carlos L

In the other hand, I was thinking in the OS we will install, and I think the best option is the same Ubuntu OS that "Pio" have. Maybe Carlos G, Laura and Arturo can say me what Ubuntu "Distro" is, to find and download it.