Reply
Thread Tools
Posts: 5 | Thanked: 0 times | Joined on Jan 2013
#1
Hi fellas, first post so first of all cheers to all of you! Good work

I have been trying to set up my N810 to talk to my Arduino UNO R3 via USB/serial. There are a few tutorials and blog posts around, but they are all seriously dated and don't pertain to the newer version of Arduino.

At the time, Arduino boards were fitted with an FTDI chip to do the USB/serial conversion, but since the UNO was released, they have moved to the Atmega8u2 (on R1 and R2), and Atmega16u2 (on R3).

Now, they say that this chip is programmed to work just as the FTDI did before it. But nevertheless, when I connect the Arduino UNO to the N810 (Maemo DIABLO 5.2008.43-7, modified kernel from IDEO with FTDI driver, serproxy, host cable etc..), everything seems to work according to plan, but the NIT doesn't recognize the USB device.. thus failing to attach it to /dev/ttyUSB0.

Is there anybody who can give me a hand with this? I was a coder many years back and have just recently picked it up again as a hobby (I just missed it too much).

Is there any Atmega8u2 or Atmega16u2 driver out there that I can load on the N810?

Thank you!!



p.s. What I want to do is use the N810 as a rapid prototyping tool, so I can easily set up GUI's to track multiple sensor feeds while on the move (on motor vehicles). If this doesn't work, I might go a different route... either with an Arduino USB host shield, or via BlueTooth.
I just need the FlashPlayer to send and received data to/from the microcontroller.
 
Posts: 5 | Thanked: 0 times | Joined on Jan 2013
#2
Here is the log from dmesg:

PHP Code:
[  158.265625tusb_source_power 633VBUS a_wait_vrisedevctl 5d otg
171 conf c0010000 prcm 00a80500
[  158.265625musb_stage0_irq 645:
CONNECT (a_hostdevctl 5d
[  158.289062hub 1-0:1.0state 8 ports 1 chg 0000 evt 0000
[  158.289062usb usb1usb auto-resume
[  158.289062usb usb1finish resume
[  158.289062hub 1-0:1.0hub_resume
[  158.312500hub 1-0:1.0port 1status 0101change 000112 Mb/s
[  158.539062hub 1-0:1.0debounceport 1total 100ms stable 100ms
status 0x101
[  158.664062usb 1-1: new full speed USB device using musb_hdrc and address 2
[  158.804687usb 1-1ep0 maxpacket 8
[  158.804687usb 1-1skipped 3 descriptors after interface
[  
158.804687usb 1-1: default language 0x0409
[  158.804687usb 1-1: new device stringsMfr=1Product=2SerialNumber=220
[  158.804687usb 1-1ManufacturerArduino (www.arduino.cc)
[  
158.804687usb 1-1SerialNumberA4139373630351600151
[  158.804687usb 1-1device v2341 p0043 is not supported
[  158.804687usb 1-1uevent
[  158.804687usb 1-1usb_probe_device
[  158.804687usb 1-1configuration #1 chosen from 1 choice
[  158.804687usb 1-1adding 1-1:1.0 (config #1, interface 0)
[  158.804687usb 1-1:1.0uevent
[  158.804687usbserial_generic 1-1:1.0usb_probe_interface
[  158.804687usbserial_generic 1-1:1.0usb_probe_interface got id
[  158.804687usbtest 1-1:1.0usb_probe_interface[  158.804687]
usbtest 1-1:1.0usb_probe_interface got id
[  158.812500usb 1-1adding 1-1:1.1 (config #1, interface 1)
[  158.812500usb 1-1:1.1uevent
[  158.812500usbserial_generic 1-1:1.1usb_probe_interface
[  158.812500usbserial_generic 1-1:1.1usb_probe_interface got id
[  158.812500usbtest 1-1:1.1usb_probe_interface[  158.812500]
usbtest 1-1:1.1usb_probe_interface got id
[  158.812500] /home/dvondle/maemo_kernel/kernel-source-diablo-2.6.21/kernel-source/drivers/usb/core/inode.c:
creating file '002'
[  158.812500hub 1-0:1.0100mA power budget left[  158.812500hub
1
-0:1.0state 7 ports 1 chg 0000 evt 0002
[  158.812500hub 1-0:1.0port 1 enable changestatus 00000103
[  160.812500usb 1-1usb auto-suspend
[  162.835937hub 1-0:1.0hub_suspend
[  162.835937usb usb1usb auto-suspend 
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#3
With uno you're supposed to use one of the usb cdc drivers, I forget the details though.
 
Posts: 5 | Thanked: 0 times | Joined on Jan 2013
#4
Looks like I could recompile the FTDI driver to recognize the new VID and PID... Isn't the UNO's USB/serial firmware acting just the same as FTDI?
 
Posts: 470 | Thanked: 173 times | Joined on Oct 2009 @ Melb
#5
yeah, Igot this working.

Ican currently program my arduino via terminal, is this what you're trying to do?
 
Posts: 5 | Thanked: 0 times | Joined on Jan 2013
#6
That's something I also want to do! Please tell me how!!
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#7
The Uno doesn't use ftdi, and doesn't behave like ftdi, don't try to use ftdi drivers.
 
Posts: 5 | Thanked: 0 times | Joined on Jan 2013
#8
Thank you for the info, in fact it was stated on a few resources online that the Atmega chip used in the Arduino UNO for USB/serial conversion was loaded with a firmware that mimics the FTDI driver in all it's behaviors, with the key difference laying in the different Vendor ID.

I will have to look further into it.

I have reflashed the N810 with the latest DIABLO image, and haven't burned the modded kernel this time. I wanted to try to load the required drivers by hand with insmod.

I found the CDC driver page, but at my first attempt (loading just the CDC USB driver) the USB port did not come to life and fire up the Arduino board. I guess there will be more modules to be installed.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:52.