[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
Printable View
[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
So far I can only control Power LED with:
Don't know if it alter anything else.Code:echo 1 > /dev/gpio/out
echo 0 > /dev/gpio/out
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.
Apparently Zolf created a module that does just that...but I think he is no longer intrested in this.
Quote:
Update
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.
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.
I reply myself.
I have buy one wl500gp and there is no gpio line directly available.
I will search for in next day.
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.
Ondra
Hi!
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?
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)
Anyone?
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.
well, if you need only reading by router from these GPIOs, I guess it is the easiest. Just read continuously:
then change the state of the pins and see the changes in the value obtained and try to figure out which bit is which.PHP Code:
cat /dev/gpio/in
To write to /dev/gpio/out you should provide first a bit mask in /dev/gpio/outen