Bekijk de volledige versie : Serial to Ethernet
I found a way to connect a serial device (my domotics system) to the WL500g deluxe and remotly control the domotics system over the ethernet.
I downloaded the ser2net program from sourceforge.net and cross compiled it for the Oleg firmware. Thanks to the very good tutorial from macsat. The ser2net program makes it possible to connect a serial device to the ethernet. It is all configurable by a .conf file. The serial device is connected to an USB to RS232 converter. I found here on this forum a driver for my converter that works with the Asus. The PL2303 driver.
You can install the necessary drivers with the following commands :
insmod usbserial.o
insmod pl2303.o
mknod /dev/ttyUSB0 c 188 0
chmod 666 /dev/ttyUSB0
In the ser2net config file you have to change the tty device to /dev/ttyUSB0
I attached the neccessary files for who is interested in it.
This sounds very intresting!!! I will try it as soon as possible.
The file seems to big to be able to flash?
[admin@(none) sbin]$ ls
post-boot ser2net
[admin@(none) sbin]$ flashfs save
tar: Removing leading '/' from member names
tmp/local/
tmp/local/etc/
tmp/local/etc/dropbear/
tmp/local/etc/dropbear/dropbear_dss_host_key
tmp/local/etc/dropbear/dropbear_rsa_host_key
tmp/local/sbin/
tmp/local/sbin/ser2net
flashfs commit
tmp/local/sbin/post-boot
tmp/local/root/
-rw-r--r-- 1 admin root 69779 Feb 21 20:14 /tmp/flash.tar.gz
Check saved image and type "/sbin/flashfs commit" to commit changes
[admin@(none) sbin]$ flashfs commit
/tmp/flash.tar.gz: File is to big (69779, max 65536)
[admin@(none) sbin]$
What can I do about it?
I had the same problem but I have an USB flash disk where I installed the complete /OPT directory. See the tutorial from macsat for this.
So ser2net program runs on the USB flash disk.
dwienie, is it possible to reduce the size of the file?
I will try to compile an older version of Ser2Net, it seems that this is smaller.
$ file ser2net
ser2net: ELF 32-bit LSB MIPS-I executable, MIPS, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
Please strip the file, then it should fit to flashfs.
Can you explain how I can strip that file ?
I could finally strip the executable. The file is now much smaller.
WLAN-Fan
10-12-2007, 16:24
Hello,
many thanks for your Work!
How can I test this system after installation without a RS-232-Device?
Many Thanks!
tobitobsen
26-09-2008, 17:49
great job!
is there a way to do the same with USB devices?
usb-server works as a remote usb device but runs only in 2.6 kernel.
Hi,
I'm testing the ser2net (version 2.3) in wl500gp and its works fair for me.
I'm using taltech tcp-com as windows client but I have noticed that RTS and DTR pins are always ON for any connection.
I have tried all knew parameters in the ser2net.conf:
1) 32032:raw:600:remctl
2) 32032:raw:600:19200 8DATABITS NONE 1STOPBIT -RTSCTS -XONXOFF
I need to control a serial device with DTR and RTS pins, but, till now, no lucky...:( The ser2net linux manual referes a DTRHI, DTRLO and RTSHI, RTSLO parameters in Control Port parameters...
Any ideas?
Hi,
I have replaced ser2net with remserial daemon but still the same problem with RTS and DTR signals.:mad:
I think the problem is not in serial over net deamons but in the nix stty definitions.
When we send an "echo" data or even only a "cat" command to /dev/tts/1 the RST and DTR signal turns allways ON.
How can I configure stty devices to disable RST and DTR status?
joepurlings
25-09-2010, 16:57
Hey people,
I'm new with the WL-500g, and I would like to use it to have my DMX (light control) setup working wireless.
I was thinking about libartnet to do this (http://www.nomis52.net/?section=projects§2=artnet&page=libartnet), but serial over ethernet would to the job as well.
I managed to get the FT232 usb/rs485 converter attached to /dev/ttyUSB0. Now I would like to use the ser2net lib as noticed in this topic.
Can somebody help me how to get the file on the router?
Another thing, I need a windows (yeah I know... but thats the only OS my lighting software runs on) client to generate a virtual comport.
Greets,
Joep