Bekijk de volledige versie : WL500gx GPIO shit

31-12-2004, 03:18
[admin@WL500gx root]$ test gpio /dev/gpio/outen
val : 1
[admin@WL500gx root]$ test gpio /dev/gpio/out
val : 0
[admin@WL500gx root]$ test gpio /dev/gpio/in
val : b6
[admin@WL500gx root]$ test gpio /dev/gpio/control
val : 0

09-05-2005, 02:31
So far I can only control Power LED with:

echo 1 > /dev/gpio/out
echo 0 > /dev/gpio/out

Don't know if it alter anything else.

10-05-2005, 09:41
i can do that too :)
But there is only one power led, not 8, and it doesn't have a nice socket :)
I'll try to use the functions from paraport_splink.c file, but so far ... segmentation fault.

16-05-2005, 10:19
Apparently Zolf created a module that does just that...but I think he is no longer intrested in this.


Created a module which gives me access to a memory location.
It is still very basic but i can now access the data register of the parallel port
and turn the connected LED on and off with a kind of /dev/gpio interface.
I used the gpio.c 'example' of the /linux/arch/mips/brcm* directory and some code from parport_splink.c.

03-07-2006, 14:46
Hello all,

This is my first post here, i'm found of wl500gX who is in end of life. My next router will be an wl500gP but i need two gpio line for adding an i2c bus.

Is anyone have tested gpio line on this board ?

I haven't seen gpio line on picture, is there gpio line accessible like on 500gX ?

Thanks in advance.

06-07-2006, 14:08
I reply myself.

I have buy one wl500gp and there is no gpio line directly available.
I will search for in next day.

24-09-2007, 09:01
Hello all, i'm looking for schematic or description where can i find GPIO lines ??
I want connect to router I2C bus etc.. Many thanks for help.


11-04-2008, 11:19

I want to flash the leds.
I know how to switch on (printf "\x00" > /dev/gpio/out) and off (printf "\x02" > /dev/gpio/out) the power led, but i want to switch the others.
Is this possible?

10-04-2009, 00:24
I would like to use GPIO lines for monitoring some signals, and to power an external led.

I have no clue however, how this should be done. I've read something about the diag driver on OpenWRT, but I run Oleg's firmware.

I have a wl500gx (deluxe)

I see something about gpio in /dev/gpio but I don't know how to use it.

I want to monitor three states on each gpio line: on/off/flashing (1 sec interval on-off)


10-04-2009, 06:22
I want to monitor three states on each gpio line: on/off/flashing (1 sec interval on-off)


You can use USB HID device (keyboard) as input/output interface. Input - keys circuit, output - LED line.

13-04-2009, 00:13
All 4 usb ports are in use, and GPIO is free to use. I don't want to add an USB hub, if gpio ports are available.
Maybe not the easiest solution, but the most interesting for me, because i want to know how GPIO works.

13-04-2009, 00:30
well, if you need only reading by router from these GPIOs, I guess it is the easiest. Just read continuously:

cat /dev/gpio/in
then change the state of the pins and see the changes in the value obtained and try to figure out which bit is which.

To write to /dev/gpio/out you should provide first a bit mask in /dev/gpio/outen

14-11-2010, 16:12
Hello all,
... but i need two gpio line for adding an i2c bus.

Ia anybody has found free GPIO lines?

17-03-2011, 05:10
Ia anybody has found free GPIO lines?


Could you find out something about the GPIO lines on the Asus Wl 500? I need it also for I2C purpose.