PDA

Bekijk de volledige versie : WL500gx GPIO shit



Antiloop
31-12-2004, 02: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

pekr
09-05-2005, 01: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.

KillerOPS
10-05-2005, 08: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.

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


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.

gzalou
03-07-2006, 13: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.

gzalou
06-07-2006, 13:08
I reply myself.

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

ok1cdj
24-09-2007, 08: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.

Ondra

Bocsek
11-04-2008, 10:19
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?

mistraller
09-04-2009, 23: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)

Anyone?

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

Anyone?

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

mistraller
12-04-2009, 23: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.

al37919
12-04-2009, 23: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

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

Ia anybody has found free GPIO lines?

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

Hey!

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