beagleboard talking to arduino via USB

Hi

I was wondering how to get usb serial communication happening between
the beagleboard and an arduino (which uses an FTDI FT232R chip). Do I
need a driver for it? Currently I'm using the latest Angstrom demo
distribution, but I'm really happy to move to any OS as long as it
works and has development tools.

Please forgive me if I've missed some sort of list etiquette here. I'm
really desperate to get some IO going on the beagleboard - I've
written some nice audio synthesizers effects all running on the
beagleboard, but just no way to control them (except mouse/keyboard)

I've tried the Belkin G wifi stick with pretty much every angstrom
distro now, trying everything I could find on these groups, but now
have given up. So arduino would be almost as cool, if I can ever get
that working.

Really hope someone could shed some light on the arduino thing.

cheers

Marek

I was wondering how to get usb serial communication happening between
the beagleboard and an arduino (which uses an FTDI FT232R chip). Do I

You would need to use a USB 2.0 hub.

But actually you don't even need to use the USB port to communicate. You
just need a level converter to step up the 1.8V level of one of the
extra serial ports of the Beagleboard to the 5V (or 3.3V in some clones)
of the Arduino tx/rx pins.

The Beagleboard has a bunch of GPIO (general-purpose I/O) pins, but on
the 1.8V level; using level converters I've successfully driven a 20x4
LCD on the Beagleboard (LCD previously used on an Arduino).

Sigh! I miss 5V and 3.3V GPIO on the Beagleboard. But I found the
www.mbed.org board which has lots of 3.3V GPIO (5V-tolerant); if you
look at it, you may soon forget the Arduino (except -maybe- for very low
power applications). It is not a full-fledged Linux computer like the
Beagleboard, but packs more memory and computing power (Cortex-M3 at
100MHz) than the Arduino family.

Hi

I was wondering how to get usb serial communication happening

between

the beagleboard and an arduino (which uses an FTDI FT232R chip). Do I
need a driver for it? Currently I'm using the latest Angstrom demo
distribution, but I'm really happy to move to any OS as long as it
works and has development tools.

Please forgive me if I've missed some sort of list etiquette here. I'm
really desperate to get some IO going on the beagleboard - I've
written some nice audio synthesizers effects all running on the
beagleboard, but just no way to control them (except mouse/keyboard)

I've tried the Belkin G wifi stick with pretty much every angstrom
distro now, trying everything I could find on these groups, but now
have given up. So arduino would be almost as cool, if I can ever get
that working.

Really hope someone could shed some light on the arduino thing.

cheers

Marek

The other way you could try communicating is I2C. Both the Arduino
and the BeagleBoard support it, and if you have multiple Arduinos
to connect they can all be connected as slaves off the same connector
with the BeagleBoard as a master.

David

Hi

Thanks for the suggestions! I know I could use the GPIO's onboard, but
I want to keep things isolated, I've fried enough arduinos in my
time :wink: The mbed looks like an aweseome middle ground, but I'm doing
audio dsp so beagle has more juice for such things.

I tried plugging the device directly into the USB host port (it's USB
2.0 on the C4 right?) and got the following message:

root@beagleboard:~# [ 62.792877] hub 1-0:1.0: unable to enumerate
USB device on port 2

Got a similar message when plugging it into the same port via a USB 2
hub. Does anyone know if the latest Angstrom demo image comes with the
FTDI driver already installed? Or maybe I should try the ubuntu?

cheers

Marek

Why don’t you connect your device through a USB HUB? USB-host at Beagleboard supports only Hi-Speed device which FTDI is not.

Max

2010/3/29 mazbox <bereza@gmail.com>

Hey

I tried a different usb hub, and got this

[ 684.941741] usb 1-2: configuration #1 chosen from 1 choice
[ 684.948120] hub 1-2:1.0: USB hub found
[ 684.952819] hub 1-2:1.0: 4 ports detected
[ 685.254577] usb 1-2.2: new full speed USB device using ehci-omap
and address 5
[ 685.386260] usb 1-2.2: configuration #1 chosen from 1 choice

and in my lsusb

Bus 001 Device 005: ID 0403:6001 Future Technology Devices
International, Ltd FT232 USB-Serial (UART) IC

but in the /dev dir there's no tty.usb*

audio loop6 ram0 tty15 tty40 tty9
binder loop7 ram1 tty16 tty41 ttyS0
block mem ram10 tty17 tty42 ttyS1
bus mixer ram11 tty18 tty43 ttyS2
char mmcblk0 ram12 tty19 tty44 ttyS3
console mmcblk0p1 ram13 tty2 tty45 ubi_ctrl
cpu_dma_latency mmcblk0p2 ram14 tty20 tty46
udev_network_queue
disk mtd0 ram15 tty21 tty47 urandom
dsp mtd0ro ram2 tty22 tty48
usbdev1.1_ep00
fb mtd1 ram3 tty23 tty49
usbdev1.1_ep81
fb0 mtd1ro ram4 tty24 tty5
usbdev1.4_ep00
fb1 mtd2 ram5 tty25 tty50
usbdev1.4_ep81
fb2 mtd2ro ram6 tty26 tty51
usbdev1.5_ep00
full mtd3 ram7 tty27 tty52
usbdev1.5_ep02
i2c-1 mtd3ro ram8 tty28 tty53
usbdev1.5_ep81
i2c-2 mtd4 ram9 tty29 tty54 usbmon0
i2c-3 mtd4ro random tty3 tty55 usbmon1
initctl mtdblock0 shm tty30 tty56 vcs
input mtdblock1 snd tty31 tty57 vcs1
kmem mtdblock2 stderr tty32 tty58 vcs2
kmsg mtdblock3 tty tty33 tty59 vcsa
log mtdblock4 tty0 tty34 tty6 vcsa1
loop0 network_latency tty1 tty35 tty60 vcsa2
loop1 network_throughput tty10 tty36 tty61 watchdog
loop2 null tty11 tty37 tty62 zero
loop3 psaux tty12 tty38 tty63
loop4 ptmx tty13 tty39 tty7
loop5 pts tty14 tty4 tty8

any ideas?

cheers

Marek