Go Down

Topic: Connecting a arduino to Linino (Read 5630 times) previous topic - next topic

Jantje

I try to connect an extra arduino to the yun because I need lots of pins for my mobile robot.

I took a duemilenove that has the uno bootloader for the first trial. (Read the duemilenove was lying next to me.)
I connected it to the usb port of the yun and it powered up. So far so good.
However dmesg reveils there is no com port associated with the arduino.
Quote
[ 2325.260000] usb 1-1.1: new full-speed USB device number 5 using ehci-platform
[ 2325.390000] usb 1-1.1: New USB device found, idVendor=0403, idProduct=6001
[ 2325.390000] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2325.400000] usb 1-1.1: Product: FT232R USB UART
[ 2325.400000] usb 1-1.1: Manufacturer: FTDI
[ 2325.400000] usb 1-1.1: SerialNumber: A9007TX5


Trying to add a udev rule shows there is no udev folder in etc. So I installed the udev package (I used the web interface).
Reconnecting the duemilenove and dmesg gives the same result.
I created the file /etc/udev/rules.d/46-arduino.rules with following content (as described on the playground http://playground.arduino.cc//Linux/All)
Quote
BUS=="usb", SYSFS{idVendor}=="1b4f", SYSFS{idProduct}=="9204", RUN+="/sbin/modprobe cdc_acm"
BUS=="usb", SYSFS{idVendor}=="1b4f", SYSFS{idProduct}=="9204", RUN+="/bin/sh -c 'echo 0x1b4f 0x9204 > /sys/bus/usb/drivers/cdc_acm/new_id'"

i disconnect and reconnect the duemilenove but nothing changes.
I check the file /sys/bus/usb/drivers/cdc_acm/new_id and see it does not exist.
even the folder cdc_acm does not exist. When I try to create it I get
Quote
root@testyun:/etc/udev/rules.d# mkdir /sys/bus/usb/drivers/cdc_acm
mkdir: can't create directory '/sys/bus/usb/drivers/cdc_acm': No such file or directory


Anyone has any ideas how to get this to work?
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Jantje

I found I need insmod instead of modprobe http://en.wikipedia.org/wiki/Modprobe but that doesn't solve it yet.
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

PeterVH

Is an udev rule needed for this? (Don't know for the yun). But if one is needed, it must match the vid/pid and module name of the duemilanove's ftdi:
Code: [Select]

BUS=="usb", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", RUN+="/sbin/modprobe ftdi_sio"

Jantje

Hi Peter
I just found it. Its been a hard long fight and indeed udev is not needed. I'll write about it in my next blog. http://blog.baeyens.it/#home
I don't want to spoil the fun jet.  XD
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

federicofissore

@Jantje please don't take it all for your self for too long ;)
This thread and its solution could prove very helpful for the users to come

Jantje

I had a blog yesterday
One today
And I plan one for tomorrow
So that will be fine  :D
Maybe it is a good idea to read them  ]:D
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Jantje

here it is.
http://blog.baeyens.it/#post11
I took it a bit further so you can telnet to the serial monitor of the arduino connected to the yun :D.
Unfortunately I couldn't test this with the yun itself as I power it from USB.
But as the serial monitor is not bouncing due to the bootloader I think it should work.
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Go Up