Results 1 to 15 of 74

Thread: Make an expansion board with a serial port(s) for WL-500b/g

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2004
    Location
    Austria
    Posts
    125
    Quote Originally Posted by Artie
    As far as I understand you, your comp always receive bytes from WL without errors ('cause PMON only send data, don't receive it), but WL sometimes "misunderstand" bytes from comp (when you try to work with shell) ?
    Not completely correct. I have communicated with PMON (if you cancel the boot with Ctrl+C) succesfully und this works - I can issue commands, etc.
    With PMON if I send an 'o' it receives (and echoes back) an 'o'. This doesn't work on the console (after bootup). Sometimes it echoes a few 'o', or it acts as if I had transmitted a line-feed.
    In the meantime I have conducted tests with my 12,75MHz Crytal. The results are the same...
    By the way from where do you know that PMON expects a frequency of 7x the standard (1.8432MHz)?
    I still have the opinion that 13,5MHz is the value that the linux kernel expects for serial port initialization (-> sbmips.c).

  2. #2
    Join Date
    Dec 2005
    Location
    Moscow, Russia
    Posts
    3
    Quote Originally Posted by wtzm
    Not completely correct. I have communicated with PMON (if you cancel the boot with Ctrl+C) succesfully und this works - I can issue commands, etc.
    With PMON if I send an 'o' it receives (and echoes back) an 'o'. This doesn't work on the console (after bootup). Sometimes it echoes a few 'o', or it acts as if I had transmitted a line-feed.
    In the meantime I have conducted tests with my 12,75MHz Crytal. The results are the same...
    Sorry, then I have no ideas.

    You can try to send some characters with chess-board patterns in upper nibble (for example 0x55 - 'U' or 0xAA - 'ê') and check how they will be echoed back...

    Quote Originally Posted by wtzm
    By the way from where do you know that PMON expects a frequency of 7x the standard (1.8432MHz)?
    I still have the opinion that 13,5MHz is the value that the linux kernel expects for serial port initialization (-> sbmips.c).
    Frequency from XTAL1 pin in all UART chips (if they are 8250 compatible, of course) divided by 16-bit value of DLL/DLH register pair (and you can see this frequency at BAUDOUT' pin of your UART by scope) then divided by 16; - thus we get needed baudrate.
    So, to get 115200 baud with 13.5MHz crystal we must load DLL/DLH with value of 7,32421875... But this registers are integer , so we can only load either 7 or 8. - In first case we will have 120536 baud, in second - 105469. Not 115200...

    Btw, my port-extender to WL500G works fine with "canonical" 1.843MHz (look at generator on second photo) - it's only needed to set PC terminal to 16457 baud. Some terminal programs doesn't know how to do this, but mine - know.
    Another way to get 115200 baud with 1.843 quartz - setserial /dev/tts/0 baud_base 115200 divisor 1 spd_cust (but this will work only untill reboot, of course).
    Attached Images Attached Images     
    Last edited by Artie; 13-12-2005 at 19:31.

Similar Threads

  1. Howto add serial port to WL-500gx/gp
    By Josephus in forum WL-500g/WL-500gx Tutorials
    Replies: 50
    Last Post: 05-11-2012, 11:32
  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. 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
  •