TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
LAN-LEDs über GPIO-Signale ausgeben

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/2486
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
hne



Joined: 11 Jul 2008
Posts: 210
Location: Hannover

PostPosted: 19.02.2010, 14:19    Post subject: LAN-LEDs über GPIO-Signale ausgeben Reply with quote

Mit einem kleinen C-Programm kann man das mii-Interface abfragen und somit den Link-Status erkennen. Wenn man dann noch unter /proc/net/dev den Traffic überwacht, kann man damit recht einfach den Zustand des LAN ermitteln, und über den ssvpio-Treiber dann auf LEDs anzeigen. Um das System nicht zu sehr zu belasten, erfolgt die Abfrage nur alle Sekunde. Der Port und die Bits sind per Parameter frei konfigurierbar.

Das Programm kann als TAR-Achiv (Min-Linux) oder als fertiges Debian-Paket (Max-Linux) installiert werden. Sourcecode und README sind im TAR-Archiv enthalten.

Downloads:
lan2pio_1.1.tgz
lan2pio_1.1-1_esom2586.deb

PS: Das Programm ist für DNP/2486 und eSOM/2586 identisch.

_________________
Henry Nestler
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/2486 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015