RS232: Unterschied zwischen den Versionen

Aus Vu+ WIKI
Wechseln zu: Navigation, Suche
(Zugriff von einem Linux-Client)
 
(9 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 1: Zeile 1:
RS-232 ist ein Standard für eine bei Computern früher weit verbreitete serielle Schnittstelle, die in den frühen 1960ern von einem US-amerikanischen Standardisierungskomitee eingeführt wurde. In heutiger Zeit findet Sie sich noch in Serverhardware, professionellem Netzwerk-Equipment und Embedded-Devices.
+
[[Kategorie:Index]]
 +
 
 +
RS-232 ist ein Standard für eine bei Computern früher weit verbreitete serielle Schnittstelle, die in den frühen 1960ern von einem US-amerikanischen Standardisierungskomitee eingeführt wurde. In heutiger Zeit findet Sie sich noch in Serverhardware, professionellem Netzwerk-Equipment, Industrie-Systemen und Embedded-Devices.
  
 
Ihr Vorteil im Vergleich zu anderen administrativen Diensten (z.B. höhere Netzwerk-Protokolle, Shell-Zugang, Desktop-Systeme oder Web-Interfaces) ist, dass die Implementierung einen sehr viel weniger komplexen Software-Stack voraussetzt und auf dieser Basis systemnahe Dienste angeboten werden können.  
 
Ihr Vorteil im Vergleich zu anderen administrativen Diensten (z.B. höhere Netzwerk-Protokolle, Shell-Zugang, Desktop-Systeme oder Web-Interfaces) ist, dass die Implementierung einen sehr viel weniger komplexen Software-Stack voraussetzt und auf dieser Basis systemnahe Dienste angeboten werden können.  
Zeile 6: Zeile 8:
  
 
=Anwendung=
 
=Anwendung=
 +
Für eine serielle Verbindung müssen beide Seiten (ein PC/Notebook als Client einerseits und die vu+-Box als Server andererseits) identische Parameter verwenden. Diese Verbindungsparameter werden von der vu+-Box gesetzt:
 +
*Baudrate: 115200
 +
*Anzahl Bits: 8
 +
 +
Heutzutage (anno 2015) gibt es kaum noch Computer mit echten seriellen Schnittstellen. Stattdessen können USB-Adapter verwendet werden, welche schon für unter 20€ verkauft werden.
 +
 
==Zugriff von einem Linux-Client==
 
==Zugriff von einem Linux-Client==
 +
Unter Linux können mehrere Programme für die Verbindung verwendet werden:
 +
*screen
 +
*minicom
 +
*...
 +
 +
Im Folgenden ein kurzes Beispiel, was eine [[Vu+ Duo²]] beim Starten auf die serielle Konsole ausgibt. Diese Informationen wurden der Übersichlichkeit wegen abgeschnitten und es werden auch im laufenden Betrieb noch weiterhin Informationen ausgegeben, welche zur Systemanalyse herangezogen werden können.
 +
 +
'ttyUSB0' ist der Name des verwendeten USB-Adapters auf dem Client.
 +
 +
Beispiel:
 
<pre>
 
<pre>
 
# minicom -D /dev/ttyUSB0 -b 115200 -8
 
# minicom -D /dev/ttyUSB0 -b 115200 -8
Zeile 170: Zeile 188:
 
serial8250.0: ttyS2 at MMIO 0x10406b80 (irq = 64, base_baud = 5062500) is a 16550A
 
serial8250.0: ttyS2 at MMIO 0x10406b80 (irq = 64, base_baud = 5062500) is a 16550A
 
loop: module loaded
 
loop: module loaded
ahci strict-ahci.0: can't get clock
 
ahci strict-ahci.0: SSS flag set, parallel bus scan disabled
 
ahci strict-ahci.0: AHCI 0001.0300 32 slots 2 ports 6 Gbps 0x3 impl platform mode
 
ahci strict-ahci.0: flags: ncq sntf stag clo slum part
 
scsi0 : ahci_platform
 
scsi1 : ahci_platform
 
ata1: FORCE: PHY spd limit set to 1.5Gbps
 
ata1: SATA max UDMA/133 mmio [mem 0x10181000-0x10190fff] port 0x100 irq 42
 
ata2: SATA max UDMA/133 mmio [mem 0x10181000-0x10190fff] port 0x180 irq 42
 
brcmstb_nand: NAND controller driver is loaded
 
Found PHY at Address 3
 
bcmgenet: configuring instance #0 for external RGMII
 
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 
ata1: SATA link down (SStatus 0 SControl 310)
 
ehci-brcm ehci-brcm.0: Broadcom STB EHCI
 
ehci-brcm ehci-brcm.0: new USB bus registered, assigned bus number 1
 
ehci-brcm ehci-brcm.0: irq 66, io mem 0x10480300
 
ehci-brcm ehci-brcm.0: USB 0.0 started, EHCI 1.00
 
hub 1-0:1.0: USB hub found
 
hub 1-0:1.0: 1 port detected
 
ehci-brcm ehci-brcm.1: Broadcom STB EHCI
 
ehci-brcm ehci-brcm.1: new USB bus registered, assigned bus number 2
 
ehci-brcm ehci-brcm.1: irq 67, io mem 0x10480500
 
ehci-brcm ehci-brcm.1: USB 0.0 started, EHCI 1.00
 
hub 2-0:1.0: USB hub found
 
hub 2-0:1.0: 1 port detected
 
ehci-brcm ehci-brcm.2: Broadcom STB EHCI
 
ehci-brcm ehci-brcm.2: new USB bus registered, assigned bus number 3
 
ehci-brcm ehci-brcm.2: irq 71, io mem 0x10490300
 
ehci-brcm ehci-brcm.2: USB 0.0 started, EHCI 1.00
 
hub 3-0:1.0: USB hub found
 
hub 3-0:1.0: 1 port detected
 
ehci-brcm ehci-brcm.3: Broadcom STB EHCI
 
ehci-brcm ehci-brcm.3: new USB bus registered, assigned bus number 4
 
ehci-brcm ehci-brcm.3: irq 72, io mem 0x10490500
 
ehci-brcm ehci-brcm.3: USB 0.0 started, EHCI 1.00
 
hub 4-0:1.0: USB hub found
 
hub 4-0:1.0: 1 port detected
 
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 
ohci-brcm ohci-brcm.0: Broadcom STB OHCI
 
ohci-brcm ohci-brcm.0: new USB bus registered, assigned bus number 5
 
ohci-brcm ohci-brcm.0: irq 68, io mem 0x10480400
 
hub 5-0:1.0: USB hub found
 
hub 5-0:1.0: 1 port detected
 
ohci-brcm ohci-brcm.1: Broadcom STB OHCI
 
ohci-brcm ohci-brcm.1: new USB bus registered, assigned bus number 6
 
ohci-brcm ohci-brcm.1: irq 69, io mem 0x10480600
 
ata2: SATA link down (SStatus 0 SControl 300)
 
hub 6-0:1.0: USB hub found
 
hub 6-0:1.0: 1 port detected
 
ohci-brcm ohci-brcm.2: Broadcom STB OHCI
 
ohci-brcm ohci-brcm.2: new USB bus registered, assigned bus number 7
 
ohci-brcm ohci-brcm.2: irq 73, io mem 0x10490400
 
usb 2-1: new high-speed USB device number 2 using ehci-brcm
 
hub 7-0:1.0: USB hub found
 
hub 7-0:1.0: 1 port detected
 
ohci-brcm ohci-brcm.3: Broadcom STB OHCI
 
ohci-brcm ohci-brcm.3: new USB bus registered, assigned bus number 8
 
ohci-brcm ohci-brcm.3: irq 74, io mem 0x10490600
 
hub 8-0:1.0: USB hub found
 
hub 8-0:1.0: 1 port detected
 
usbcore: registered new interface driver usb-storage
 
mousedev: PS/2 mouse device common for all mice
 
i2c /dev entries driver
 
IR NEC protocol handler initialized
 
IR RC5(x) protocol handler initialized
 
IR RC6 protocol handler initialized
 
IR JVC protocol handler initialized
 
IR Sony protocol handler initialized
 
usb-storage 2-1:1.0: USB Mass Storage device detected
 
scsi2 : usb-storage 2-1:1.0
 
IR RC5 (streamzap) protocol handler initialized
 
IR SANYO protocol handler initialized
 
IR MCE Keyboard/mouse protocol handler initialized
 
gspca_main: v2.14.0 registered
 
sdhci: Secure Digital Host Controller Interface driver
 
sdhci: Copyright(c) Pierre Ossman
 
sdhci-pltfm: SDHCI platform and OF driver helper
 
hidraw: raw HID events driver (C) Jiri Kosina
 
usbcore: registered new interface driver usbhid
 
usbhid: USB HID core driver
 
TCP: cubic registered
 
NET: Registered protocol family 17
 
Key type dns_resolver registered
 
PM: CP0 COUNT/COMPARE frequency does not depend on divisor
 
EBI CS0: setting up NAND flash (primary)
 
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
 
NAND device: 1024MiB, SLC, page size: 2048, OOB size: 64
 
brcmnand brcmnand.0: 1024MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, Hamming ECC
 
Bad block table found at page 524224, version 0x01
 
Bad block table found at page 524160, version 0x01
 
nand_read_bbt: bad block at 0x000004500000
 
nand_read_bbt: bad block at 0x000010ec0000
 
nand_read_bbt: bad block at 0x0000150e0000
 
nand_read_bbt: bad block at 0x000023a40000
 
usb 4-1: new high-speed USB device number 2 using ehci-brcm
 
nand_read_bbt: bad block at 0x00002db60000
 
nand_read_bbt: bad block at 0x00003e880000
 
nand_read_bbt: bad block at 0x00003ec40000
 
Creating 4 MTD partitions on "brcmnand.0":
 
0x000002700000-0x000040000000 : "rootfs"
 
0x000002700000-0x000040000000 : "rootfs(redundant)"
 
0x000000200000-0x000000900000 : "kernel"
 
0x000000900000-0x000000b00000 : "mac"
 
UBI: attaching mtd0 to ubi0
 
random: nonblocking pool is initialized
 
scsi 2:0:0:0: Direct-Access    Maxtor  OneTouch III    0335 PQ: 0 ANSI: 4
 
sd 2:0:0:0: Attached scsi generic sg0 type 0
 
sd 2:0:0:0: [sda] 398297088 512-byte logical blocks: (203 GB/189 GiB)
 
sd 2:0:0:0: [sda] Write Protect is off
 
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 
sda: sda1
 
sd 2:0:0:0: [sda] Attached SCSI disk
 
UBI: scanning is finished
 
UBI: attached mtd0 (name "rootfs", size 985 MiB) to ubi0
 
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
 
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
 
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
 
UBI: good PEBs: 7869, bad PEBs: 11, corrupted PEBs: 0
 
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
 
UBI: max/mean erase counter: 13/6, WL threshold: 4096, image sequence number: 581942588
 
UBI: available PEBs: 0, total reserved PEBs: 7869, PEBs reserved for bad PEB handling: 149
 
UBI: background thread "ubi_bgt0d" started, PID 54
 
ALSA device list:
 
  No soundcards found.
 
 
UBIFS: parse sync
 
UBIFS: background thread "ubifs_bgt0_0" started, PID 57
 
UBIFS: recovery needed
 
UBIFS: recovery completed
 
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
 
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
 
UBIFS: FS size: 978350080 bytes (933 MiB, 7705 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
 
UBIFS: reserved for root: 0 bytes (0 KiB)
 
UBIFS: media format: w4/r0 (latest is w4/r0), UUID 69419C1B-3DAB-4CE1-B47C-9345C43775E1, small LPT model
 
VFS: Mounted root (ubifs filesystem) on device 0:12.
 
devtmpfs: mounted
 
Freeing unused kernel memory: 260K (8076f000 - 807b0000)
 
INIT: version 2.88 booting
 
NET: Registered protocol family 10
 
procmk_init
 
dvb_bcm7424: module license 'Proprietary' taints kernel.
 
Disabling lock debugging due to kernel taint
 
DVB: registering new adapter (vuduo2)
 
Booted !
 
Booted !
 
bcm7424: hotplug_callback():
 
Hotplug - status.connected 1:0:0
 
bcm7424: hotplug_callback():
 
Hotplug - connecting HDMI to display 0xe
 
[GPIO]Default
 
[GP]:brcm_pwm_init
 
 
bcm7424: hotplug_callback():
 
Hotplug - status.connected 1:1:2
 
brcm_demux_init: $Id: bcm_demux.c,v 0.7 $
 
[MPVR]: >> misc_pvr_init
 
[VID]: 6bcm7335_video_init
 
[AUD]: 6bcm7335_audio_init
 
BRCM brcm_dvb0: DVB: registering adapter 0 frontend 0 (Vuplus FE)...
 
BRCM brcm_dvb0: DVB: registering adapter 0 frontend 0 (Vuplus FE)...
 
bcm7424: bcm7335_frontend_init(): vtuner1 : 3
 
BKNI_P_GetTrackAllocEntry_resize: resizing from 5376->8704
 
BKNI_Malloc(linuxkernel) top users:
 
    blocks,  bytes, filename:line
 
      1024,  176128, portinginterface/hsm/src/common/bhsm.c:500
 
      423,  95940, BSEAV/lib/utils/balloc.c:31
 
      399,  28728, magnum/commonutils/mrc/src/bmrc_monitor.c:666
 
  KSEG1 : 0x80000000
 
lcr 0x3
 
irq : 63 ret : 0
 
input: dreambox advanced remote control (native) as /devices/virtual/input/input0
 
Resistor Div: 0x0
 
Duo2 LCD initialized 0
 
[LCD]: registered
 
[CI]: registered ci0 250
 
[CI]: registered ci1 249
 
[DFP]: registered dbox fp
 
[DFP]: Scart 9597 is found 0
 
 
[SC]: registered sci0
 
[SC]: registered sci1
 
system_time_set wakeup mode get
 
system_time_set wakeup mode get 0xc4
 
FP Update Driver Loaded
 
VFDController Update Driver Loaded
 
BKNI_P_GetTrackAllocEntry_resize: resizing from 8704->14080
 
BKNI_Malloc(linuxkernel) top users:
 
    blocks,  bytes, filename:line
 
      1771,  377300, BSEAV/lib/utils/balloc.c:31
 
      1024,  176128, portinginterface/hsm/src/common/bhsm.c:500
 
fpga update driver loaded
 
Startting the hotplug events dispatcher
 
udevd (119): /proc/119/oom_adj is deprecated, please use /proc/119/oom_score_adj instead.
 
Synthesizing the initial hotplug events
 
Waiting for /dev to be fully populated
 
udevd-event[230]: node_symlink: rename(/dev/fb.udev-tmp, /dev/fb) failed: Is a directory
 
 
rtusb init rt2870 --->
 
 
 
=== pAd = e25e4000, size = 511128 ===
 
 
<-- RTMPAllocTxRxRingMemory, Status=0
 
<-- RTMPAllocAdapterBlock, Status=0
 
usbcore: registered new interface driver rt2870
 
done
 
Displaying bootlogo_wait.
 
[SHOWIFRAME] display logo: /usr/share/vuplus-bootlogo/bootlogo_wait.mvi
 
[VID]: VIDEO_SET_STREAMTYPE 0
 
[VID]: VIDEO_SELECT_SOURCE 1  0
 
[VID]: VIDEO_PLAY 1  2 0
 
[VID]: VIDEO_CONTINUE 1  1
 
[VID]: VIDEO_CLEAR_BUFFER 1  1 0
 
[VID]: VIDEO_STOP 0  1
 
[VID]: VIDEO_SELECT_SOURCE 0  0
 
[DeviceManager] mounting /dev/sda1 at /media/hdd filesystem: ext4 UUID: ad28ba3b-ab74-42e6-99be-10695406e57d
 
EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
 
EXT4-fs (sda1): recovery complete
 
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
 
Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
 
udhcpc (v1.19.4) started
 
bcmgenet bcmgenet.0 eth0: link up, 1000 Mbps, full duplex
 
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 
Sending discover...
 
Sending select for 172.16.13.20...
 
Lease of 172.16.13.20 obtained, lease time 7200
 
/etc/udhcpc.d/50default: Adding DNS 172.16.13.1
 
done.
 
Unknown HZ value! (91) Assume 100.
 
INIT: Entering runlevel: 3il
 
Starting system message bus: dbus.
 
Starting Dropbear SSH server: dropbear.
 
Starting automounter: done.
 
starting Busybox Periodic Command Scheduler: crond... done.
 
crond[892]: crond: crond (busybox 1.19.4) started, log level 8
 
Starting internet superserver: inetd.
 
Starting syslogd/klogd: done
 
[ ok ]rting Avahi mDNS/DNS-SD Daemon: avahi-daemon
 
[SHOWIFRAME] display logo: /usr/share/vuplus-bootlogo/backdrop.mvi
 
[VID]: VIDEO_SET_STREAMTYPE 0
 
[VID]: VIDEO_SELECT_SOURCE 1  0
 
[VID]: VIDEO_PLAY 1  2 0
 
[VID]: VIDEO_CONTINUE 1  1
 
[VID]: VIDEO_CLEAR_BUFFER 1  1 0
 
[VID]: VIDEO_STOP 0  1
 
[VID]: VIDEO_SELECT_SOURCE 0  0
 
setenv('prefix', '/usr', 0)
 
setenv('exec_prefix', '/usr', 0)
 
setenv('bindir', '/usr/bin', 0)
 
setenv('sbindir', '/usr/sbin', 0)
 
setenv('libexecdir', '/usr/libexec', 0)
 
setenv('datarootdir', '${prefix}/share', 0)
 
setenv('datadir', '/usr/share', 0)
 
setenv('sysconfdir', '/etc', 0)
 
setenv('sharedstatedir', '/com', 0)
 
setenv('localstatedir', '/var', 0)
 
setenv('libdir', '/usr/lib', 0)
 
setenv('localedir', '${datarootdir}/locale', 0)
 
setenv('prefix', '/usr', 1)
 
setenv('exec_prefix', '/usr', 1)
 
setenv('bindir', '/usr/bin', 1)
 
setenv('sbindir', '/usr/sbin', 1)
 
setenv('libexecdir', '/usr/libexec', 1)
 
setenv('datarootdir', '/usr/share', 1)
 
setenv('datadir', '/usr/share', 1)
 
setenv('sysconfdir', '/etc', 1)
 
setenv('sharedstatedir', '/com', 1)
 
setenv('localstatedir', '/var', 1)
 
setenv('libdir', '/usr/lib', 1)
 
setenv('localedir', '/usr/share/locale', 1)
 
resolve: resolve ${datadir}/enigma2/encoding.conf
 
resolve: -> /usr/share/enigma2/encoding.conf
 
resolve: resolve ${libdir}/enigma2/python
 
resolve: -> /usr/lib/enigma2/python
 
PYTHONPATH: /usr/lib/enigma2/python
 
+ (1) Background File Eraser
 
+ (5) Tuxtxt
 
+ (8) graphics acceleration manager
 
+ (9) GFBDC
 
21600k video mem
 
SetMode : wanted: 1280x720x32, got 1920x1440x32
 
- double buffering available!
 
10800kB available for acceleration surfaces.
 
resolution: 1280 x 720 x 32 (stride: 7680)
 
+ (9) gLCDDC
 
found OLED display!
 
lcd buffer 0x7360c8 4480 bytes, stride 140
 
+ (9) Font Render Class
 
[FONT] initializing lib...
 
[FONT] loading fonts...
 
[FONT] Intializing font cache, using max. 4MB...
 
+ (10) gRC
 
RC thread c[CI]: CI interface initialised
 
 
reated successfully
 
+ (15) eWindowStyleManager
 
+ (20) DVB-CI UI
 
+ (20) Hdmi CEC driver
 
+ (20) UHF Modulator
 
couldnt open /dev/rfmod0!!!!
 
+ (20) RC Input layer
 
+ (20) misc options
 
+ (20) AVSwitch Driver
 
+ (21) input device driver
 
Input device "dreambox advanced remote control (native)" is not a keyboard.
 
Found 1 input devices!
 
+ (21) Console RC Driver
 
failed to open /dev/tty0
 
+ (30) eActionMap
 
+ (35) CI Slots
 
scanning for common interfaces..
 
CI Slot 0 setSource(0)
 
CI Slot 1 setSource(0)
 
eDVBCIInterfaces->setInputSource(0, 0)
 
eDVBCIInterfaces->setInputSource(1, 1)
 
eDVBCIInterfaces->setInputSource(2, 2)
 
eDVBCIInterfaces->setInputSource(3, 3)
 
done, found 2 common interface slots
 
+ (40) eServiceCenter
 
settings instance.
 
+ (41) eServiceFactoryM2TS
 
+ (41) eServiceFactoryMP3
 
+ (41) eServiceFactoryFS
 
+ (41) eServiceFactoryDVB
 
reached rl 70
 
resolve: resolve ${sysconfdir}/enigma2/lamedb
 
resolve: -> /etc/enigma2/lamedb
 
---- opening lame channel db
 
reading services (version 4)
 
loaded 1622 services
 
scanning for frontends..
 
opening frontend 0
 
detected satellite frontend
 
FE_ENABLE_HIGH_LNB_VOLTAGE: Operation not supported
 
close frontend 0
 
FE_ENABLE_HIGH_LNB_VOLTAGE: Operation not supported
 
opening frontend 1
 
detected satellite frontend
 
FE_ENABLE_HIGH_LNB_VOLTAGE: Operation not supported
 
close frontend 1
 
FE_ENABLE_HIGH_LNB_VOLTAGE: Operation not supported
 
found 1 adapter, 2 frontends(2 sim) and 9 demux, boxtype 4
 
RTC not ready... wait for transponder time
 
[EPGC] Initialized EPGCache (wait for setCacheFile call now)
 
resolve: resolve ${datadir}/enigma2/skin_default/pal.png
 
resolve: -> /usr/share/enigma2/skin_default/pal.png
 
Loading spinners...
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait1.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait1.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait2.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait2.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait3.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait3.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait4.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait4.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait5.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait5.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait6.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait6.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait7.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait7.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait8.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait8.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait9.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait9.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait10.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait10.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait11.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait11.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait12.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait12.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait13.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait13.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait14.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait14.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait15.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait15.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait16.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait16.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait17.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait17.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait18.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait18.png
 
resolve: resolve ${datadir}/enigma2/skin_default/spinner/wait19.png
 
resolve: -> /usr/share/enigma2/skin_default/spinner/wait19.png
 
found 18 spinner!
 
 
executing main
 
setIoPrio best-effort level 3 ok
 
resolve: resolve ${libdir}/enigma2/python/mytest.py
 
resolve: -> /usr/lib/enigma2/python/mytest.py
 
resolve: resolve ${sysconfdir}/
 
resolve: -> /etc/
 
resolve: resolve ${sysconfdir}/
 
resolve: -> /etc/
 
resolve: resolve ${datadir}/fonts/
 
resolve: -> /usr/share/fonts/
 
resolve: resolve ${sysconfdir}/enigma2/
 
resolve: -> /etc/enigma2/
 
resolve: resolve ${libdir}/enigma2/python/Plugins/
 
resolve: -> /usr/lib/enigma2/python/Plugins/
 
resolve: resolve ${datadir}/enigma2/po/
 
resolve: -> /usr/share/enigma2/po/
 
resolve: resolve ${datadir}/enigma2/
 
resolve: -> /usr/share/enigma2/
 
resolve: resolve ${datadir}/enigma2/
 
resolve: -> /usr/share/enigma2/
 
resolve: resolve ${sysconfdir}/enigma2/playlist/
 
resolve: -> /etc/enigma2/playlist/
 
resolve: resolve ${datadir}/enigma2/defaults/
 
resolve: -> /usr/share/enigma2/defaults/
 
resolve: resolve ${datadir}/enigma2/dealer
 
resolve: -> /usr/share/enigma2/dealer
 
resolve: resolve ${datadir}/meta
 
resolve: -> /usr/share/meta
 
resolve: resolve ${datadir}/enigma2/defaults/
 
resolve: -> /usr/share/enigma2/defaults/
 
enigma2 is the main pvr application... adjust oom score!
 
enumerating block devices...
 
found block device 'sda': ok, removable=False, cdrom=False, partitions=['sda1']
 
new Harddisk sda -> /dev/sda -> /dev/sda
 
found block device 'sda1': error querying properties
 
found block device 'loop0': blacklisted
 
found block device 'loop1': blacklisted
 
found block device 'loop2': blacklisted
 
found block device 'loop3': blacklisted
 
found block device 'loop4': blacklisted
 
found block device 'loop5': blacklisted
 
found block device 'loop6': blacklisted
 
found block device 'loop7':UBI error: ubi_open_volume: cannot open device 0, volume 0, error -16
 
blacklisted
 
found block device 'mtdblock0': blacklisted
 
found block device 'mtdblock1': blacklisted
 
found block device 'mtdblock2': blacklisted
 
found block device 'mtdblock3': blacklisted
 
found block device 'mtdblock4': blacklisted
 
not loading user skin:  [Errno 2] No such file or directory: '/etc/enigma2/skin_user.xml'
 
[VTi] loading vfd skin: vfd_skin/skin_vfd_vti_I.xml
 
[VTi] not loading user defined colors for skin
 
[VTi] not loading user defined header file for skin
 
menu_mainmenu
 
Reading satellites.xml
 
 
[...]
 
[...]
 
</pre>
 
</pre>
 +
 +
=Links=
 +
*[http://www.cyberciti.biz/faq/unix-linux-apple-osx-bsd-screen-set-baud-rate/ Screen Command: Set Baud Rate (Terminal Communication)]
 +
*[https://wiki.archlinux.org/index.php/Working_with_the_serial_console Working with the serial console]

Aktuelle Version vom 22. Juli 2015, 21:19 Uhr


RS-232 ist ein Standard für eine bei Computern früher weit verbreitete serielle Schnittstelle, die in den frühen 1960ern von einem US-amerikanischen Standardisierungskomitee eingeführt wurde. In heutiger Zeit findet Sie sich noch in Serverhardware, professionellem Netzwerk-Equipment, Industrie-Systemen und Embedded-Devices.

Ihr Vorteil im Vergleich zu anderen administrativen Diensten (z.B. höhere Netzwerk-Protokolle, Shell-Zugang, Desktop-Systeme oder Web-Interfaces) ist, dass die Implementierung einen sehr viel weniger komplexen Software-Stack voraussetzt und auf dieser Basis systemnahe Dienste angeboten werden können.

In der Folge kann ein Administrator beispielsweise in sehr frühen Bootphasen auf das System zugreifen, lange bevor die höheren Software-Schichten initialisiert werden. Auf diesem Wege können oft auch dann noch Systeme administriert werden, die auf anderem Wege nicht mehr oder noch nicht zugreifbar sind (z.B. bei Boot-Problemen).

Anwendung

Für eine serielle Verbindung müssen beide Seiten (ein PC/Notebook als Client einerseits und die vu+-Box als Server andererseits) identische Parameter verwenden. Diese Verbindungsparameter werden von der vu+-Box gesetzt:

  • Baudrate: 115200
  • Anzahl Bits: 8

Heutzutage (anno 2015) gibt es kaum noch Computer mit echten seriellen Schnittstellen. Stattdessen können USB-Adapter verwendet werden, welche schon für unter 20€ verkauft werden.

Zugriff von einem Linux-Client

Unter Linux können mehrere Programme für die Verbindung verwendet werden:

  • screen
  • minicom
  • ...

Im Folgenden ein kurzes Beispiel, was eine Vu+ Duo² beim Starten auf die serielle Konsole ausgibt. Diese Informationen wurden der Übersichlichkeit wegen abgeschnitten und es werden auch im laufenden Betrieb noch weiterhin Informationen ausgegeben, welche zur Systemanalyse herangezogen werden können.

'ttyUSB0' ist der Name des verwendeten USB-Adapters auf dem Client.

Beispiel:

# minicom -D /dev/ttyUSB0 -b 115200 -8

Welcome to minicom 2.7

OPTIONS: I18n 
Port /dev/ttyUSB0, 18:50:43

Press CTRL-A Z for help on special keys


BCM74250012

M0
M1
01CZL2=1
LLMB=0000C000
BP=02000000
L2Cfg=1E7AD627
L2Buf=77707711
BrCfg=F01C200E
BrMod=02800801
BrZp0=44000000
BrZp1=00002000
#@

CFE ver 2.333.20130710, Endian Mode: Little
Build Date: Mon Jul 15 19:29:18     2013 Vuplus Team
Copyright (C) Broadcom Corporation.

CPU speed:            1305MHz
DDR Frequency:        800 MHz
DDR Mode:             DDR3
Total memory(MEMC 0): 1024MB
MEMC 0 DDR Width:     32
Total memory(MEMC 1): 1024MB
MEMC 1 DDR Width:     32
Boot Device:          NAND
Total flash:          512MB
RTS VERSION:          20120919184252_7425_single_encode
ETH0_PHY:             RGMII
ETH0_MDIO_MODE:       1
ETH0_SPEED:           1000
ETH0_PHYADDR:         probe

SCB CLOCK = 277MHz
Initializing USB.
USB: Locating Class 09 Vendor 0000 Product 0000: USB Root Hub
USB: Locating Class 09 Vendor 0000 Product 0000: USB Root Hub
USB: Locating Class 09 Vendor 0000 Product 0000: USB Root Hub
USB: Locating Class 09 Vendor 0000 Product 0000: USB Root Hub

CFE initialized.
USB: New device connected to bus 3 hub 1 port 1
USB: Resetting device on bus 3 hub 1 port 1
USB: Locating Class FF Vendor 148F Product 5372: Driver not found.
waiting for usb...done
checking usb
No Priority Usb
checking front key
Checking usbdisk0:/vuplus/duo2/ignore.update......NO
Checking usbdisk0:/vuplus/duo2/force.update......NO
Checking usbdisk0:/vuplus/duo2/cfe_cfe_auto.bin......NO
Checking usbdisk0:/vuplus/duo2/root_cfe_auto.bin......NO
Checking usbdisk0:/vuplus/duo2/splash_cfe_auto.bin......NO
Checking usbdisk0:/vuplus/duo2/kernel_cfe_auto.bin......NO
Starting splash screen.
Found splash image - Width = 720 Height = 480
Non Interlaced Replace list 043f8100 0c800000Interlaced Replace list 043f86a0 0c8005a0
Loader:elf Filesys:raw Dev:flash0.kernel File: Options:ubiroot rootflags=sync bmem=192M@64M bmem=458M@512M memc1=590M
Loading: 0x80001000/7994368 0x807a0c00/210848 Entry address is 0x805e2650
Starting program at 0x805e2650

Linux version 3.13.5 (plnick@build-plnick) (gcc version 4.6.4 20120303 (prerelease) (GCC) ) #1 SMP Wed Nov 26 18:52:4
Fetching vars from bootloader... found 17 vars.
Options: moca=0 sata=1 pcie=0 usb=1
Using 1024 MB + 1024 MB RAM (from CFE)
bootconsole [early0] enabled
CPU0 revision is: 00025a11 (Brcm4380 Broadcom BMIPS5000)
FPU revision is: 00130001
Determined physical RAM map:
 memory: 10000000 @ 00000000 (usable)
 memory: 30000000 @ 20000000 (usable)
 memory: 31400000 @ 90000000 (usable)
bmem: adding 192 MB RESERVED region at 64 MB (0x0c000000@0x04000000)
bmem: adding 220 MB RESERVED region at 512 MB (0x0dc00000@0x20000000)
Zone ranges:
  Normal   [mem 0x00000000-0x4fffffff]
  HighMem  [mem 0x50000000-0xc13fffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x0fffffff]
  node   0: [mem 0x20000000-0x4fffffff]
  node   0: [mem 0x90000000-0xc13fffff]
Primary instruction cache 32kB, physically tagged, 4-way, linesize 64 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
MIPS secondary cache 256kB, 8-way, linesize 128 bytes.
PERCPU: Embedded 7 pages/cpu @82012000 s7168 r8192 d13312 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 461824
Kernel command line: libata.force=1:1.5Gbps bmem=192M@64M bmem=220M@512M memc1=788M ubi.mtd=0 root=ubi0:rootfs rootfc
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1408272K/1855488K available (6068K kernel code, 319K rwdata, 1208K rodata, 260K init, 144K bss, 447216K rese)
Hierarchical RCU implementation.
NR_IRQS:160
Measuring MIPS counter frequency...
Detected MIPS clock frequency: 1305 MHz (163.126 MHz counter)
Calibrating delay loop... 864.25 BogoMIPS (lpj=432128)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
SMP: Booting CPU1...
CPU1 revision is: 00025a11 (Brcm4380 Broadcom BMIPS5000)
FPU revision is: 00130001
Primary instruction cache 32kB, physically tagged, 4-way, linesize 64 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
MIPS secondary cache 256kB, 8-way, linesize 128 bytes.
SMP: CPU1 is running
Brought up 2 CPUs
devtmpfs: initialized
bmem: adding extra 236 MB RESERVED region at 3092 MB (0x0ec00000@0xc1400000)
NET: Registered protocol family 16
USB0: power enable is active high; overcurrent is active low
USB1: power enable is active high; overcurrent is active low
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
Switched to clocksource wktmr
FS-Cache: Loaded
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
bounce pool size: 64 pages
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 1174
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] enabledMMIO 0x10406b00 (irq = 62, base_baud = 5062500) is a 16550A
console [ttyS0] enabled
bootconsole [early0] disabled
bootconsole [early0] disabled
serial8250.0: ttyS1 at MMIO 0x10406b40 (irq = 63, base_baud = 5062500) is a 16550A
serial8250.0: ttyS2 at MMIO 0x10406b80 (irq = 64, base_baud = 5062500) is a 16550A
loop: module loaded
[...]

Links