Reply
Thread Tools
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#1
hi everybody
i've got a serialport connection capable arduino.
i saw a couple instructions on net about how to connect arduino to maemo devices with usb host capability.

for example here:
http://blog.locationist.net/2008/03/...o-interaction/

in that project they used a usb connection capable arduino.
today im going to buy a serialport to usb converter which contains a driver cd

but probably the driver in that cd wont be for maemo.

so.. main point is that can i use module files in linked page above instead of that cd contains.

i hope i could explain what i wanted to say.
sorry for my english
 
Posts: 187 | Thanked: 28 times | Joined on Apr 2007 @ Southampton, UK
#2
Hi there. You might be fortunate and maemo will already have a serial driver for usb enabled though this is unlikely. I imagine the drivers listed on the link you provided should work as essentially the usb on the board will have a usb to serial adapter. If it doesn't work you should be able to enable such a driver through configuring the kernel.
__________________
There is no place like /home.
 

The Following User Says Thank You to peterjb31 For This Useful Post:
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#3
i just bought the converter

next goal: a maemo controlled robot
 
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#4
Thanks to Fanoush: http://talk.maemo.org/showpost.php?p=101312&postcount=5 Just insmod them in. I found the FTDI drivers more stable. Works great with screen, gpspipe, etc.
 

The Following 3 Users Say Thank You to st5150 For This Useful Post:
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#5
i got a problem about installing pyserial module
it always giving same error.
when i try to run this command:
cd /media/mmc2/ps
and then
python setup.py install

and it says
no module named distutils.core

please please help
 
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#6
i fixed distutils.core problem but...
there is still no available ports except /dev/ttyS0 which always exists.
i runned scan.py which scans available ports
but there is no port called ttyUSB0

please help
 
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#7
when i run dmesg command:
it is printing lots of lines that says
EAC MODE :
play enabled , rec enabled
playdisabled , rec enabled
play enabled , rec enabled
lots of these lines
also it keeps sayin usb-auto suspend
and hub_suspend

im trying with pl2303.ko module now
------------------
Code:
;	SERSPL.INF
;	Copyright (c) 1999 Prolific Technology
;
;	09/13/2000
i think my usbserial converter is pl2303 due to info. above that i found in its driver file
but still not working with pl2303.ko module file
there is nothing abt ttyusb0 in dmesg

Last edited by McLightning; 2009-07-29 at 15:38.
 
Posts: 631 | Thanked: 837 times | Joined on May 2007 @ Milton, Ontario, Canada
#8
Here sorry I missed earlier but this will take care of the USB to serial modules for all linux compatible devices on Maemo:

http://www.electronicproductonline.com/catalog/supportFiles/usbSerial-N810_0.1_armel.deb


I've used this before and serial devices always show up properly. I think ftdi (?) chips are the most common for microcontrollers like arduino, the pl2303's tend to be more for the stand alone USB-serial adapters... but that's just been my experience, don't know for sure!
 

The Following 3 Users Say Thank You to jolouis For This Useful Post:
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#9
Assuming your USB to serial adapter is plugged into your NIT with the proper adapters, using the file I linked to above, try this:


insmod /path/to/your/mods/drivers/usb/serial/usbserial.ko
insmod /path/to/your/mods/drivers/usb/serial/pl2303.ko

Assuming you've already apg-get install screen
(you may need to install nano first if I remember right)

To get a 9600 baud terminal type

screen /dev/ttyUSB0 -FTCYPKJ5 9600,cs8,-ixon,-ixon,-istrip


If you have gpspipe installed and want to get 4800 baud NMEA GPS sentences out of your 810 type

gpspipe -rs /dev/ttyUSB0

More about gpspipe here http://talk.maemo.org/showpost.php?p=278271&postcount=7

Last edited by st5150; 2009-07-29 at 21:12.
 

The Following 2 Users Say Thank You to st5150 For This Useful Post:
Posts: 384 | Thanked: 90 times | Joined on Mar 2008
#10
Originally Posted by jolouis View Post
Here sorry I missed earlier but this will take care of the USB to serial modules for all linux compatible devices on Maemo:

http://www.electronicproductonline.com/catalog/supportFiles/usbSerial-N810_0.1_armel.deb


I've used this before and serial devices always show up properly. I think ftdi (?) chips are the most common for microcontrollers like arduino, the pl2303's tend to be more for the stand alone USB-serial adapters... but that's just been my experience, don't know for sure!
What does this deb do? sticks the .ko files somewhere and automatically insmods them on bootup or something?
 

The Following User Says Thank You to st5150 For This Useful Post:
Reply


 
Forum Jump


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