Results 1 to 15 of 51

Thread: Howto add serial port to WL-500gx/gp

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jun 2004
    Location
    Delft, The Netherlands
    Posts
    62

    Serial port config

    I have a 500gx running 1.9.2.7-5a. Before opening the case and possible break warranty I wanted to check how the internal serials are controlled.
    I see the following:
    Code:
    [admin@wl500gx root]$ more /proc/tty/driver/serial
    serinfo:1.0 driver:5.05c revision:2001-07-08
    0: uart:16550A port:B8000300 irq:3 baud:115740 tx:630 rx:0 RTS|DTR
    1: uart:16550A port:B8000400 irq:0 tx:0 rx:0 CTS|DSR|CD
    That shows that two ports are available. Usually (in other Linux systsems) the serials devices have names /dev/ttyS0 and /dev/ttyS1. In de asus I only see /dev/tts/0 and /dev/tts/1.
    trying to set baud rate using busybox stty applet results in the following:
    Code:
    [admin@wl500gx harddisk]$ ./busybox stty 9600 < /dev/tts/0
    [admin@wl500gx harddisk]$ more /proc/tty/driver/serial
    serinfo:1.0 driver:5.05c revision:2001-07-08
    0: uart:16550A port:B8000300 irq:3 baud:9615 tx:630 rx:0 RTS|DTR
    1: uart:16550A port:B8000400 irq:0 tx:0 rx:0 CTS|DSR|CD
    It seems that the baud rate is only approximately set on the device. Probably accurate enough. Echoing some characters shows:
    Code:
    before
    0: uart:16550A port:B8000300 irq:3 baud:9615 tx:630 rx:0 RTS|DTR
    after echo "1234567890" > /dev/tts/0 it reads:
    0: uart:16550A port:B8000300 irq:3 baud:9615 tx:642 rx:0 RTS|DTR
    showing that the charaters are being transmitted.

    Stty changes can also be made to second port; however, echoing to the second port /dev/tts/1 results in a full hang-up of the system. Need to power cycle.

    Does anyone has experimence with sending/receiving messages through both the serials from the shell (thus not as default serial terminal at boot-up as is shown earlier in this thread)?

    Another question is about the logical levels of this interface. Is it based on 3.3V or normal TTL 5V signals? In other words, can I connect a normal MAX232 for the signal conversion between RS-232 and the uart ports of the WL500G?
    Last edited by sodb; 22-05-2005 at 09:12.

Similar Threads

  1. Alle Howto's, all howto's
    By newbiefan in forum German Discussion - Deutsch (DE)
    Replies: 17
    Last Post: 29-03-2013, 13:57
  2. Use an USB-serial port converter
    By Technik in forum WL-500g/WL-500gx Tutorials
    Replies: 39
    Last Post: 24-04-2012, 10:54
  3. Virtual serial port (CDC Class)
    By Snail.cz in forum WL-500gP Q&A
    Replies: 3
    Last Post: 09-03-2009, 16:42
  4. WL-500gx with openwrt pre-rc5 howto webserver?
    By ye_old in forum WL-500g Custom Development
    Replies: 1
    Last Post: 22-03-2006, 12:54
  5. Serial port for WL-500g
    By sveasoft in forum WL-500g Pics & Specs
    Replies: 6
    Last Post: 08-03-2005, 21:39

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •