maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   usbserial on N8X0! (https://talk.maemo.org/showthread.php?t=14877)

litus 2008-01-11 21:20

usbserial on N8X0!
 
1 Attachment(s)
pl2303.ko and usbserial.ko are needed to connect any gadget through USB with a cable "USB to serial".
With this you can programme for your gadgets, transfer data, and control a lot of things.

The only you have to do is download usbserial.ko and pl2303.ko and type into n8X0 terminal (root):
insmod usbserial.ko
insmod pl2303.ko
and fun!

for more information visit http://www.behindmaemolines.blogspot.com/

here I put the files:

fpp 2008-01-11 21:42

Re: usbserial on N8X0!
 
Thanks ! Maybe I could try this with my Psion Series5... :-)

Doug 2008-01-12 21:16

Re: usbserial on N8X0!
 
Are you saying that a N800 can be a USB host controller? Can it supply power out the USB port?


[QUOTE=litus;125761]pl2303.ko and usbserial.ko are needed to connect any gadget through USB with a cable "USB to serial".
With this you can programme for your gadgets, transfer data, and control a lot of things.

convulted 2008-01-12 21:23

Re: usbserial on N8X0!
 
Doug, this has been mentioned many times already, but to summarize: OS2008, which runs on both the N800 and the N810, has built-in USB host functionality. Basically, all is needed is a USB cable with a male end that fits into the N8X0, with pins 4 and 5 soldered together, and a female end to which you can connect any other device. In the N800's case, all you need is a Mini-AB (M) to Type A (F) cable, then cut (some of the) shielding from the Mini-AB end so that it fits into the connector on the tablet. Then just connect your USB keyboard or pendrive and the tablet will recognise it. If you connect a pendrive, it will even open the file manager to show you the files on it!

HTH.

EDIT: Yes, it _will_ supply power, but is limited to a maximum current of about 125 mA IIRC.

linux_author 2008-01-13 00:25

Re: usbserial on N8X0!
 
Quote:

Originally Posted by litus (Post 125761)
pl2303.ko and usbserial.ko are needed to connect any gadget through USB with a cable "USB to serial".
With this you can programme for your gadgets, transfer data, and control a lot of things.

- w00t! you're darn' tootin', partner!

- this was the 'missing link' for me!

- now i'll be able to use my n800 to remotely control my high-frequency receiver (Ten-Tec RX-320)

- tks!

p.s. too bad we don't have 'line-in,' else we'd have gMFSK up and running for PSK31 ops!

dblank 2008-01-13 00:52

Re: usbserial on N8X0!
 
Quote:

Originally Posted by linux_author (Post 126433)
p.s. too bad we don't have 'line-in,' else we'd have gMFSK up and running for PSK31 ops!

I'm pretty sure the audio chip has line-in, but I don't think it's connected to anything :(

t3h 2008-01-13 12:42

Re: usbserial on N8X0!
 
Quote:

Originally Posted by dblank (Post 126454)
I'm pretty sure the audio chip has line-in, but I don't think it's connected to anything :(

USB soundcards are not unheard of...

dblank 2008-01-13 18:46

Re: usbserial on N8X0!
 
Quote:

Originally Posted by t3h (Post 126712)
USB soundcards are not unheard of...

I'm aware of USB soundcards, I'd just prefer to have less junk dangling off the tablet.

I wish they had simply put a switch so we could toggle between line or mic level.

Maybe it is connected and there's some magical way to switch in software, but no one's confirmed or denied. It really bugs me to have hardware that I can't use (IVR, PowerVR(?), and line-input, at least)

linux_author 2008-01-14 12:10

Re: usbserial on N8X0!
 
- just verified that these modules appear (in the system at least) to work on my os2008 n800:

dmesg upon insmod'ing:

[ 472.390625] usbcore: registered new interface driver usbserial
[ 472.390625] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 485.992187] drivers/usb/serial/usb-serial.c: USB Serial support
registered for pl2303
[ 486.000000] usbcore: registered new interface driver pl2303
[ 486.000000] drivers/usb/serial/pl2303.c: Prolific PL2303 USB to
serial adaptor driver

and upon attachment of my no-name USB-serial adapter after putting the n800 into host mode:

[ 817.343750] usb 1-1: new full speed USB device using musb_hdrc and
address 2
[ 817.476562] usb 1-1: default language 0x0409
[ 817.476562] usb 1-1: new device strings: Mfr=1, Product=2,
SerialNumber=0
[ 817.476562] usb 1-1: Product: USB-Serial Controller
[ 817.476562] usb 1-1: Manufacturer: Prolific Technology Inc.
[ 817.476562] usb 1-1: device v0557 p2008 is not supported
[ 817.476562] usb 1-1: uevent
[ 817.476562] usb 1-1: usb_probe_device
[ 817.476562] usb 1-1: configuration #1 chosen from 1 choice
[ 817.476562] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 817.476562] usb 1-1:1.0: uevent
[ 817.476562] usbtest 1-1:1.0: usb_probe_interface
[ 817.476562] usbtest 1-1:1.0: usb_probe_interface - got id
[ 817.476562] pl2303 1-1:1.0: usb_probe_interface
[ 817.476562] pl2303 1-1:1.0: usb_probe_interface - got id
[ 817.476562] pl2303 1-1:1.0: pl2303 converter detected
[ 817.476562] usb 1-1: pl2303 converter now attached to ttyUSB0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

YAHOO!

[ 817.484375] drivers/usb/core/inode.c: creating file '002'
[ 817.484375] hub 1-0:1.0: 100mA power budget left
[ 817.484375] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 817.484375] hub 1-0:1.0: port 1 enable change, status 00000103

....

- next step is to build and test a command-line version of the Debian RX320 command-line client!

- tks to the OP!

bluesubaru 2008-02-10 05:59

Re: usbserial on N8X0!
 
Gave this a try with my Keyspan USA-19Qi USB-serial adapter, but it didn't seem to like it.


[ 4852.453125] usb 1-1: new full speed USB device using musb_hdrc and address 5
[ 4852.585937] usb 1-1: new device strings: Mfr=0, Product=0, SerialNumber=0
[ 4852.585937] usb 1-1: hub v06cd p010b is not supported
[ 4852.585937] usb 1-1: uevent
[ 4852.585937] usb 1-1: usb_probe_device
[ 4852.585937] usb 1-1: configuration #1 chosen from 1 choice
[ 4852.585937] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 4852.585937] usb 1-1:1.0: uevent
[ 4852.585937] usbtest 1-1:1.0: usb_probe_interface
[ 4852.585937] usbtest 1-1:1.0: usb_probe_interface - got id
[ 4852.585937] drivers/usb/core/inode.c: creating file '005'
[ 4852.585937] hub 1-0:1.0: 100mA power budget left
[ 4852.585937] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 4852.585937] hub 1-0:1.0: port 1 enable change, status 00000103
[ 4854.585937] usb 1-1: usb auto-suspend
[ 4856.625000] hub 1-0:1.0: hub_suspend
[ 4856.625000] usb usb1: usb auto-suspend

Took it apart. Inside was a Cypress AN2131SC chip.

z2n 2008-02-14 19:10

Re: usbserial on N8X0!
 
Quote:

Originally Posted by litus (Post 125761)
pl2303.ko and usbserial.ko are needed to connect any gadget through USB with a cable "USB to serial".
With this you can programme for your gadgets, transfer data, and control a lot of things.

Unfortunately, the popular Keyspan USB-to-serial adapters don't all work with the pl2303 module (depending on the age & chipset).

Is there any chance that you could compile the keyspan module? It's available from http://www.keyspan.com/downloads-files/developer/linux/


Thanks for providing the kind of support that Nokia should be supplying!

Benson 2008-02-14 20:02

Re: usbserial on N8X0!
 
Quote:

Originally Posted by z2n (Post 142520)
Thanks for providing the kind of support that Nokia should be supplying!

Why should they? They used an open platform, so hackers can hack. But I don't see why they should be recompiling everything anyone might ever want, things on the premise that 'someone will eventually want this', even though the device is not designed or marketed to do that.

It's better that they should fix some of the things they do advertise the tablet for, which are now broken, inconsistent, or otherwise suboptimal.

st5150 2008-03-13 00:23

Re: usbserial on N8X0!
 
Quote:

Originally Posted by dblank (Post 126454)
I'm pretty sure the audio chip has line-in, but I don't think it's connected to anything :(


You don't need a line in for this purpose, just place the tablet's mic close to the radios speaker.... or connect audio out from the radio to the mic-in line of a headset connected to the N8x0.


Going somewhat back to the original topic.... anyone know if there is a way to get 4800 baud NMEA GPS serial output from the N810?

Benson 2008-03-13 00:41

Re: usbserial on N8X0!
 
Quote:

Originally Posted by st5150 (Post 154215)
You don't need a line in for this purpose, just place the tablet's mic close to the radios speaker.... or connect audio out from the radio to the mic-in line of a headset connected to the N8x0.

Some level conversion is probably in order, but yeah, the mic-in should do it.

Quote:

Going somewhat back to the original topic.... anyone know if there is a way to get 4800 baud NMEA GPS serial output from the N810?
Should be straightforward, if you have cgps from gpsd. Do the N810s have that (or is it available)?

scumgrief 2008-03-13 01:05

Re: usbserial on N8X0!
 
Quote:

Originally Posted by linux_author (Post 126433)
- w00t! you're darn' tootin', partner!
p.s. too bad we don't have 'line-in,' else we'd have gMFSK up and running for PSK31 ops!

Maybe its a line-in/mic-in, and besides, I wrote a post about this suggesting bluetooth as connectivity so then you can not only lose audio wires, but then you would be able to control a psk rig controller via bluetooth (probably have to make your own bluetooth interface though.)

st5150 2008-03-13 07:45

Re: usbserial on N8X0!
 
Benso, yes level conversion can be a simple resistor in the line/connector.
I just found this link: http://www.eham.net/articles/18197 I like how the guy modified a cheap blue tooth ear piece for line in/line out. I think these are minor problems though, the big hurdle is someone finding the time to port/develop a PSK app for the device.

Regarding 4800 baud NMEA GPS, I'm new to tablets, so can you tell me what is cgps from gpsd? I was more concerned about what kind of hardware would be required to pull spit serial out from the device. So far I've only found overpriced ~$100 blue tooth serial dongles for this purpose.

scumgrief, I understand there is a Palm OS emulator for the N800. I wonder if any of these programs will run under emulation: http://www.dxzone.com/catalog/Software/PalmOS/

Benson 2008-03-13 13:11

Re: usbserial on N8X0!
 
Quote:

Originally Posted by st5150 (Post 154329)
Benso, yes level conversion can be a simple resistor in the line/connector.
I just found this link: http://www.eham.net/articles/18197 I like how the guy modified a cheap blue tooth ear piece for line in/line out. I think these are minor problems though, the big hurdle is someone finding the time to port/develop a PSK app for the device.

Yeah, just didn't want someone blowing their mic-in in a careless moment, so it's always worth mentioning.
Either the wired or BT (cool project, BTW) analog link should be pretty straightforward.
Software is probably even less trouble, though:
http://packages.debian.org/sid/psk31lx
Already a deb for armel; it's likely that it can be installed.
And Linux Author mentioned gMFSK, which is gnome, hence should be a pretty simple port.

Quote:

Regarding 4800 baud NMEA GPS, I'm new to tablets, so can you tell me what is cgps from gpsd? I was more concerned about what kind of hardware would be required to pull spit serial out from the device. So far I've only found overpriced ~$100 blue tooth serial dongles for this purpose.
Nothing tablet-specific; it's one of the progs in the (regular) gpsd distribution. I've not got an N810, so I'm no expert, but I understand it uses gpsd internally. Still, Nokia strips down a lot of "unnecessary" things, so it may not be there. Check by going to xterm and trying to run cgps.

For the serial data, BT-RS232 is nice because of no wires, but expensive. This whole thread is about USB-RS232 adapters, which are typically much cheaper; if you get one of the ones mentioned, it should work.

Jerome 2008-03-14 07:20

Re: usbserial on N8X0!
 
Quote:

Originally Posted by dblank (Post 126454)
I'm pretty sure the audio chip has line-in, but I don't think it's connected to anything :(


The audio chip is a T.I. TSC2303. It is apparently a custom chip derived from the TSC2301 or TSC2302. The whole series of chips have 2 (i.e. stereo) line-in inputs with gain control, but it is not clear that the custom chip used in the N800 actually routes the inputs outside of the package. We don't have the pinout.

The datasheet of the TSC2301 is here

fanoush 2008-03-14 18:51

Re: usbserial on N8X0!
 
Quote:

Originally Posted by z2n (Post 142520)
Unfortunately, the popular Keyspan USB-to-serial adapters don't all work with the pl2303 module (depending on the age & chipset).

This one does http://www.dealextreme.com/details.dx/sku.5859

st5150 2008-03-14 23:09

Re: usbserial on N8X0!
 
Quote:

Originally Posted by fanoush (Post 155168)

Nice, and what kind of adapter do you use to connect it to the Nokia? Does Deal Extreme sell it?

Texrat 2008-03-15 00:23

Re: usbserial on N8X0!
 
I love this community. :D

fanoush 2008-03-15 07:42

Re: usbserial on N8X0!
 
Quote:

Originally Posted by st5150 (Post 155330)
Nice, and what kind of adapter do you use to connect it to the Nokia? Does Deal Extreme sell it?

Original cable you already have combined with this
http://www.dealextreme.com/details.dx/sku.2646
I have shorter one from local shop but this one works too.

They also sell microUSB cable for N810
http://www.dealextreme.com/details.dx/sku.6764

piku 2008-08-10 17:26

Re: usbserial on N8X0!
 
I've just managed to connect my Garmin eTrex GPS to my N810 using a USBSerial Garmin cable and the USB Host mode stuff. After recompiling GPSBabel for my N810 I was able to extract the tracklog from the gps :)

st5150 2008-08-10 19:44

Re: usbserial on N8X0!
 
Nice, do you mind posting GPSBabel?

piku 2008-08-10 20:37

Re: usbserial on N8X0!
 
Quote:

Originally Posted by st5150 (Post 212059)
Nice, do you mind posting GPSBabel?

Sure, no problems, find it here

http://www.piku.org.uk/drupal/project/GPSBabel-maemo

All this is, is a straight compilation of the current GPSBabel source under the latest Maemo scratchbox. It didn't require any configuring, so the original coders get my respect :)

tso 2008-08-10 20:47

Re: usbserial on N8X0!
 
im guessing this module also allows one to connect a 3G usb dongle if its controllable via a serial interface?

dragon_788 2008-11-04 05:58

Re: usbserial on N8X0!
 
As soon as I can find my OTG adapter again [cry] I'm going to test these out with a USB EVDO card. Had good luck up to the point where I didn't have a usbserial module to speak of. Thanks a ton for putting these up.

tz1 2008-11-08 18:34

Re: usbserial on N8X0!
 
EVDO devices (and cellular modems) generally require more power or at least will request it so I'd try first with a powered hub. They also might not work because the driver or hardware isn't quite up to it (I have a Pantech which is cdc_acm and I can do a terminal style connection, but ppp starts up and the usb gives some nasty error messages). /dev/ttyUSBx based EVDO modems may work.

cedar 2010-03-12 17:03

Re: usbserial on N8X0!
 
I'm tyring to use this on my 810 and keep getting this error:

Quote:

insmod: cannot insert 'pl2303.ko': Unknown symbol in module (-1): No such file or directory
any suggestions? usbserial.ko worked fine

blue_led 2010-03-12 20:18

Re: usbserial on N8X0!
 
the order of insmod ... .ko files is important also the chip inside converter . it must be pl2303.

cedar 2010-03-12 22:29

Re: usbserial on N8X0!
 
@blue_led by converter do you mean usb hub?
i'm trying to get an merlin ex720 cdma expresscard working. so i have an express card to usb from siig hooked up to my n810.

thanks much for the reply.

blue_led 2010-03-12 22:47

Re: usbserial on N8X0!
 
pl2303.ko is driver for Prolific pl2303 usb to serial converter and serial mean as serial can be like com1 on PC.
this chip is for ex. inside nokia ca42 cable.
your setup non't work because you don't have driver for usb to expresscard adapter and even for merlin card

cedar 2010-03-13 00:22

Re: usbserial on N8X0!
 
hmmm ok thanks for the reply

cedar 2010-03-13 23:22

Re: usbserial on N8X0!
 
quick update:

so its seems that if i load
usbserial.ko and option.ko

the ex720 shows up as /dev/ttyUSB0 and i was actually able to connect to sprint and get an IP address but I have not been able to surf the internet yet, it keeps wanting to connect to a wifi account.

blue_led 2010-03-14 01:04

Re: usbserial on N8X0!
 
appears as a link between merlin card and nit is through an usb hub inside adapter, and merlin card acts as a regular modem so this explained no need of drivers. my bad. expersscard have inside usb link.

how many usb hubs nit reported?
offtopic: I must try usb 3g modem offered by my cable company, for free with umlimited internet traffic, if iy work on my n810

cedar 2010-03-15 06:20

Re: usbserial on N8X0!
 
Quote:

how many usb hubs nit reported?
4 i think. its showing
ttyUSB0 through ttyUSB3 in /dev/

blue_led 2010-03-15 10:54

Re: usbserial on N8X0!
 
please use "lsusb" command and paste here the result

Matan 2010-03-15 10:58

Re: usbserial on N8X0!
 
Quote:

Originally Posted by cedar (Post 566425)
quick update:

so its seems that if i load
usbserial.ko and option.ko

the ex720 shows up as /dev/ttyUSB0 and i was actually able to connect to sprint and get an IP address but I have not been able to surf the internet yet, it keeps wanting to connect to a wifi account.

You need to install dummy network, and connect to that network, so that icd (and therefore all maemo applications) know that you are connected. You can find explanations of doing this in discussions of BT PAN or USB netwroking.

cedar 2010-03-15 20:09

Re: usbserial on N8X0!
 
@blue_led
lsusb result:
Quote:

Bus 001 Device 002: ID 1410:1120
Bus 001 Device 001: ID 0000:0000
the 1410:1120 is the ex720 3g card

@Matan
thanks yeah i've been messing around with dummy mode this morning. it proved a little difficult with diablo but I just got it working!
so I can now use my 3g card for webbrowsing, voip and what ever else!!
dummy mode was the key

thanks for the feedback!


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

vBulletin® Version 3.8.8