AP200: Unterschied zwischen den Versionen
Aus Opennet
(→Information) |
|||
Zeile 101: | Zeile 101: | ||
|} | |} | ||
− | == | + | == Messen == |
prüfen ob der treiber geladen ist | prüfen ob der treiber geladen ist | ||
Zeile 112: | Zeile 112: | ||
</pre> | </pre> | ||
− | Temperatur | + | === Temperatur === |
<pre style="background: black; color: lightgreen; width: 640px; overflow: auto; "> | <pre style="background: black; color: lightgreen; width: 640px; overflow: auto; "> | ||
root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/temp1_input | root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/temp1_input | ||
Zeile 120: | Zeile 120: | ||
WERT / 1000 in °C (37000/1000 => 37,0 °C) | WERT / 1000 in °C (37000/1000 => 37,0 °C) | ||
− | Versorgungsspannung | + | === Versorgungsspannung === |
<pre style="background: black; color: lightgreen; width: 640px; overflow: auto; "> | <pre style="background: black; color: lightgreen; width: 640px; overflow: auto; "> | ||
root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/in1_input | root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/in1_input | ||
Zeile 129: | Zeile 129: | ||
− | + | == Nützliches == | |
<pre style="background: black; color: lightgreen; width: 640px; overflow: auto; "> | <pre style="background: black; color: lightgreen; width: 640px; overflow: auto; "> |
Version vom 12. Februar 2010, 21:09 Uhr
Inhaltsverzeichnis |
Information
bootloader
+Ethernet eth0: MAC address 00:d0:12:01:39:09 IP: 192.168.115.254/255.255.255.0, Gateway: 192.168.115.200 Default server: 192.168.115.113, DNS server IP: 192.168.115.200 RedBoot(tm) bootstrap and debug environment [ROM] Red Hat certified release, version 1.92p1 - built 16:53:03, Mar 26 2004 Platform: GW2342 Development Platform (XScale) Copyright (C) 2000, 2001, 2002, Red Hat, Inc. RAM: 0x00000000-0x04000000, 0x0001f880-0x03fd1000 available FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each. RedBoot>
fconfig
RedBoot> fconfig -l Run script at boot: false Use BOOTP for network configuration: false Gateway IP address: 192.168.115.200 Local IP address: 192.168.115.254 Local IP address mask: 255.255.255.0 Default server IP address: 192.168.115.113 Console baud rate: 115200 DNS server IP address: 192.168.115.200 GDB connection port: 9000 Force console for special debug messages: false Network debug at boot time: false Default network device: npe_eth0 RedBoot>
fis
RedBoot> fis list Name FLASH addr Mem addr Length Entry point RedBoot 0x50000000 0x50000000 0x00040000 0x00000000 RedBoot config 0x50FC0000 0x50FC0000 0x00001000 0x00000000 FIS directory 0x50FE0000 0x50FE0000 0x00020000 0x00000000 RedBoot>
i2c
hm, handbuch lügt wohl.
root@OpenWrt:/# i2cdetect 0 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0. I will probe address range 0x03-0x77. Continue? [Y/n] Y 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: 50 UU UU UU UU -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@OpenWrt:/#
Addr | IC | Funktion |
---|---|---|
0x28 | ad7418 | Temp. / Versorgung |
0x50 | 24C08 | EEPROM schreiben ?!? |
0x51 | 24C08 | EEPROM lesen ?!? |
0x52 | ??? | weiß noch nicht |
0x53 | ??? | weiß noch nicht |
0x54 | ??? | weiß noch nicht |
0x68 | ds1672 | Uhr |
Messen
prüfen ob der treiber geladen ist
root@OpenWrt:/# dmesg | grep -i ad7418 ad7418 0-0028: ad7418 chip found ad7418 0-0028: configuring for mode 1 root@OpenWrt:/#
Temperatur
root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/temp1_input 37000 root@OpenWrt:/#
WERT / 1000 in °C (37000/1000 => 37,0 °C)
Versorgungsspannung
root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/in1_input 583 root@OpenWrt:/#
(WERT / 1024) * 2,5(V max. Messbereich) * 10(Vorteiler) in V (583/1024)*2,5*10 => 14,23V
Nützliches
root@OpenWrt:~# echo heartbeat > /sys/devices/platform/leds-gpio/leds/user/trigger root@OpenWrt:~#
jetzt blinkt die LED "niedlich" und man weiß das es dem teilchen gut geht.