maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Accessories (https://talk.maemo.org/forumdisplay.php?f=17)
-   -   Serialport to Usb converter driver? (https://talk.maemo.org/showthread.php?t=30554)

McLightning 2009-07-29 08:11

Serialport to Usb converter driver?
 
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

peterjb31 2009-07-29 09:44

Re: Serialport to Usb converter driver?
 
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.

McLightning 2009-07-29 10:01

Re: Serialport to Usb converter driver?
 
i just bought the converter
:D:D
next goal: a maemo controlled robot :D

st5150 2009-07-29 10:45

Re: Serialport to Usb converter driver?
 
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.

McLightning 2009-07-29 11:22

Re: Serialport to Usb converter driver?
 
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

McLightning 2009-07-29 14:12

Re: Serialport to Usb converter driver?
 
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

McLightning 2009-07-29 15:00

Re: Serialport to Usb converter driver?
 
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

jolouis 2009-07-29 16:02

Re: Serialport to Usb converter driver?
 
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!

st5150 2009-07-29 21:09

Re: Serialport to Usb converter driver?
 
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

st5150 2009-07-30 04:21

Re: Serialport to Usb converter driver?
 
Quote:

Originally Posted by jolouis (Post 307522)
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?


All times are GMT. The time now is 11:21.

vBulletin® Version 3.8.8