Plugwise Stretch 2.0 – Verbinden via UART TTL
Hier volgt een kleine handleiding om de Plugwise Stretch 2.0 aan te sluiten via een UART TTL seriële verbinding.
Wat heb je nodig?
1) UART > USB stick.
2) PuTTy telnet software.
Pinout:
Volgens de handleiding van Omnima MiniEMBWiFi is dit de UART pinout op de Stretch 2.0Â (J12)
Volgens de handleiding van Omnima EMP HMP is dit de UART pinout op de Stretch 2.0 (J12):Pin | Omschrijving |
---|---|
2 | +5v |
4 | TxD |
6 | GND |
8 | RxD |
Failsave mode:
In de Openwrt software zit standaard een “Failsave” modus, deze modus is te vergelijken met de veilige modus van Windows, je kan wat diagnostische programma’s draaien etc, echter heeft plugwise deze modus eruit gehaald…hier is nog onderzoek nodig…to be continued!
Bootloader @115200 baud.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
U-Boot 1.1.3 (Aug 14 2012 - 15:05:21) Board: Omnima HPM DRAM: 64 MB relocate_code Pointer at: 83fb0000 ************** Init GPIO Pin Start ************** ************** Init GPIO Pin Done ************** spi_wait_nsec: 30 spi device id: c2 20 18 c2 20 (2018c220) find flash: MX25L12805D raspi_read: from:30000 len:1000 raspi_read: from:30000 len:1000 ============================================ Ralink UBoot Version: 3.5.3.0 -------------------------------------------- ASIC 3883_MP (MAC to GigaPHY Mode) DRAM_CONF_FROM: Boot-Strapping DRAM_TYPE: DDR2 DRAM_SIZE: 512 Mbits DRAM_WIDTH: 16 bits DRAM_TOTAL_WIDTH: 16 bits TOTAL_MEMORY_SIZE: 64 MBytes Flash component: SPI Flash Date:Aug 14 2012 Time:15:05:21 ============================================ icache: sets:512, ways:4, linesz:32 ,total:65536 dcache: sets:256, ways:4, linesz:32 ,total:32768 ##### The CPU freq = 500 MHZ #### estimate memory size =64 Mbytes Please choose the operation: 0: Load ucos code to SDRAM via TFTP Client. 1: Load system code to SDRAM via TFTP. 2: Load system code then write to Flash via TFTP. 3: Boot system code via Flash (default). 4: Entr boot command line interface. 7: Load Boot Loader code then write to Flash via Serial. 9: Load Boot Loader code then write to Flash via TFTP. 3: System Boot system code via Flash. ## Booting image at bc050000 ... raspi_read: from:50000 len:40 Magic number at 0xBC050000 Image Name: MIPS OpenWrt Linux-3.3.7 Created: 2013-02-13 16:59:10 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 837371 Bytes = 817.7 kB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:50040 len:cc6fb ............. Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80000000) ... ## Giving linux memsize in MB, 64 Starting kernel ... [ 0.000000] Linux version 3.3.7 (theo@tvrU10) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #48 Wed Feb 13 17:59:00 CET 2013 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 0001974c (MIPS 74Kc) [ 0.000000] Ralink RT3883 ver:1 eco:5 running at 500.00 MHz [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone PFN ranges: [ 0.000000] Normal 0x00000000 -> 0x00004000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] Early memory PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00004000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: board=OMNI-EMB-HPM console=ttyS1,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(config)ro,64k(factory)ro,1024k(kernel),15040k(rootfs),16064k@0x50000(firmware) rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 62428k/65536k available (1918k kernel code, 3108k reserved, 340k data, 164k init, 0k highmem) [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:140 [ 0.000000] console [ttyS1] enabled, bootconsole disabled [ 0.000000] console [ttyS1] enabled, bootconsole disabled [ 0.010000] Calibrating delay loop... 249.44 BogoMIPS (lpj=1247232) [ 0.080000] pid_max: default: 32768 minimum: 301 [ 0.080000] Mount-cache hash table entries: 512 [ 0.090000] NET: Registered protocol family 16 [ 0.090000] MIPS: machine is Omnima EMB HPM [ 0.100000] gpiochip_add: registered GPIOs 0 to 23 on device: RT3883-GPIO0 [ 0.100000] gpiochip_add: registered GPIOs 24 to 39 on device: RT3883-GPIO1 [ 0.110000] gpiochip_add: registered GPIOs 40 to 71 on device: RT3883-GPIO2 [ 0.110000] gpiochip_add: registered GPIOs 72 to 95 on device: RT3883-GPIO3 [ 0.120000] bio: create slab at 0 [ 0.130000] Switching to clocksource MIPS [ 0.140000] NET: Registered protocol family 2 [ 0.140000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.140000] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [ 0.150000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.150000] TCP: Hash tables configured (established 2048 bind 2048) [ 0.160000] TCP reno registered [ 0.160000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.170000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.180000] NET: Registered protocol family 1 [ 0.200000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.210000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.220000] msgmni has been set to 121 [ 0.220000] io scheduler noop registered [ 0.220000] io scheduler deadline registered (default) [ 0.230000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.240000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A [ 0.240000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A [ 0.250000] m25p80 spi0.0: found mx25l12805d, expected m25p80 [ 0.260000] m25p80 spi0.0: mx25l12805d (16384 Kbytes) [ 0.270000] 6 cmdlinepart partitions found on MTD device spi0.0 [ 0.270000] Creating 6 MTD partitions on "spi0.0": [ 0.280000] 0x000000000000-0x000000030000 : "u-boot" [ 0.280000] 0x000000030000-0x000000040000 : "config" [ 0.290000] 0x000000040000-0x000000050000 : "factory" [ 0.300000] 0x000000050000-0x000000150000 : "kernel" [ 0.300000] 0x000000150000-0x000001000000 : "rootfs" [ 0.310000] mtd: partition "rootfs" set to be root filesystem [ 0.320000] mtd: partition "rootfs_data" created automatically, ofs=670000, len=990000 [ 0.320000] 0x000000670000-0x000001000000 : "rootfs_data" [ 0.330000] 0x000000050000-0x000001000000 : "firmware" [ 0.340000] ramips_mdio: probed [ 0.350000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 25, using 25 [ 0.360000] TCP westwood registered [ 0.360000] NET: Registered protocol family 17 [ 0.360000] 8021q: 802.1Q VLAN Support v1.8 [ 0.380000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. [ 0.390000] Freeing unused kernel memory: 164k freed [ 2.960000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0 [ 3.060000] Button Hotplug driver version 0.4.1 - preinit - Press the [f] key and hit [enter] to enter failsafe mode - regular preinit - [ 3.750000] JFFS2 notice: (336) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 9 of xref (0 dead, 0 orphan) found. [ 4.650000] SCSI subsystem initialized [ 4.890000] usbcore: registered new interface driver usbfs [ 4.890000] usbcore: registered new interface driver hub [ 4.900000] usbcore: registered new device driver usb [ 5.040000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.040000] rt3883-ehci rt3883-ehci: Ralink RT3883 built-in EHCI controller [ 6.050000] rt3883-ehci rt3883-ehci: new USB bus registered, assigned bus number 1 [ 6.090000] rt3883-ehci rt3883-ehci: irq 26, io mem 0x101c0000 [ 6.110000] rt3883-ehci rt3883-ehci: USB 2.0 started, EHCI 1.00 [ 6.110000] hub 1-0:1.0: USB hub found [ 6.120000] hub 1-0:1.0: 2 ports detected [ 6.190000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 6.200000] rt3883-ohci rt3883-ohci: Ralink RT3883 built-in OHCI controller [ 6.210000] rt3883-ohci rt3883-ohci: new USB bus registered, assigned bus number 2 [ 6.210000] rt3883-ohci rt3883-ohci: irq 26, io mem 0x101c1000 [ 6.280000] hub 2-0:1.0: USB hub found [ 6.280000] hub 2-0:1.0: 2 ports detected [ 6.300000] Initializing USB Mass Storage driver... [ 6.310000] usbcore: registered new interface driver usb-storage [ 6.310000] USB Mass Storage support registered. switching to jffs2 - init - [ 28.210000] Compat-wireless backport release: compat-wireless-2012-05-16-3-gde86a47 [ 28.220000] Backport based on wireless-testing.git master-2012-05-29 [ 28.230000] compat.git: wireless-testing.git [ 28.320000] cfg80211: Calling CRDA to update world regulatory domain [ 28.320000] cfg80211: World regulatory domain updated: [ 28.330000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 28.340000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 28.340000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 28.350000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 28.360000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 28.370000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 29.420000] PPP generic driver version 2.4.2 [ 29.540000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 29.720000] NET: Registered protocol family 24 [ 29.770000] nf_conntrack version 0.5.0 (978 buckets, 3912 max) [ 29.980000] usbcore: registered new interface driver usbserial [ 29.990000] USB Serial support registered for generic [ 29.990000] usbcore: registered new interface driver usbserial_generic [ 30.000000] usbserial: USB Serial Driver core [ 30.040000] USB Serial support registered for FTDI USB Serial Device [ 30.050000] usbcore: registered new interface driver ftdi_sio [ 30.060000] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver [ 37.760000] ramips-wdt: timeout value 60 must be 0 < timeout <= 25, using 25 |
Vanaf hier reboot het telkens… tenzij de ZigBee stick aangesloten is…
1 2 3 4 5 6 7 8 9 10 11 12 |
[ 55.660000] hub 2-0:1.0: port 2 disabled by hub (EMI?), re-enabling... [ 55.660000] usb 2-2: USB disconnect, device number 2 [ 55.670000] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [ 55.680000] ftdi_sio 2-2:1.0: device disconnected [ 55.980000] usb 2-2: new full-speed USB device number 3 using rt3883-ohci [ 56.170000] ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected [ 56.180000] usb 2-2: Detected FT232RL [ 56.180000] usb 2-2: Number of endpoints 2 [ 56.190000] usb 2-2: Endpoint 1 MaxPacketSize 64 [ 56.190000] usb 2-2: Endpoint 2 MaxPacketSize 64 [ 56.200000] usb 2-2: Setting MaxPacketSize 64 [ 56.210000] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB1 |