Staubsauger@fhem: Raspberry zur Steuerung von Vorwerk VR100 oder Neato??

Begonnen von zYloriC, 21 Oktober 2014, 14:37:28

Vorheriges Thema - Nächstes Thema

Markus M.

Ich lass dich erst mal machen ;)
Wenn der Router diesmal passt dann gib bitte Bescheid woher man ihn beziehen kann.
Ich hatte mir einen A15 clone von DX bestellt der leider auch ein Reinfall war, weil die Busybox beschnitten ist und ich ohne Zusatzhardware auch sonst nichts geflasht kriege.
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0

PatrickR

Mal eine grundsätzliche Frage:
Der Router sieht verglichen mit dem Platz im Gehäuse etwas wuchtig aus. Habt Ihr das mal ausgemessen?

Patrick
lepresenced - Tracking von Bluetooth-LE-Tags (Gigaset G-Tag) mittels PRESENCE

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Rich Cook

HolyMoly

Heute ist der zweite gekommen und dieser ist ein großer  ;D
Diesen hier http://www.ebay.de/itm/271573620439?_trksid=p2060778.m1438.l2649&ssPageName=STRK%3AMEBIDX%3AIT habe ich bestellt falls es jemand interessiert, ist aber schon wieder ausverkauft....

Hier ist ein tutorial  http://wiki.openwrt.org/toh/unbranded/a5-v11 mit dem sich genau dieser Router auf OpenWrt flashen lässt. Auch obwohl er eine beschnittene busybox hatte. Wer zu faul ist das firmware image selber zu bauen kann sich gerne per pm an mich wenden.

FHEM auf Raspi2 & Radxa Rock

zYloriC

Danke für die Links. Dein OpenWrt ist nun drauf, nehme ich an.
Was sind die nächsten Schritte? Bist du schon dazu gekommen?
Gruß, zYloriC

HolyMoly

Ja, OpenWrt ist drauf und funktioniert nun super flüssig.
Leider gibt es Probleme mit dem USB Treiber  :(

[   39.310000] usb 1-1: device descriptor read/64, error -145
[   39.550000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[   55.040000] usb 1-1: device descriptor read/64, error -145
[   70.760000] usb 1-1: device descriptor read/64, error -145
[   71.010000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[   81.510000] usb 1-1: device not accepting address 4, error -145
[   81.650000] usb 1-1: new high-speed USB device number 5 using ehci-platform
[   92.140000] usb 1-1: device not accepting address 5, error -145
[   92.140000] hub 1-0:1.0: unable to enumerate USB device on port 1
[   92.520000] usb 2-1: new full-speed USB device number 2 using ohci-platform
FHEM auf Raspi2 & Radxa Rock

HolyMoly

Juhuu, jetzt geht es theoretisch! Beim Router reichen aktuelle Standardfirmware und das nachinstallieren einiger Module per Paketmanager. Von meinen MiniUSB Kabeln hat der Neato allerdings 2 verschmäht  :o So ich bin dann mal damit beschäftigt per Lidar die Wohnung zu mappen ;)
FHEM auf Raspi2 & Radxa Rock

SimonHipp

Hi Leute, wie ist den der aktuelle Stand?
Hört sich echt interessant an.
Wäre für mich auch super, die Funktionen in Fhem einzubauen.
Was benötigt ich hierfür alles und gibt es hierfür ein kleines HowTo?

Grüße
Simon
FHEM 6.0 auf AMD Ryzen 5 MICRO PC (NUC) mit VDSL 100/40Mbit/s

Markus M.

Hat das hier irgendwer hinbekommen?
Alles was mir meine Versuche eingebracht haben ist Elektroschrott...
Ein A1-V2.1 (mit Akku) nimmt das Image per TFTP an, danach passiert leider nichts mehr.
Hat jemand eine Idee?
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0

HolyMoly

Ja, ich hänge derzeit daran ein USB Stecker zu basteln der so flach ist dass sich der Staubbehälter noch einsetzen lässt.
@Markus wieviel flash/ram hast du? welches image versuchst du zu flashen? ist die busybox beschnitten?
FHEM auf Raspi2 & Radxa Rock

Mathea

Ich habe mir vor Monaten auch den HAME Router bestellt, allerdings hat bei mir das Flashen von openwrt nicht funktioniert. Seither liegt das Projekt auf Eis.
Ich sehe das Hauptproblem allerdings in der Stromversorgung des Routers. Klemmt man ihn mit einem Step Down Converter direkt an die Batterie, würde er die Batterie gnadenlos entladen und nutzlos machen falls der Neato seine Station irgendwann mal nicht findet. Man bräuchte also eine Art Tiefentladeschutz, der auch noch Platz im Gehäuse benötigt.

Dieser Kollege hier scheint auch an der Lösung zu arbeiten und sich Gedanken darüber zu machen: http://www.tatsch-it.de/neato-botvac-80-wifi-mod/

Markus M.


Zitat von: HolyMoly am 31 August 2015, 22:52:21
Ja, ich hänge derzeit daran ein USB Stecker zu basteln der so flach ist dass sich der Staubbehälter noch einsetzen lässt.
@Markus wieviel flash/ram hast du? welches image versuchst du zu flashen? ist die busybox beschnitten?

4/16 und es gibt leider keine Busybox mehr auf dem Router sondern gar nichts.
Ich hatte das OpenWRT Image probiert.
TFTP holt noch ein Image ab, nur startet das Ding nicht mehr.
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0

HolyMoly

Welcher Anleitung bist du gefolgt? Darf ich dir diese Anleitung http://my-embedded.blogspot.de/2013/12/mini-4g-router-rt5350f.html mal nahelegen?
Insbesondere
ZitatDefault firmware cannot accept openwrt images so at the beggining (after u-boot upgrade) we will load minimal openwrt firmware firmware.img.
könnte dein Problem sein.
FHEM auf Raspi2 & Radxa Rock

Markus M.

Zitat von: HolyMoly am 01 September 2015, 16:05:39
Welcher Anleitung bist du gefolgt?

Ich habe einen A1, das ist der mit dem Akku: http://wiki.openwrt.org/toh/hame/mpr-a1
Dein Modell samt Anleitung aus deinem Link führte ebenso zu Schrott :(
(Beim letzten Versuch vor ein paar Monaten)
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0

HolyMoly

Häng dich mal an den uart unter der batterie und schau was da so passiert wenn er sein image abholt...
ich tippe mal hierauf: das image ist zu groß -> out of memory -> kill tftp
FHEM auf Raspi2 & Radxa Rock

Markus M.

Ich habe gerade das erste Mal überhaupt irgendwas mit UART angeschlossen - dafür gar nicht mal so schlecht :)


Beim TFTP bleibt er scheinbar einfach stehen:
T T T

Retry count exceeded; starting again

Trying Eth0 (10/100-M)


ETH_STATE_ACTIVE!!


ArpTimeoutCheck


ArpTimeoutCheck

Using Eth0 (10/100-M) device

TFTP from server 192.168.1.55; our IP address is 192.168.1.2

Filename '9c417c4e3b88'.


TIMEOUT_COUNT=10,Load address: 0x80100000

Loading: *.Got ARP REPLY, set server/gtwy eth addr (a8:20:66:49:01:5c)

Got it

#################################################################

. #################################################################

. #################################################################

. #################################################################

. #################################################################

. #################################################################

. #################################################################

. #################################################################

. #################################################################

. #################################################################

. #################################################################

. #####################

done

Bytes transferred = 3766314 (39782a hex)

cnt = 523121488

type = 0

cnt = 523121487

type = 221

cnt = 523121486

type = 186

cnt = 523121485

type = 186

cnt = 523121484

type = 186

cnt = 523121483


Wenn ich das Ding dann manuell neu starte passiert das:
Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

No initrd

## Transferring control to Linux (at address 80000000) ...

## Giving linux memsize in MB, 16


Starting kernel ...


[    0.000000] Linux version 3.18.17 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46018) ) #2 Fri Jul 3 20:14:29 CEST 2015
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] MIPS: machine is HAME MPR-A1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x00ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x00ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x00ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Writing ErrCtl register=00060921
[    0.000000] Readback ErrCtl register=00060921
[    0.000000] Memory: 10592K/16384K available (2551K kernel code, 124K rwdata, 500K rodata, 2192K init, 186K bss, 5792K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 360MHz
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.010000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.090000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110000] pinctrl core: initialized pinctrl subsystem
[    0.120000] NET: Registered protocol family 16
[    0.130000] rt2880-pinmux pinctrl: invalid group "rgmii" for function "gpio"
[    0.140000] rt2880-pinmux pinctrl: invalid group "mdio" for function "gpio"
[    0.160000] rt2880_gpio 10000600.gpio: registering 22 gpios
[    0.170000] rt2880_gpio 10000600.gpio: registering 22 irq handlers
[    0.180000] rt2880_gpio 10000660.gpio: registering 6 gpios
[    0.190000] rt2880_gpio 10000660.gpio: registering 6 irq handlers
[    0.200000] Switched to clocksource systick
[    0.210000] NET: Registered protocol family 2
[    0.220000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.230000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.240000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260000] TCP: reno registered
[    0.260000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.270000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.290000] NET: Registered protocol family 1
[    4.320000] swapper invoked oom-killer: gfp_mask=0x200d2, order=0, oom_score_adj=0
[    4.340000] CPU: 0 PID: 1 Comm: swapper Not tainted 3.18.17 #2
[    4.350000] Stack : 00000000 00000000 00000000 00000000 805441f2 00000032 00000000 00000a58
.  00000001 00000000 802afe78 80304ba3 00000001 80543418 8082c248 00000000
.  80304c90 80304db4 00000000 8004704c 00000006 80023e2c 00000000 00000000
.  802b338c 8082b8cc 00000000 00000000 00000000 00000000 00000000 00000000
.  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
.  ...
[    4.420000] Call Trace:
[    4.420000] [<80013cdc>] show_stack+0x48/0x70
[    4.430000] [<8006ed40>] dump_header.isra.17+0x4c/0x13c
[    4.440000] [<8006f7ec>] out_of_memory+0x298/0x328
[    4.450000] [<80072a70>] __alloc_pages_nodemask+0x628/0x68c
[    4.460000] [<8006c3a8>] pagecache_get_page+0x15c/0x244
[    4.470000] [<8006c714>] grab_cache_page_write_begin+0x2c/0x50
[    4.480000] [<800c2a38>] simple_write_begin+0x38/0x124
[    4.490000] [<8006bdc4>] generic_perform_write+0xc8/0x248
[    4.510000] [<8006dbec>] __generic_file_write_iter+0x364/0x3f8
[    4.520000] [<8006dcc4>] generic_file_write_iter+0x44/0x100
[    4.530000] [<800a04e8>] new_sync_write+0x88/0xc0
[    4.540000] [<800a0e18>] vfs_write+0xb8/0x1bc
[    4.550000] [<800a1400>] SyS_write+0x58/0xc4
[    4.550000] [<8031dcec>] xwrite+0x4c/0xa8
[    4.560000] [<8031dd98>] do_copy+0x50/0x154
[    4.570000] [<8031d718>] write_buffer+0x54/0x80
[    4.580000] [<8031d7a4>] flush_buffer+0x60/0xe4
[    4.590000] [<8032abd4>] unlzma+0xc98/0xdd8
[    4.600000] [<8031db44>] unpack_to_rootfs+0x188/0x2e4
[    4.610000] [<8031e448>] populate_rootfs+0x24/0xb8
[    4.620000] [<8000d158>] do_one_initcall+0x148/0x1ec
[    4.630000] [<8031cccc>] kernel_init_freeable+0x150/0x208
[    4.640000] [<80008e00>] kernel_init+0x10/0x114
[    4.650000] [<80004478>] ret_from_kernel_thread+0x14/0x1c
[    4.660000]
[    4.660000] Mem-Info:
[    4.660000] Normal per-cpu:
[    4.670000] CPU    0: hi:    0, btch:   1 usd:   0
[    4.680000] active_anon:0 inactive_anon:0 isolated_anon:0
[    4.680000]  active_file:5 inactive_file:0 isolated_file:0
[    4.680000]  unevictable:2011 dirty:0 writeback:0 unstable:0
[    4.680000]  free:0 slab_reclaimable:118 slab_unreclaimable:205
[    4.680000]  mapped:0 shmem:0 pagetables:0 bounce:0
[    4.680000]  free_cma:0
[    4.740000] Normal free:0kB min:0kB low:0kB high:0kB active_anon:0kB inactive_anon:0kB active_file:20kB inactive_file:0kB unevictable:8044kB isolated(anon):0kB isolated(file):0kB present:16384kB managed:10592kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:472kB slab_unreclaimable:820kB kernel_stack:96kB pagetables:0kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:8044 all_unreclaimable? yes
[    4.820000] lowmem_reserve[]: 0 0
[    4.820000] Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
[    4.840000] 2016 total pagecache pages
[    4.850000] 0 pages in swap cache
[    4.860000] Swap cache stats: add 0, delete 0, find 0/0
[    4.870000] Free swap  = 0kB
[    4.870000] Total swap = 0kB
[    4.880000] 4096 pages RAM
[    4.880000] 0 pages HighMem/MovableOnly
[    4.890000] 1448 pages reserved
[    4.900000] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[    4.910000] Kernel panic - not syncing: Out of memory and no killable processes...
[    4.910000]
[    4.910000] ---[ end Kernel panic - not syncing: Out of memory and no killable processes...
[    4.910000]
[   82.740000] random: nonblocking pool is initialized


Jetzt bin ich aber mit meinem Latein am Ende...
Wenn du Ideen für morgen hast, immer gerne - mir würde fürs erste schon reichen wenn ich das Ding mit irgendeiner Firmware wieder zum Laufen kriege.
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0