PDA

Bekijk de volledige versie : Use an USB-serial port converter



Technik
12-07-2004, 02:19
I have compiled sources for USB-serial converters - enjoy the attached file. :)
Quickly tested with ATEN UC-232A (pl2303.o module):

insmod usbserial.o
insmod pl2303.o
mknod /dev/ttyUSB0 c 188 0
chmod 666 /dev/ttyUSB0

Dex
13-07-2004, 15:44
Hi Technik,

I have used your compiled modules with a PL2302 based usb-to-serial adapter. The modules are loaded without any errors and also the adapter was recognized correctly when plugged in (check by using dmesg). But when I am
sending only a few characters to a connected modem the system stops and reboots due to the running watchdog.
How you have checked the modules?
Which firmware are you using?

Technik
13-07-2004, 16:03
Hi Technik,

I have used your compiled modules with a PL2302 based usb-to-serial adapter. The modules are loaded without any errors and also the adapter was recognized correctly when plugged in (check by using dmesg). But when I am
sending only a few characters to a connected modem the system stops and reboots due to the running watchdog.
How you have checked the modules?
Which firmware are you using?
Yes I have tested it quickly with (a bit obsolete) 1.7.5.9-1 firmware. I did not encounter any router reboot and it seemed to be working (Hyperterminal versus microcom terminal, 9600-8-n-1).
What is your free memory size?

BTW the 2302 chip is quite different so perhaps it can't work with pl2303.o module at all. It looks strange to me that your chip was accepted by the driver...
Compare the chips:
http://www.prolific.com.tw/eng/Products.asp?ID=20
http://www.prolific.com.tw/eng/Products.asp?ID=59

Randale91
24-09-2004, 19:20
Hello,

does anybody get such a converter to work with wl500g ?
I dont want to open the case.
Does anybody have experience with profilic driver ?
Maybe i missed some discussion in forum ?

Thanks a lot.

Regards,

Gabriel

funsje
24-09-2004, 23:09
See http://www.usbgear.com/
It's on the mainpage!

NOTE: Google string: USB Serial!!!!

justwords
25-09-2004, 12:05
But i cannot find any information there wether this would work on the asus wl-500x. Besides, what do you want to use serial connections to the wl-500x for? Just enabling serial connections does not help much.

Randale91
25-09-2004, 12:10
wl500g <-> USB - Serial RS232 <-> RS232 microcontroller with several status functions...

A server program watches the microcontroller and sends udp broadcasts
to internal net or wait for a TCP terminal connection (small daemon process).


Regards Gabriel

WlanMan
25-09-2004, 13:48
Hi

For general, it can work if the needet modules are compiled into the kernel what i cant tell you at the moment. I have a Belkin usb-rs232 device which is suported by linux at my pc, and also the usual cables with inbuild electronics (mostly the ftdi chip) are supported.

What Mikrocontroller do you use ? AVR,Pic, Basic Stamp ??

Greets

Randale91
25-09-2004, 18:09
I want to use AVR, 90S2313 for simple solution, Mega series for more ports...

Regards Gabriel

Technik
26-09-2004, 00:47
Hello,

does anybody get such a converter to work with wl500g ?
I dont want to open the case.
Does anybody have experience with profilic driver ?
Maybe i missed some discussion in forum ?

Thanks a lot.

Regards,

Gabriel
FYI there's a Search function which works good... :)
http://wl500g.info/showthread.php?t=608
BTW pl = prolific ;)

WlanMan
26-09-2004, 11:26
Hi

Just for interrest, the Belkin Serial Adapters work also.
But what to do next with them :).

hub.c: new USB device 00:04.0-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x50d/0x103) is not claimed by any active driver.
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
usbserial.c: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
usbserial.c: Belkin / Peracom / GoHubs USB Serial Adapter converter detected
belkin_sa.c: bcdDevice: 0205, bfc: 1
usbserial.c: Belkin / Peracom / GoHubs USB Serial Adapter converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
belkin_sa.c: USB Belkin Serial converter driver v1.2


Greets

palbeda
29-12-2004, 12:52
Hi,

I also want to use an serial usb adaptor, other make (type DCU-S2U), works fine in other Linux or Windows machine, is recognised perfectly on boot-up,
but after a few characters, same problem, locks-up and then leads to a reboot of the Asus.

I have tried:
- Changing the settings of the port with ssty (disable software and/of hardware handshake)
- Using proper hardware handshake connections
- Several firmwares for the ASUS
- Adding proper end-of-line and end-of-file characters to the data

Nothing works, looks like a bug in the firmware :mad:

Anybody who has a clue??? I would be VERY gratefull if this problem could be solved.

Regards,

Peter

ChangKyu Beck
17-05-2005, 10:51
Hi,

If it insert the usb to serial convert cable to WL-500g then there will be many useful apllication. Remote other device control and communictaion with RS232C... Unfortunatly, I don't know Linux system programming.
I have only its idea. :(

Oleg
17-05-2005, 10:52
Starting with 1.9.2.7-5 support for pl2303 and generic usb serial adapters was added to the firmware.

vlad75
22-11-2005, 19:47
I have connected an usb to serial converter, ATEN UC-232A (pl2303.o module) to my asus 500g.
Which port number should I use if I want to connect to the converter over a wireless tcp connection? I suppose
that the IP is the same as the IP of the router?

vlad75
04-12-2005, 16:02
How do I enable the stty command on my asus 500g?

I'm trying to make the router communicate with a microcontroller. The microcontroller drives a robot that i have built, which has object recognition capabilities. I will be very greatful if someone could help me with this.

vlad75
08-12-2005, 20:11
Does anyone have a firmware binary that has the stty command enabled for the busybox?

Technik
13-12-2005, 22:21
Come on now! Anyone??? :o
Did you try to search forum? ;) You should find a link to compiled (a bit old but perhaps still working) busybox v1.00-pre5. Try the attached file.

vlad75
14-12-2005, 16:30
Thank you very much :) . I'm quite new to linux so can you please tell me how I install the busybox binary on my router?

Technik
14-12-2005, 17:46
Thank you very much :) . I'm quite new to linux so can you please tell me how I install the busybox binary on my router?
Just copy to some directory and run... USB flash disk preferred.

vlad75
17-01-2006, 17:14
I have attached a microcontroller to my 500g using an usb -> serial converter. I can now read and write to the microcontroller using a telnet client. Now I want to write a program on a stationary computer that should read and write to the microcontroller using a TCP connection, but I don't know which port number the serial port has on the router or if this is the right way to go?. Please help me, any suggestions would be appreciated.

The registered driver looks like this:
Jan 1 00:01:12 kernel: usb.c: registered new driver serial
Jan 1 00:01:12 kernel: usbserial.c: USB Serial support registered for Generic
Jan 1 00:01:12 kernel: usbserial.c: USB Serial Driver core v1.4
Jan 1 00:01:22 kernel: usbserial.c: USB Serial support registered for PL-2303
Jan 1 00:01:22 kernel: usbserial.c: PL-2303 converter detected
Jan 1 00:01:22 kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Jan 1 00:01:22 kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.11

vlad75
18-01-2006, 08:32
Can I connect to my serial port on my Asus 500g (using usb -> serial converter) using anything else then a telnet client?.

gwl
20-01-2006, 20:58
I also have some problems with the usb-serial-FTDI module...
It works, but I don't get "newline"... and if I echo a lot of chars, it stops after the first 100 or so...

If you know the solution, please post it here.

thanks.

UPDATE:I just solved this problem...
I recompiled usbserial.o and ftdi_sio.o (from oleg's custom fw),
and now it's working... :)

PS: [Technik] : Empty your mailbox!!! you want to send you a PM!!

sodb
21-01-2006, 13:16
Can you post your newly compiled drivers (usbserial.o and ftdi_sio.o)? I have a ftdi module that won't work, maybe the new drivers also solve my problems.

gwl
21-01-2006, 17:28
Can you post your newly compiled drivers (usbserial.o and ftdi_sio.o)? I have a ftdi module that won't work, maybe the new drivers also solve my problems.

Here it is... (tested with Oleg's 1.9.2.7-6b)
use:
insmod ./usbserial.o
insmod ./ftdi_sio.o

;)

vlad75
24-01-2006, 20:10
Works great for me to! However I have another question. Can I connect to the serial port on the router from a computer connected to the network?

vlad75
25-01-2006, 17:07
I have this row in my logfile:


Jan 25 16:43:09 kernel: hub.c: new USB device 00:04.0-1, assigned address 2

What does this line say? What do the numbers mean?

WlanMan
26-01-2006, 01:13
It tells you there has been a new usb device detected on the router (not neccecary a single device, can be part of a multi-endpoint device) and that no driver for it is loaded or avaliable.

The numbers are internal numberings of the kernal for usb-devices, you can savely ignore them for now. think of a sort of path-description to the device from kernal-view.

Greets

vlad75
30-01-2006, 16:25
I want to run a TCP server on my asus 500g to be able to connect to my serial device, attached to the USB port (using serial -> USB converter), from a remote computer. Someone must have done this before. Where should I look? Any ideas?

vlad75
30-01-2006, 20:11
When reading from the serial port using command cat /dev/usb/tts/0 I must send about 4000 characters to the port (from a external serial device) before anything is printed in the terminal window of the router. I suspect that it happens when the buffer is full. Can this be a bug or am I doing anything wrong?

jbullock
22-03-2006, 22:57
I'm not sure if I should post on this thread or create a new thread. My goal is to use a Belkin USB to Serial adapter with my WL-500g (not the Deluxe model) to create a PPP connection for my DirecTiVo. I admit that I'm a novice when it comes to Linux. I know how to create the connection on a Windows based system, though I haven't found instructions yet on how to do it via Linux. My main question for this forum is: Has anyone tried using the USB to Serial adapter to create a PPP connection via the WL-500g?

Thanks

Jeremiah

sgtwilko
14-04-2006, 13:52
Hi,

I'm not sure if this is the correct forum for this but....

I'm running the latest Oleg firmware on a WL-500gd, I've recently purchased three pl2303 based usb to serial adapters and a Belkin usb 2 four port hub.

When a pl2303 is plugged into either of the two onboad usb ports it is detected and I can use it, when plugged in via the hub I get these messages in dmesg...

hub.c: new USB device 01:02.2-2.3, assigned address 5
usb.c: unable to get device descriptor (error=-32)
hub.c: new USB device 01:02.2-2.3, assigned address 6
usb.c: unable to get device descriptor (error=-32)

lsusb returns the following before the list of devices:
Unknown line at line 1809
Duplicate HUT Usage Spec at line 2650

and the pl2303 is not listed.

I'm going to try to get my hands on another usb hub to eliminate that from the process, but I'm faily sure the hub is fine as my memory card is working fine via it.

Does anyone have any help/advice/ideas on how to proceded

Many thanks,

SgtWilko.

sgtwilko
14-04-2006, 20:13
Well testing with a USB 1.1 hub and everything works fine.

Strangly enough the usb 2 hub works perfectly on my Debian machine, with the serial devices being detected correctly.

So to overview;
The hub works on Debian Kernel 2.6.8-2-686-smp.
It works with the memory stick, but not with the serial adapters on Olegs firmware.

The serial devices work on an older usb 1.1 hub so there is probably nothing wrong with the pl2303 drivers.

So now if I can find another usb 2 hub I'll be able to tell if it's the hub or the fact it's a usb2 hub that's the problem.

sgtwilko
17-04-2006, 14:26
Well I think I've discovered the answer, apparently the linux kernel and the pl2303 module included in Olegs firmware can not work with certain usb 1 devices via a usb 2 hub.

The pl2303 driver for the current 2.4 kernel is especially broken in this regard.

So I will buy a usb 1 hub to replace the usb 2 hub.

Thanks for your help...

Gecko
17-03-2007, 09:36
Hi,

I have the following problem:

I use a Prolific PL2303 based USB2Serial adapter on my WL500gP.
If I connect it directly to my box everything works fine.

dmesg:



usbserial.c: PL-2303 converter detected
usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)


But if I use this device with a USB hub connected to my box I get the following error message.

dmesg:



hub.c: new USB device 01:03.2-2.1, assigned address 4
usb.c: unable to get device descriptor (error=-32)
hub.c: new USB device 01:03.2-2.1, assigned address 5
usb.c: unable to get device descriptor (error=-32)


It seems that the USB2Serial adapter is only be identified correctly if I connect it directly to the USB port of the WL500gP, but fails if I use it with an USB hub.

The USB hub itself seems to work correctly:

dmesg:



hub.c: new USB device 01:03.2-2, assigned address 3
hub.c: USB hub found
hub.c: 4 ports detected


I also tested this hub with my USB memory stick with no problems at all.

Questions:

* Is there anyone else out there having the same problem and probably a solution too?

* Is there anyone using a PL2303 based USB2Serial adapter successfully in combination with an USB hub?

* Does someone know a working solution for another USB2serial adapter, which is supported by the WL500gP firmware and works with an USB hub?

Any help is higly appreciated.

Thanks,

Gecko.

al37919
17-03-2007, 16:41
I can answer only a half of your first question :( . Yesterday I also tried to attach PL2303 based usb-com converter to the wl500gP. The results are exactly the same (I tested with two devices from different manufacturers). Failure with similar response while connecting through the usb hub, success when connected straight to the router. The other devices (hdd and printer) normally work through the hub flawlessly. So, it seems, that's a bug.

duncan
23-07-2007, 14:00
Hello,

I've the Asus WL500Gp with the newest oleg firmware and if i connect a usb to serial cable the drivers install well. It say's everything is well.
But wenn i try to use my mastera 3 phoenix cardreader i became error's and the cardreader software (newcs) says reset failed.
This what i become in the System Log:


Jan 1 01:29:27 kernel: usb-uhci.c: ENXIO 40408580, flags 0, urb 81a45d20, burb 81a45d20
Jan 1 01:29:27 kernel: pl2303.c: pl2303_read_int_callback - usb_submit_urb failed with result -6

I use the default serialusb.so and the pl2303.o drivers in the firmware, this is v1.4 from the serialusb driver and v0.11 from the pl2303 driver.
The usb to serial converter is from conceptronic.

Somebody can help me fix this problem?

dolphs
04-09-2007, 20:55
@GWL - these modules are what I am looking for let's see if I can get things running on oleg "1.9.2.7-7g". I assume it is for kernel "2.4.20"?. -- it looks good dmesg:

usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
usbserial.c: USB Serial support registered for FTDI SIO
usbserial.c: USB Serial support registered for FTDI 8U232AM Compatible
usbserial.c: USB Serial support registered for FTDI FT232BM Compatible
usbserial.c: USB Serial support registered for USB-UIRT Infrared Receiver/Transmitter
usbserial.c: USB Serial support registered for Home-Electronics TIRA-1 IR Transceiver
ftdi_sio.c: v1.3.5:USB FTDI Serial Converters Driver

britnet
09-10-2007, 10:27
Hi,

im using this driver, but i cant read data, can you help me?

See this thread: http://wl500g.info/showthread.php?t=10917

ebk71
24-04-2012, 10:54
I have found my solution:
Had to :
-wget http://oleg.wl500g.info/1.9.2.7-9/modules-1.9.2.7-9.tgz
-tar modules-1.9.2.7-9.tgz
-modprobe works !!!!!!!
My adapter is now attached



I'm using Oleg's FW 1.9.2.7-9 on a WL-HDD. I'm sorry for posting in this area but it seems that the use of wl-hdd has died a little.

From what I have found the usbserial en pl2303 module should work on this firmware. I have tried different commands that I found on different places. The last I tried was #insmod pl2303.0 which resulted in:

pl2303.o: pl2303.o: unresolved symbol usb_serial_deregister
pl2303.o: pl2303.o: unresolved symbol usb_serial_register
and on usbserial:
segmentation fault

Also tried modprobe what must work:
modprobe: Can't open dependencies file //opt/lib/modules/2.4.20/modules.dep (No such file or directory)

Or do I have to compile my own kernel with this drivers? As my question markes out I'm a novice, so would it be wise to go compiling my own kernel? Or is it just asking for more trouble.........

This forum is my last resort, if I can't solve this I have to give up :-( (I also tried this on a TonidoPlug2 with no success)