Tuesday, March 10, 2009

Change serial port speed on OpenWrt Kamikaze 8.09 with stty

The forums were full of descriptions how to change the console speed, but the basic busybox-package on kamikaze doesn't have the stty program. It can be found on the coreutils-package, but some platforms don't have enought space to install the whole package.

So here's the download link to the stty-program for Kamikaze 8.09 on mips/atheros/fonera platform. Hopefully it helps someone.

Ps. The reason why the default 9600bps didn't work for me, is that I wanted to test my Holux GPSlim 240 bluetooth GPS dongle through the serial port. Even though this GPS has only a usb-port for charging, it's actually not usb at all. It's aserial line working in 38400bps. Works with arduino also. Pinout can be found from the manual.

5 comments:

  1. thanks for the link, I was searching for it.
    will complain on openwrt bugs for inclusion of the stty in the busybox setup

    ReplyDelete
  2. I tried to run it and got a stty: line 1: syntax error: "(" unexpected

    ReplyDelete
  3. stty is also in the coreutils package of openwrt. just look up that package (on the processor type and openwrt version you need), download the ipkg of coreutils and extract stty, copy it to /usr/bin and give it chmod 755...

    thats all.

    ReplyDelete
  4. SUPER!
    This works on 2.6.26.2 kernel on the fon2.0n :)

    ReplyDelete
  5. I get the same error as William:
    stty: line 1: syntax error: "(" unexpected

    I really need to configure speed on serial port. Can someone provide a more detailed procedure how to get this running on Kamikaze?

    By the way - what's the default port speed on kamikaze for serial? How can I check that?

    ReplyDelete