git clone git://git.zerfleddert.de/hmcfgusb
deepthought [~/hmcfgusb]> make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
gcc -L/opt/local/lib -lusb-1.0 -lm hmland.o hmcfgusb.o -o hmland
deepthought [~/hmcfgusb]> ./hmland -h
Syntax: ./hmland options
Possible options:
-D debug mode
-d daemon mode
-h this help
-I pretend to be HM-LAN-IF for compatibility with client-software (previous default)
-i interactive mode (connect HM-CFG-USB to terminal)
-l ip listen on given IP address only (for example 127.0.0.1)
-L logfile log network-communication to logfile
-P create PID file /var/run/hmland.pid in daemon mode
-p n listen on port n (default: 1000)
-r n reboot HM-CFG-USB after n seconds (0: no reboot, default: 86400 if FW < 0.967, 0 otherwise)
hh:mm reboot HM-CFG-USB daily at hh:mm
-S serial use HM-CFG-USB with given serial (for multiple hmland instances)
-v verbose mode
-V show version (0.102)
deepthought [~/hmcfgusb]> ./hmland -D -p 1234
define hmusb HMLAN 127.0.0.1:1234
attr hmusb hmId 424242
Client 127.0.0.1 connected!
USB < 0x0000: 4b K
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 bc 0a 4a 45 H.HM-USB-IF...JE
USB > 0x0010: 51 30 35 33 35 31 32 32 1d b1 55 42 42 42 00 3a Q0535122..UBBB.:
USB > 0x0020: 5f 66 00 01 00 00 00 00 00 00 00 00 00 00 00 00 _f..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
LAN < HHM-USB-IF,03BC,JEQ0535122,1DB155,424242,003A5F66,0001
LAN > A424242
...
cp hmcfgusb.rules /etc/udev/rules.d/
./hmland -d -p 1234
Daemon with PID 3065 started!
deepthought [~/hmcfgusb]> ./flash-hmcfgusb hmusbif.enc
HM-CFG-USB flasher version 0.102
Reading firmware from hmusbif.enc...
Firmware with 368 blocks successfully read.
HM-CFG-USB not in bootloader mode, entering bootloader.
Interrupt transfer not completed: Unknown error code 1 / 0x01!
Can't send null frame: Input/output error
Waiting for device to reappear...
Can't find/open hmcfgusb!
Can't find/open hmcfgusb!
HM-CFG-USB opened.
Flashing 368 blocks: |
Firmware update successfull!
deepthought [~/hmcfgusb]> ./hmland -i
HHM-USB-IF,03C7,JEQ0535122,1DB155,000000,0001B663,0000
deepthought [~/hmcfgusb]> ./flash-ota -f hm_cc_rt_dn_update_V1_3_001_140314.eq3 -s KEQ0123456
HomeMatic OTA flasher version 0.102
Reading firmware from hm_cc_rt_dn_update_V1_3_001_140314.eq3...
Firmware with 234 blocks successfully read.
Rebooting HM-CFG-USB to avoid running out of credits
HM-CFG-USB not in bootloader mode, entering bootloader.
Interrupt transfer not completed: Unknown error code 1 / 0x01!
Can't send null frame: Input/output error
Waiting for device to reappear...
Can't find/open hmcfgusb!
Can't find/open hmcfgusb!
HM-CFG-USB in bootloader mode, rebooting
Can't find/open hmcfgusb!
Can't find/open hmcfgusb!
HM-CFG-USB opened
HM-CFG-USB firmware version: 967
Entering 10k-mode
Waiting for device with serial KEQ0123456
Device with serial KEQ0123456 (hmid: 012345) entered firmware-update-mode
Adding HMID
Initiating remote switch to 100k
Entering 100k-mode
Has the device switched?
Yes!
Flashing 234 blocks: 0234/0234 -
Entering 10k-mode
Waiting for device to reboot
deepthought [~/hmcfgusb]> ./flash-ota -f hm_cc_rt_dn_update_V1_3_001_140314.eq3 -s KEQ0123456 -c /dev/ttyACM0
HomeMatic OTA flasher version 0.102
Reading firmware from hm_cc_rt_dn_update_V1_3_001_140314.eq3...
Firmware with 234 blocks successfully read.
Opening culfw-device at path /dev/ttyACM0 with speed 38400
Requesting firmware-version
culfw-device firmware version: 1.58
Entering 10k-mode
Waiting for device with serial KEQ0123456
Device with serial KEQ0123456 (hmid: 012345) entered firmware-update-mode
Initiating remote switch to 100k
Entering 100k-mode
Has the device switched?
Yes!
Flashing 234 blocks: 0234/0234 -
Entering 10k-mode
Waiting for device to reboot
root@wandboard:/home/sascha/hmcfgusb# make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
gcc -L/opt/local/lib -lusb-1.0 -lm hmland.o hmcfgusb.o -o hmland
hmcfgusb.o: In function `hmcfgusb_interrupt':
/home/sascha/hmcfgusb/hmcfgusb.c:246: undefined reference to `libusb_submit_transfer'
/home/sascha/hmcfgusb/hmcfgusb.c:249: undefined reference to `libusb_free_transfer'
/home/sascha/hmcfgusb/hmcfgusb.c:234: undefined reference to `libusb_free_transfer'
hmcfgusb.o: In function `hmcfgusb_send':
/home/sascha/hmcfgusb/hmcfgusb.c:149: undefined reference to `libusb_interrupt_transfer'
/home/sascha/hmcfgusb/hmcfgusb.c:156: undefined reference to `libusb_interrupt_transfer'
[weitere Fehler...]
Zitat von: kuschelganxta schrieb am Mi, 12 Juni 2013 20:08ich versuche diesen Dienst auf einem (ubuntu) Linux auf dem wandboard zum Fliegen zu kriegen - leider scheitert es am Linken:
Zitat von: mgernoth schrieb am Mi, 12 Juni 2013 20:25Habe gerade einen Fix eingecheckt, jetzt sollte es tun.
Solltest Du einen git-checkout benutzen, bringt Dich ein "git pull" auf den aktuellen Stand.
root@wandboard:/home/sascha/hmcfgusb# ./hmland -Di -p 1234
USB < 0x0000: 4b K
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 bc 0a 4a 45 H.HM-USB-IF...JE
USB > 0x0010: 51 30 31 32 30 37 39 31 1a ce 95 1a ce 95 00 00 Q0120791........
USB > 0x0020: 1c 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
LAN < HHM-USB-IF,03BC,JEQ0120791,1ACE95,1ACE95,00001C04,0000
HHM-USB-IF,03BC,JEQ0120791,1ACE95,1ACE95,00001C04,0000
Zitat von: kuschelganxta schrieb am Mi, 12 Juni 2013 20:50Es kompiliert wunderbar und läuft soweit ich das sehen kann:Code Auswählen
root@wandboard:/home/sascha/hmcfgusb# ./hmland -Di -p 1234
...
ZitatDie Windows-Software kommt (mit Port 1000) klar, Geräte werden angezeigt. Das Programmieren scheint aber nicht möglich zu sein...egal ;)
ZitatIst das HMLAN-Protokoll eigentlich irgendwo dokumentiert?
Ich würde gern diese Kombi in openHAB als Binding hibzufügen...
/opt/hmcfgusb # ./hmland -D -p 1234
Client 127.0.0.1 connected!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Connection to 127.0.0.1 closed!
Zitat von: betateilchen schrieb am Mi, 03 Juli 2013 13:54Ich habe das Ganze jetzt mal versucht, auf dem Raspberry zu installieren. Kompilieren funktioniert einwandfrei, beim Starten passiert aber folgendes:Code Auswählen
...
Can't find/open hmcfgusb!
...
Zitat
- ein lsusb liefert keinen Hinweis auf den Stick.
- wenn ich den Stick einstecke, gibt es im syslog keinen Hinweis auf irgendein neues USB Gerät
Was kann denn da schieflaufen?
Linux rasp-fhem 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l
Bus 001 Device 005: ID 1b1f:c00f
Zitat von: betateilchen schrieb am Do, 04 Juli 2013 19:47Das Pairing mit Tür-/Fensterkontakten (meine aktuelle Aufgabe) ist aber noch ein reines Glücksspiel. Mehr als einen Kontakt pro Tag bekomme ich noch nicht zum Laufen. Das Pairen eines zweiten Gerätes schlägt danach regelmäßig fehl.
2013.07.04 20:13:52 3: Device Melder_FSr added to ActionDetector with 028:00 time
Use of uninitialized value $updt in concatenation (.) or string at ./FHEM/00_HMLAN.pm line 472.
Use of uninitialized value $updt in concatenation (.) or string at ./FHEM/00_HMLAN.pm line 473.
Internals:
DEF 127.0.0.1:1234
DeviceName 127.0.0.1:1234
FD 15
HMUSB_MSGCNT 312
HMUSB_TIME 2013-07-07 00:33:23
HM_CMDNR 82
NAME HMUSB
NR 324
NTFY_TRIGGERTIME 2013-07-07 00:30:35
PARTIAL
RAWMSG E1D919A,0000,0A49AD29,FF,FFC6,AD86701D919A00000000E638
RSSI -58
STATE opened
TYPE HMLAN
assignIDs 2123FC,1F10D8,1EFD9B,1D919A,1B029E
assignIDsCnt 5
assignIDsReport 5
firmware 0.963
hmPair 1
msgParseDly min:-3382 max:3089 last:19 cnt:297
owner AABBCC
serialNr JEQ0534751
uptime 001 47:56:40.617
Readings:
2013-07-07 00:30:35 Xmit-Events Overload-released:4 ERROR-Overload:5 ok:5 Warning-HighLoad:4
2013-07-07 00:30:35 cond Overload-released
Helper:
HMcnd 254
keepAliveRec 1
keepAliveRpt 0
1b029e:
chn 02
flg 0
msg
name wz_Ventilator
newChn +1B029E,00,01,
to 1373147061.11112
1d919a:
chn 02
flg 0
msg
name wz_FHT
newChn +1D919A,00,01,
to 1373148025.83447
1efd9b:
chn 02
flg 0
msg SB61AE9C5,00,00000000,01,B61AE9C5,52B011AABBCC1EFD9B0201000000
name HM_scharf2
newChn +1EFD9B,00,01,
to 1373149784.57097
1f10d8:
chn 01
flg 0
msg
name Melder_Balkon
newChn +1F10D8,00,01,
to 1373144804.64984
2123fc:
chn 01
flg 0
msg
name HMFB01
newChn +2123FC,01,01,FE1F
to 1373149674.43028
Aabbcc:
flg 0
Cnd:
0 5
2 4
254 4
4 5
Dly:
cnt 297
lst 19
max 3089
min -3382
Nextsend:
1CCA12 1373149891.50172
1D919A 1373150003.62168
Ref:
drft 0.000139944022391044
hmtL 172597916
kTs 0
offL 1372977402903
sysL 1373150000819
Attributes:
group Hardware
hmId AABBCC
room 99_System
wdTimer 25
Zitat von: betateilchen schrieb am So, 07 Juli 2013 00:39was bedeuten eigentlich die Overload-Meldungen in den Readings?Code Auswählen
...
2013-07-07 00:30:35 Xmit-Events Overload-released:4 ERROR-Overload:5 ok:5 Warning-HighLoad:4
2013-07-07 00:30:35 cond Overload-released
...
Zitat von: mgernoth schrieb am So, 07 Juli 2013 09:24Schaltest Du Deinen Batterieaktor (das einzige Burst-Device, das ich in Deiner Liste entdeckt habe) häufig oder machst Du eine regelmäßige Statusabfrage?
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Zitat von: marc2 schrieb am Sa, 13 Juli 2013 14:15* Mit einem USB HUB zwischen 7390 und hmcfgusb läuft es bei mit generell
nicht. Mag am USB HUB liegen, aber es kommt zu kontinuierlichen CONNECTS/DISCONNECTs
Zitat* Ohne USB HUB funktioniert es, wobei 5e961a8 ohne Fehlermeldungen läuft, die
neueren (incl. aktuelle Version aus dem git), durchgängig die folgende Meldung loggen:Code AuswählenCan't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
Can't send data: Input/output error
ps | grep hmland | grep -v -q grep || /var/media/ftp/bin/hmland -l 127.0.0.1 -p 1000 -d
sleep 2
Zitat von: marc2 schrieb am Mi, 24 Juli 2013 23:37Nachdem das ganze auch über den USB HUB vier Tage problemlos lief, war am Montag
um 22:32 Uhr komischer Weise schluss. Im Log standen keine Fehlermeldungen aber
der USBCFG hat keine Messages mehr gesendet, wohl aber empfangen.
Zitat von: marc2 schrieb am Do, 25 Juli 2013 23:04habe ich in letzter Zeit vermehrt das Problem, dass ACKs scheinbar nicht schnell genug versendet werden. Da sich hier in den letzten Wochen und Monaten wenig getan hat, kann es eigentlich weder am CUNO noch an CUL_MAX liegen, sondern schlicht daran, dass FHEM auf der 7390 nicht mehr schnell genug hinterher kommt.
Zitat von: marc2 schrieb am Fr, 26 Juli 2013 13:07Wie gesagt, die "usb-transfer took more than 100ms" und das Sendeproblem sind zwei Paar Schuhe.
ps | grep hmland | grep -v -q grep
/var/media/ftp/lib/hmland -d -p 1234 > /var/media/ftp/lib/hmland.log 2>&1
usb-transfer took 44ms!
Zitat von: betateilchen schrieb am Do, 25 Juli 2013 10:56guter Plan. Kannst Du das dann auch gleich noch als "set <device> reboot" einbauen, damit man das auch machen kann, ohne jedes Mal zum Verteilerkasten rennen zu müssen, falls das Problem zwischen den 24 Stunden auftritt?
Zitat von: fiedel schrieb am Sa, 27 Juli 2013 16:20Leider habe ich noch Installationsschwierigkeiten. Habe Folgendes gemacht und bekomme beim "make" Fehler:
...
root@guiplug:/hmcfgusb# make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
hmcfgusb.c:239: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hmcfgusb_interrupt'
Zitat von: fiedel schrieb am So, 28 Juli 2013 09:40Edit: Und vielleicht noch eine Frage für wenn es dann läuft: Wie wird der Dämon am besten automatisch gestartet (Runlevel)? Standart, oder sollte man das speziell für FHEM anpassen?
#!/bin/sh
exec su nobody -c '/local/hmcfgusb/hmland -p 1234 -l 127.0.0.1'
Zitat von: fiedel schrieb am Mo, 29 Juli 2013 10:15Ist mir alles noch nicht so geheuer mit peer und pair und ack
Zitat von: betateilchen schrieb am Mo, 29 Juli 2013 11:14falsche Reihenfolge *lach* erst pair, dann ack, dann peer :)
Zitat von: marc2 schrieb am So, 18 August 2013 00:20hast Du schon Zeit gefunden den regelmäßigen Reboot einzubauen ?
ZitatIm Schnitt hält der Stick bei mir rund 60 Stunden durch, danach muss er einmal abgezogen und wieder
eingesteckt werden.
{ HMLAN_SimpleWrite($defs{HMUSB1},"B",undef) }
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send null frame: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
HM-CFG-USB in bootloader mode, restarting in normal mode...
HM-CFG-USB in bootloader mode, restarting in normal mode...
HM-CFG-USB in bootloader mode, restarting in normal mode...
Can't send data: Other error
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2013.08.18 22:54:17 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.08.18 22:54:17 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.08.18 22:54:18 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.08.18 22:54:18 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.08.18 22:54:19 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.08.18 22:54:19 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.08.18 22:54:21 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.08.18 22:54:21 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.08.18 22:54:23 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.08.18 22:54:23 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.08.18 22:54:27 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.08.18 22:54:27 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.08.18 22:54:28 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.08.18 22:54:28 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.08.18 22:55:54 2: HMLAN_Parse: HMUSB1 new condition ok
Zitat von: marc2 schrieb am So, 18 August 2013 22:58das ging ja fix, vielen Dank ! Ein täglicher Reset sollte mehr als hinreichend sein.
Optimal wäre, wenn man den Zeitpunt festlegen könnte (z.B. täglich um 4:00 Uhr). Man
könnte es natürlich mit "at" aus FHEM heraus triggern. Auf Ebene des hmland wäre es
aber wohl besser aufgehoben.
ZitatWenn ich dem Stick ein B sende, finde ich folgende Einträge in den Logs:
B Senden ("set raw" wird ja leider nicht unterstützt)Code Auswählen
{ HMLAN_SimpleWrite($defs{HMUSB1},"B",undef) }
Log des hmlandCode AuswählenInterrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send null frame: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
HM-CFG-USB in bootloader mode, restarting in normal mode...
HM-CFG-USB in bootloader mode, restarting in normal mode...
HM-CFG-USB in bootloader mode, restarting in normal mode...
Can't send data: Other error
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
...
Entspricht das Deinen Erfahrungen ?
ZitatSpricht etwas dagegen, ein "set raw" für den HMLAN zuzulassen (wohl eher eine Frage an Martin) ?
Zitat von: mgernoth schrieb am Mo, 19 August 2013 08:41Ich schau mal, wann ich das hinbekomme, bis dahin musst Du mit at arbeiten.
Zitat von: mgernoth schrieb am Mo, 19 August 2013 08:41Ich schau mal, wann ich das hinbekomme, bis dahin musst Du mit at arbeiten.
Zitat von: marc2 schrieb am Sa, 24 August 2013 23:03Seither sind keinerlei Sendeprobleme mehr aufgetreten :-)
2013-08-18 Michael Gernoth periodically reset HM-CFG-USB by enetring and leaving...
Zitat von: betateilchen schrieb am Fr, 20 September 2013 20:16die letzte Version von hmland, die bei mir zuverlässig funktioniert, ist diese hier:Code Auswählen2013-08-18 Michael Gernoth periodically reset HM-CFG-USB by enetring and leaving...
Alles was danach kam, läuft bei mir nur äußerst unzuverlässig, bis hin zu regelmäßigen kompletten Abstürzen des Raspberry.
Zitat von: betateilchen schrieb am Fr, 20 September 2013 23:33nein, irgendeinen Hinweis auf die Ursache konnte ich bisher leider nicht finden.
Zitat von: Mr. P schrieb am So, 22 September 2013 16:05Also so allgemein kann man das wohl nicht sagen.
Zitat von: Mr. P schrieb am So, 22 September 2013 17:14hab für FHEM eine 256MB-Variante und die wurden mWn alle in China gefertigt.
Zitatdefinitiv nicht.
Zitat von: Mr. P schrieb am So, 22 September 2013 22:17dass die Umstellung auf 512MB noch vor der Produktionsübersiedelung in die UK stattgefunden hat und somit in den UK die Variante B nur mehr die 512MB-Version gebaut wurde
2013-09-24 20:24:18.318556: Client 127.0.0.1 connected!
Rebooting in 86400 seconds
usb-transfer took 65ms!
usb-transfer took 66ms!
usb-transfer took 67ms!
usb-transfer took 66ms!
usb-transfer took 66ms!
usb-transfer took 66ms!
usb-transfer took 66ms!
usb-transfer took 73ms!
usb-transfer took 65ms!
pkill -9 hmland
Zitat von: Mr. P schrieb am So, 22 September 2013 17:14Jetzt hast du mich neugierig gemacht: wieviele Komponenten (und von welchen Typ) hast du denn im Einsatz?
Defined modules:
CUL : 1
CUL_HM : 57
CUL_WS : 1
Calendar : 3
FHEM2FHEM : 1
FHEMWEB : 12
FS20 : 44
FileLog : 7
HMLAN : 1
HTTPSRV : 1
RSS : 4
SVG : 4
Weather : 1
at : 9
autocreate : 1
dewpoint : 2
dummy : 14
notify : 30
openweathermap : 1
structure : 3
telnet : 1
weblink : 1
Defined models per module:
CUL_HM : HM-CC-RT-DN,HM-CC-TC,HM-CC-VD,HM-Dis-TD-T,HM-LC-SW4-BA-PCB,HM-LC-Sw1PBU-FM,HM-PB-6-WM55,HM-RC-4-2,HM-SEC-RHS,HM-SEC-SC,HM-SEC-SD,HM-Sen-RD-O,virtual_4
CUL_WS : ASH2200
FS20 : FS20ST,fs20di,fs20fms,fs20st
Zitat von: betateilchen schrieb am Fr, 27 September 2013 14:04Seit der Stick von einem Raspberry auf den Beaglebone umgezogen ist, hatte ich keinerlei Kommunikationsprobleme mehr innerhalb Homematic.
Zitat von: Dr. Boris Neubert am 22 Oktober 2013, 16:33:32aber ich halte das Wiki für den besseren Ort.
Zitat von: betateilchen am 22 Oktober 2013, 17:02:01
ich nicht.
Zitat von: betateilchen am 23 Oktober 2013, 09:27:19
Weil ich finde, dass dieser Thread als Grundlagenthema zu Homematic auf jeden Fall hier im Forumbereich leicht auffindbar sein sollte. Ggf. kann man ja den Eingangsbeitrag auf den aktuellen Stand bringen (was in der neuen Forumsoftware ja nun problemlos möglich ist) aber das Verzetteln solcher wichtiger Themen zwischen Forum und Wiki finde ich einfach unpraktisch.
Zitat von: niyou am 23 Oktober 2013, 09:35:23Mein Eindruck ist allerdings auch, dass es einen funktionierenden Stand gibt, der dann gut als Thema ins Wiki passt.
{ HMLAN_SimpleWrite($defs{HMUSB1},"B",undef) }
Zitat von: marc2 am 17 Juli 2013, 00:20:57Bei mir läuft der Daemon jetzt auch. Ich habe eine nicht gefreezte Box. Ich würde empfehlen, die Dateien unter fhem/lib abzulegen. Dafür ist der export bereits in der startfhem definiert.
wo Du die Binaries und die libusb hinkopierst sollte egal sein. Bei mir liegen sie
unter /var/media/ftp/bin. Meine 7390 hat ein gefreeztes FRITZ!OS 05.52, wo ich
die libusb direkt einkompiliert habe. Wenn Du eine Standard Firmware laufen hast,
musst Du den LD_LIBRARY_PATH setzen, sonst findet der Runtime Linker die usblib
nicht, Beispiel:
* libusb-1.0.so.0.1.0 nach /var/media/ftp/lib kopieren
* Links für libusb-1.0.so.0 und libusb-1.0.so.0 anlegen (z.B ln -s libusb-1.0.so.0.1.0 libusb-1.0.so.0)
* export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/lib
* execute Rechte für die Binaries setzen (chmod 755 hmland hmsniff)
* hmland testweise starten: ./hmland -l 127.0.0.1 -p 1000
Wenn das funktioniert die startfhem erweitern. Sieht bei mir wie folgt aus:Code Auswählenps | grep hmland | grep -v -q grep || /var/media/ftp/bin/hmland -l 127.0.0.1 -p 1000 -d
sleep 2
Bei Dir müsste dann noch der "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/lib" rein.
Wenn Du noch keine HM-Komponenten am Laufen hast (über einen HMLAN, CUL, CUNO, was auch immer)
kannst Du die HMID frei wählen (beliebige 6stellige hex Adresse). Falls Dein Nachbar Homematic
nutzt, kannst Du mit hmsniff seine HMID sniffen. Die solltest Du dann vielleicht nicht unbedingt
nehmen :-) Falls Du schon einen CUL, HMLAN, etc. haben solltest, kannst Du dessen HMID nutzen,
wenn der USB Stick parallel dazu laufen soll.
Wie ja in der FHEM-Doku beschrieben, hat Michael hier wirklich eine Art HMLAN Emulator gebaut.
Aus FHEM Sicht ist der Stick also wirklich ein HMLAN, und alles was FHEM-seitig für den HMLAN
gilt, sollte auch für den Stick am hmland gelten.
ps | grep hmland | grep -v -q grep || $home/lib/hmland -l 127.0.0.1 -p 1000 -d
sleep 2
Daemon with PID 3844 started!
usb-transfer took more than 100ms (128ms), this may lead to timing problems!
usb-transfer took more than 100ms (190ms), this may lead to timing problems!
usb-transfer took more than 100ms (191ms), this may lead to timing problems!
usb-transfer took more than 100ms (130ms), this may lead to timing problems!
usb-transfer took more than 100ms (192ms), this may lead to timing problems!
usb-transfer took more than 100ms (129ms), this may lead to timing problems!
usb-transfer took more than 100ms (119ms), this may lead to timing problems!
# HM LAN Daemon for HM-CFG-USB
description "HM LAN daemon"
author "Michael Gernoth <michael@gernoth.net>"
start on starting fhem
stop on stopped fhem
expect fork
respawn
chdir /usr/src/hmcfgusb-c44f15b/
exec ./hmland -l 127.0.0.1 -p 1000 -r 03:00 -d
root@media:/etc/init# initctl status fhem
fhem start/running, process 781
root@media:/etc/init# initctl status hmland
hmland start/running, process 762
2013.11.03 21:54:27 1: Including fhem.cfg
2013.11.03 21:54:28 3: telnetPort: port 7072 opened
2013.11.03 21:54:30 3: WEB: port 8083 opened
2013.11.03 21:54:30 3: WEBphone: port 8084 opened
2013.11.03 21:54:30 3: WEBtablet: port 8085 opened
2013.11.03 21:54:31 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.03 21:54:31 3: Opening hmusb device 127.0.0.1:1000
2013.11.03 21:54:31 3: hmusb device opened
2013.11.03 21:54:31 2: HMLAN_Parse: hmusb new condition init
2013.11.03 21:54:33 3: Registering HTTPSRV Homesecurity for URL /Homesecurity...
2013.11.03 21:54:33 1: Including ./log/fhem.save
2013.11.03 21:54:33 1: usb create starting
2013.11.03 21:54:34 1: usb create end
2013.11.03 21:54:34 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2013.11.03 21:54:34 0: Server started with 19 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user boxusr99, pid 2201)
2013.11.03 21:54:38 3: Device Wohnungstuer added to ActionDetector with 028:00 time
2013.11.03 21:54:38 3: Device Wohnzimmer3 added to ActionDetector with 028:00 time
2013.11.03 21:54:38 3: Device Zimmer added to ActionDetector with 028:00 time
2013.11.04 03:00:12 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.04 03:00:12 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.04 03:00:17 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.04 03:00:17 2: HMLAN_Parse: hmusb new condition init
2013.11.04 03:00:46 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.04 03:00:46 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.04 03:00:51 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.04 03:00:51 2: HMLAN_Parse: hmusb new condition init
2013.11.04 21:52:56 0: Server shutdown
2013.11.04 21:53:00 1: Including fhem.cfg
2013.11.04 21:53:01 3: telnetPort: port 7072 opened
2013.11.04 21:53:02 3: WEB: port 8083 opened
2013.11.04 21:53:02 3: WEBphone: port 8084 opened
2013.11.04 21:53:02 3: WEBtablet: port 8085 opened
2013.11.04 21:53:03 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.04 21:53:03 3: Opening hmusb device 127.0.0.1:1000
2013.11.04 21:53:03 3: hmusb device opened
2013.11.04 21:53:03 2: HMLAN_Parse: hmusb new condition init
2013.11.04 21:53:05 3: Registering HTTPSRV Homesecurity for URL /Homesecurity/...
2013.11.04 21:53:05 1: Including ./log/fhem.save
2013.11.04 21:53:05 1: usb create starting
2013.11.04 21:53:06 1: usb create end
2013.11.04 21:53:06 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2013.11.04 21:53:06 0: Server started with 19 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user boxusr99, pid 4513)
2013.11.04 21:53:10 3: Device Wohnungstuer added to ActionDetector with 028:00 time
2013.11.04 21:53:10 3: Device Wohnzimmer3 added to ActionDetector with 028:00 time
2013.11.04 21:53:10 3: Device Zimmer added to ActionDetector with 028:00 time
2013.11.04 21:53:32 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.04 21:53:32 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.04 21:53:34 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.04 21:53:34 2: HMLAN_Parse: hmusb new condition init
2013.11.04 21:54:03 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.04 21:54:03 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.04 21:54:03 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.04 21:54:03 2: HMLAN_Parse: hmusb new condition init
2013.11.04 21:54:32 1: 127.0.0.1:1000 disconnected, waiting to reappear
...
#USB
ps | grep hmland | grep -v -q grep || $home/lib/hmland -l 127.0.0.1 -p 1000 -d -r 0 > $home/log/hmland.log 2>&1
sleep 2
perl fhem.pl fhem.cfg
2013.11.05 04:00:07 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.05 04:00:07 2: HMLAN_Parse: HMUSB1 new condition disconnected
2013.11.05 04:00:07 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.11.05 04:00:07 2: HMLAN_Parse: HMUSB1 new condition init
2013.11.05 04:00:08 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.05 04:00:08 2: HMLAN_Parse: HMUSB1 new condition disconnected
2013.11.05 04:00:08 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.11.05 04:00:08 2: HMLAN_Parse: HMUSB1 new condition init
2013.11.05 04:00:09 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.05 04:00:09 2: HMLAN_Parse: HMUSB1 new condition disconnected
2013.11.05 04:00:09 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.11.05 04:00:09 2: HMLAN_Parse: HMUSB1 new condition init
2013.11.05 04:00:11 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.05 04:00:11 2: HMLAN_Parse: HMUSB1 new condition disconnected
2013.11.05 04:00:11 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.11.05 04:00:11 2: HMLAN_Parse: HMUSB1 new condition init
2013.11.05 04:00:13 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.05 04:00:13 2: HMLAN_Parse: HMUSB1 new condition disconnected
2013.11.05 04:00:13 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.11.05 04:00:13 2: HMLAN_Parse: HMUSB1 new condition init
2013.11.05 04:00:17 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.05 04:00:18 2: HMLAN_Parse: HMUSB1 new condition disconnected
2013.11.05 04:00:18 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.11.05 04:00:18 2: HMLAN_Parse: HMUSB1 new condition init
2013.11.05 04:00:18 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.05 04:00:19 2: HMLAN_Parse: HMUSB1 new condition disconnected
2013.11.05 04:00:19 1: 127.0.0.1:1000 reappeared (HMUSB1)
2013.11.05 04:00:19 2: HMLAN_Parse: HMUSB1 new condition init
2013.11.05 04:00:20 2: HMLAN_Parse: HMUSB1 new condition ok
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send data: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't send data: No such device (it may have been disconnected)
Can't release interface: No such device (it may have been disconnected)
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Can't send data: Other error
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
mit -r 09:55
hmland
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 bc 0a 4a 45 H.HM-USB-IF...JE
USB > 0x0010: 51 30 35 33 35 33 32 37 1d b1 fc 42 42 42 00 07 Q0535327...BBB..
USB > 0x0020: 22 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 62ms!
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send data: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Can't send data: No such device (it may have been disconnected)
Can't release interface: No such device (it may have been disconnected)
FHEM
2013.11.06 09:48:17 0: Server started with 20 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user boxusr99, pid 2196)
2013.11.06 09:48:21 3: Device Wohnungstuer added to ActionDetector with 028:00 time
2013.11.06 09:48:21 3: Device Wohnzimmer3 added to ActionDetector with 028:00 time
2013.11.06 09:48:21 3: Device Zimmer added to ActionDetector with 028:00 time
2013.11.06 09:55:23 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.06 09:55:23 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 09:55:23 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.06 09:55:23 2: HMLAN_Parse: hmusb new condition init
2013.11.06 09:55:52 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.06 09:55:52 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 09:55:52 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.06 09:55:52 2: HMLAN_Parse: hmusb new condition init
2013.11.06 09:56:22 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.06 09:56:22 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 09:56:22 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.06 09:56:22 2: HMLAN_Parse: hmusb new condition init
mit { HMLAN_SimpleWrite($defs{hmusb},"B",undef) } und LogLev 0 fürs HMLAN
hmland
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 51ms!
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send data: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
FHEM
2013.11.06 14:18:32 0: HMLAN_Send: hmusb I:K
2013.11.06 14:18:32 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:00507AAB IDcnt:0000
2013.11.06 14:18:57 0: HMLAN_Send: hmusb I:K
2013.11.06 14:18:57 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0050DC8A IDcnt:0000
2013.11.06 14:19:21 0: HMLAN_Send: hmusb I:B
2013.11.06 14:19:22 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:23 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:24 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:25 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:26 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:19:26 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:19:26 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:C
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:T1A0CF04E,04,00,00000000
2013.11.06 14:19:26 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:19:51 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:53 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:54 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:55 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:56 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:19:56 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:19:56 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:C
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:T1A0CF06C,04,00,00000000
2013.11.06 14:19:56 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:20:21 0: HMLAN_Send: hmusb I:K
2013.11.06 14:20:22 0: HMLAN_Send: hmusb I:K
2013.11.06 14:20:23 0: HMLAN_Send: hmusb I:K
2013.11.06 14:20:24 0: HMLAN_Send: hmusb I:K
2013.11.06 16:15:26 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 16:15:26 3: Opening hmusb device 127.0.0.1:1234
2013.11.06 16:15:26 3: hmusb device opened
2013.11.06 16:15:26 2: HMLAN_Parse: hmusb new condition init
2013.11.06 14:31:15 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0006124D IDcnt:0000
2013.11.06 14:31:40 0: HMLAN_Send: hmusb I:K
2013.11.06 14:31:40 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0006742C IDcnt:0000
2013.11.06 14:32:05 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:05 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0006D5EA IDcnt:0000
2013.11.06 14:32:29 3: Unregistering HTTPSRV Homesecurity for URL /Homesecurity...
2013.11.06 14:32:29 1: Including fhem.cfg
2013.11.06 14:32:29 3: telnetPort: port 7072 opened
2013.11.06 14:32:29 3: WEB: port 8083 opened
2013.11.06 14:32:29 3: WEBphone: port 8084 opened
2013.11.06 14:32:29 3: WEBtablet: port 8085 opened
2013.11.06 14:32:29 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:32:29 3: Opening hmusb device 127.0.0.1:1234
2013.11.06 14:32:29 3: hmusb device opened
2013.11.06 14:32:29 2: HMLAN_Parse: hmusb new condition init
2013.11.06 14:32:29 3: Registering HTTPSRV Homesecurity for URL /Homesecurity...
2013.11.06 14:32:29 1: Including ./log/fhem.save
2013.11.06 14:32:34 3: Device Wohnungstuer added to ActionDetector with 028:00 time
2013.11.06 14:32:35 3: Device Wohnzimmer3 added to ActionDetector with 028:00 time
2013.11.06 14:32:35 3: Device Zimmer added to ActionDetector with 028:00 time
2013.11.06 14:32:54 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:55 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:56 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:57 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:58 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:32:58 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:32:58 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:C
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:T1A0CF37A,04,00,00000000
2013.11.06 14:32:58 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:33:23 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:24 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:26 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:27 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:28 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:33:28 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:33:28 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:C
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:T1A0CF398,04,00,00000000
2013.11.06 14:33:28 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:33:53 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:54 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:55 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:56 0: HMLAN_Send: hmusb I:K
root@fritzbox:/var/mod/root# uname -a
Linux fritzbox 2.6.28.10 #1 Mon May 13 14:27:51 CEST 2013 mips GNU/Linux
Linux fritz.fonwlan.box 2.6.28.10 #2 Wed Oct 16 15:33:27 CEST 2013 mips GNU/Linux
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send data: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
Zitat von: johann am 06 November 2013, 20:03:12
...das ist auch ein Unterschied. Bei der FB bleibt hmland hier hängen, wenn ich den Stick abziehe:Code Auswählen
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
Zitat
Auf dem Ubuntu versucht er ständig den Stick wieder zu finden.
hmland -l 127.0.0.1 -p 1234 -d -r 0 -D
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}], 2, 6951) = 1 ([{fd=7, revents=POLLOUT}])
ioctl(7, USBDEVFS_REAPURBNDELAY, 0x7ff0fc40) = 0
clock_gettime(CLOCK_MONOTONIC, {66040, 383251179}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}, {fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 4, 1000) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {66041, 385196766}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}], 2, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {66041, 386193688}) = 0
clock_gettime(CLOCK_MONOTONIC, {66041, 386695983}) = 0
ioctl(7, USBDEVFS_SUBMITURB, 0x416388) = 0
clock_gettime(CLOCK_MONOTONIC, {66041, 387695389}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}], 2, 5927) = 1 ([{fd=7, revents=POLLOUT}])
ioctl(7, USBDEVFS_REAPURBNDELAY, 0x7ff0fc40) = 0
clock_gettime(CLOCK_MONOTONIC, {66041, 407128630}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}, {fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 4, 1000) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {66042, 409170226}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}], 2, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {66042, 410179136}) = 0
clock_gettime(CLOCK_MONOTONIC, {66042, 410671099}) = 0
ioctl(7, USBDEVFS_SUBMITURB, 0x416388) = 0
clock_gettime(CLOCK_MONOTONIC, {66042, 411632418}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}], 2, 4903) = 1 ([{fd=7, revents=POLLOUT}])
ioctl(7, USBDEVFS_REAPURBNDELAY, 0x7ff0fc40) = 0
clock_gettime(CLOCK_MONOTONIC, {66042, 431160373}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}, {fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 4, 1000) = 1 ([{fd=7, revents=POLLOUT|POLLERR|POLLHUP}])
clock_gettime(CLOCK_MONOTONIC, {66043, 354046193}) = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLOUT}], 2, 0) = 1 ([{fd=7, revents=POLLOUT|POLLERR|POLLHUP}])
write(2, "Interrupt transfer not completed"..., 34) = 34
write(2, "Unknown error code 5 / 0x05", 27) = 27
write(2, "!\n", 2) = 2
write(2, "closing device-connection due to"..., 39) = 39
write(2, "5", 1) = 1
write(2, "\n", 1) = 1
write(2, "hmcfgusb_poll", 13) = 13
write(2, ": ", 2) = 2
write(2, "Input/output error", 18) = 18
write(2, "\n", 1) = 1
ioctl(7, SNDRV_CTL_IOCTL_ELEM_LIST or USBDEVFS_RELEASEINTERFACE, 0x7ff0fdd4) = -1 ENODEV (No such device)
write(2, "Can't release interface: ", 25) = 25
write(2, "No such device (it may have been"..., 46) = 46
write(2, "\n", 1) = 1
write(6, "\1", 1) = 1
read(5, "\1", 1) = 1
close(7) = 0
close(5) = 0
close(6) = 0
futex(0x416188, FUTEX_WAKE, 2147483647) = 0
futex(0x416118, FUTEX_WAIT_PRIVATE, 2147483647, NULLProcess 1658 detached
<detached ...>
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLOUT}], 3, 0) = 1 ([{fd=8, revents=POLLOUT}])
ioctl(8, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff912739a8) = 0
timerfd_settime(7, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
write(2, "Interrupt transfer not completed"..., 63) = 63
write(2, "closing device-connection due to"..., 41) = 41
write(2, "hmcfgusb_poll: Input/output erro"..., 34) = 34
ioctl(8, USBDEVFS_RELEASEINTERFACE, 0x7fff91273a3c) = 0
write(6, "\1", 1) = 1
read(5, "\1", 1) = 1
close(8) = 0
shutdown(4, 2 /* send and receive */) = 0
close(4) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2246, ...}) = 0
write(1, "2013-11-07 17:47:15.018312: Conn"..., 60) = 60
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fff91273980) = 0
accept(3, {sa_family=AF_INET, sin_port=htons(38969), sin_addr=inet_addr("127.0.0.1")}, [16]) = 4
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2246, ...}) = 0
write(1, "2013-11-07 17:47:16.020279: Clie"..., 56) = 56
openat(AT_FDCWD, "/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 8
getdents(8, /* 14 entries */, 32768) = 384
open("/sys/bus/usb/devices/1-1/busnum", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4175fc8000
read(9, "1\n", 4096) = 2
close(9) = 0
munmap(0x7f4175fc8000, 4096) = 0
open("/sys/bus/usb/devices/1-1/devnum", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4175fc8000
read(9, "2\n", 4096) = 2
usb-transfer took 44ms!
2013-11-07 21:57:42.905373: LAN > K
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 bc 0a 4a 45 H.HM-USB-IF...JE
USB > 0x0010: 51 30 35 33 35 33 32 37 1d b1 fc 42 42 42 00 b5 Q0535327...BBB..
USB > 0x0020: 0b ea 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2013-11-07 21:57:42.960996: LAN < HHM-LAN-IF,03BC,JEQ0535327,1DB1FC,424242,00B50BEA,0000
usb-transfer took 53ms!
Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
2013-11-07 21:57:49.708630: Connection to 127.0.0.1 closed!
2013-11-07 21:57:50.709127: Client 127.0.0.1 connected!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2013-11-07 21:57:50.745626: Connection to 127.0.0.1 closed!
2013-11-07 21:57:51.746804: Client 127.0.0.1 connected!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2013-11-07 21:57:51.747749: Connection to 127.0.0.1 closed!
2013-11-07 21:57:52.750342: Client 127.0.0.1 connected!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2013-11-07 21:57:52.751418: Connection to 127.0.0.1 closed!
2013-11-07 21:57:53.752007: Client 127.0.0.1 connected!
Can't find/open hmcfgusb!
/shared/soft/src/fritzbox/7390/freetz-devel/source/target-mips_gcc-4.7.3_uClibc-0.9.33.2-nptl/hmcfgusb
CFLAGS=-march=24kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
LDLIBS=-lusb-1.0
CC=/shared/soft/src/fritzbox/7390/freetz-devel/toolchain/build/mips_gcc-4.7.3_uClibc-0.9.33.2-nptl/mips-linux-uclibc/bin/mips-linux-uclibc-gcc
HMLAN_OBJS=hmcfgusb.o hmland.o
HMSNIFF_OBJS=hmcfgusb.o hmsniff.o
OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS)
all: hmland hmsniff
DEPEND=$(OBJS:.o=.d)
-include $(DEPEND)
hmland: $(HMLAN_OBJS)
hmsniff: $(HMSNIFF_OBJS)
clean:
rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(DEPEND) hmland hmsniff
.PHONY: all clean
USB < 0x0000: 54 1a 0f ee ff 04 00 00 00 00 00 00 00 00 00 00 T...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 55ms!
Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
2013-11-08 20:50:58.149743: Connection to 127.0.0.1 closed!
2013-11-08 20:50:59.151563: Client 127.0.0.1 connected!
Vendor:Device = 058f:6366
Vendor:Device = 1d6b:0001
Vendor:Device = 1d6b:0002
Vendor:Device = 058f:6366
Vendor:Device = 1d6b:0001
Vendor:Device = 1d6b:0002
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2013-11-08 20:50:59.198200: Connection to 127.0.0.1 closed!
2013-11-08 20:51:00.198724: Client 127.0.0.1 connected!
Vendor:Device = 058f:6366
Vendor:Device = 1d6b:0001
Vendor:Device = 1d6b:0002
Vendor:Device = 058f:6366
Vendor:Device = 1d6b:0001
Vendor:Device = 1d6b:0002
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
for (i = 0; i < cnt; i++){
struct libusb_device_descriptor desc;
err = libusb_get_device_descriptor(list[i], &desc);
fprintf(stderr, "Vendor:Device = %04x:%04x\n", desc.idVendor, desc.idProduct);
if (err)
continue;
if ((desc.idVendor == vid) && (desc.idProduct == pid)) {
libusb_device *dev = list[i];
libusbx: error [_open_sysfs_attr] open /sys/bus/usb/devices/2-1/descriptors failed ret=-1 errno=2
Zitat von: Alex am 07 November 2013, 21:27:26
Wie/wo muss ich bei Debian den Befehl eintragen damit der Dienst beim Neustart mit startet?
struct hmcfgusb_dev *hmcfgusb_init(hmcfgusb_cb_fn cb, void *data)
{
libusb_device_handle *devh = NULL;
const struct libusb_pollfd **usb_pfd = NULL;
struct hmcfgusb_dev *dev = NULL;
struct hmcfgusb_cb_data *cb_data = NULL;
int bootloader = 0;
int err;
int i;
err = libusb_init(NULL);
if (err != 0) {
fprintf(stderr, "Can't initialize libusb: %s\n", usb_strerror(err));
return NULL;
}
libusb_set_debug(NULL, 3); //Ralf: set verbosity level to 3, as suggested in the documentation
devh = hmcfgusb_find(ID_VENDOR, ID_PRODUCT);
if (!devh) {
devh = hmcfgusb_find(ID_VENDOR, ID_PRODUCT_BL);
if (!devh) {
fprintf(stderr, "Can't find/open hmcfgusb!\n");
libusb_exit(NULL); //Ralf
return NULL;
}
bootloader = 1;
}
dev = malloc(sizeof(struct hmcfgusb_dev));
if (!dev) {
perror("Can't allocate memory for hmcfgusb_dev");
return NULL;
}
Zitat von: johann am 10 November 2013, 20:49:00
Es scheint zu funktionieren. Ich kann den Stick abziehen und wieder anstecken oder ein Reboot auslösen, er ist wieder ansprechbar. Nach dem der Stick nicht in der Liste gefunden wurde, habe ich ein libusb_exit(NULL); "Deinitialize libusb" eingefügt.
Zitat von: kud am 14 November 2013, 10:02:12
Wie starte und stoppe ich hmland auf einem RasbPi am elegantesten ?
In der /etc/init.d/fhem ? (Start/Stop-Parameter)
define Func_Start_Init_W watchdog . 00:00:01 SAME {system("ps | grep hmland | grep -v -q grep || /opt/fhem/hmland -d -p 1234");;}
#!/bin/sh
# Startup script for the HM-CFG-USB to HMLAN emulator
#
#
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: hmland daemon
### END INIT INFO
set -e
cd /opt/fhem
case "$1" in
'start')
echo "Starting hmland..."
/opt/fhem/hmland -d -p 2129
RETVAL=$?
;;
'stop')
echo "Stopping hmland..."
killall hmland
RETVAL=$?
;;
'status')
cnt=`ps -ef | grep "hmland" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "hmland is not running"
else
echo "hmland is running"
fi
;;
*)
echo "Usage: $0 { start | stop | status }"
RETVAL=1
;;
esac
exit $RETVAL
update-rc.d hmland defaults
update-rc.d -f fhem remove
update-rc.d fhem defaults
define <CUL> CUL /dev/ttyACM0@9600 5432
attr <HMUSB> hmId F15432
Zitat von: marc2 am 27 Oktober 2013, 19:55:47Hallo Marc,
Wenn Du mit einem USB-Hub an der 7390 arbeiten solltest, würde mich Modell und Timings
des hmland interessieren.
Zitat
#!/bin/sh
home=/var/InternerSpeicher/fhem
cd $home
trap "" SIGHUP
modprobe cdc_acm
modprobe ftdi_sio
sleep 2
ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd
PATH=$home:$PATH
export PATH
export LD_LIBRARY_PATH=$home/lib
export PERL5LIB=$home/lib/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2
ps | grep hmland | grep -v -q grep || $home/lib/hmland -l 127.0.0.1 -p 1000 -d
sleep 2
# add user fhem with uid of boxusr80/boxusr99 (== ftpuser)
# Comment/delete everything between START and END to run FHEM as root
## START:fhem-user
id fhem > /dev/null 2>&1
if test "$?" -ne "0"; then
grep -q 1099 /etc/passwd;
if test $? -eq "0"; then
echo "fhem:any:1099:0:fhem:/home-not-used:/bin/sh" >>/var/tmp/passwd
else
echo "fhem:any:1080:0:fhem:/home-not-used:/bin/sh" >>/var/tmp/passwd
fi
chown -R fhem FHEM docs log www
chown fhem . *
chown root dfu-programmer
chmod u+s dfu-programmer
fi
## END:fhem-user
perl fhem.pl fhem.cfg
Zitat2013.11.20 21:23:08 1: Including fhem.cfg
2013.11.20 21:23:09 3: telnetPort: port 7072 opened
2013.11.20 21:23:11 3: WEB: port 8083 opened
2013.11.20 21:23:11 3: WEBphone: port 8084 opened
2013.11.20 21:23:11 3: WEBtablet: port 8085 opened
2013.11.20 21:23:13 3: Opening fbaha device localhost:2002
2013.11.20 21:23:13 3: Can't connect to localhost:2002: Connection refused
2013.11.20 21:23:13 3: Opening CUL_0 device /dev/ttyACM0
2013.11.20 21:23:14 3: Setting CUL_0 baudrate to 38400
2013.11.20 21:23:14 3: CUL_0 device opened
2013.11.20 21:23:14 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
2013.11.20 21:23:14 1: HMLAN_Parse: hmusb new condition disconnected
2013.11.20 21:23:14 3: Opening hmusb device 127.0.0.1:1000
2013.11.20 21:23:14 3: Can't connect to 127.0.0.1:1000: Connection refused
2013.11.20 21:23:14 1: Including ./log/fhem.save
2013.11.20 21:23:15 1: usb create starting
2013.11.20 21:23:15 1: usb create end
Zitat von: fiedel am 15 November 2013, 09:52:12
Hi,
das habe ich auf meinem Debian Squeeze probiert. Also Startscript für hmland erstellt, Abhängigkeiten gesetzt und dann das Startscript für FHEM neu erzeugen lassen, sodass hmland mit einer "01" startet und FHEM mit einer "02". Hat auch funktioniert, allerdings hat nun FHEM sehr lange zum starten gebraucht - auch bei einfachem "shutdown restart". Ich hatte dann noch ein wenig damit rumexperimentiert, ohne dass ich das Verhalten verbessern konnte.
Letztendlich rufe ich hmland aus FHEM auf mit folgendem Befehl:Code Auswählen
define Func_Start_Init_W watchdog . 00:00:01 SAME {system("ps | grep hmland | grep -v -q grep || /opt/fhem/hmland -d -p 1234");;}
Das startet hmland beim Start von fhem, aber nur dann, wenn hmland noch nicht aktiv ist.
Zitat#!/bin/sh
home=/var/InternerSpeicher/fhem
cd $home
trap "" SIGHUP
modprobe cdc_acm
modprobe ftdi_sio
sleep 2
ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd
PATH=$home:$PATH
export PATH
export LD_LIBRARY_PATH=$home/lib
export PERL5LIB=$home/lib/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2
# ps | grep hmland | grep -v -q grep || $home/lib/hmland -l 127.0.0.1 -p 1000 -d
ps | grep hmland | grep -v -q grep || $home/lib/hmland -p 1234 -d
sleep 2
# add user fhem with uid of boxusr80/boxusr99 (== ftpuser)
# Comment/delete everything between START and END to run FHEM as root
## START:fhem-user
id fhem > /dev/null 2>&1
if test "$?" -ne "0"; then
grep -q 1099 /etc/passwd;
if test $? -eq "0"; then
echo "fhem:any:1099:0:fhem:/home-not-used:/bin/sh" >>/var/tmp/passwd
else
echo "fhem:any:1080:0:fhem:/home-not-used:/bin/sh" >>/var/tmp/passwd
fi
chown -R fhem FHEM docs log www
chown fhem . *
chown root dfu-programmer
chmod u+s dfu-programmer
fi
## END:fhem-user
perl fhem.pl fhem.cfg
Zitatattr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global motd SecurityCheck:\
\
WEB,WEBphone,WEBtablet has no basicAuth attribute.\
telnetPort has no password/globalpassword attribute.\
\
Restart fhem for a new check if the problem is fixed,\
or set the global attribute motd to none to supress this message.\
attr global sendStatistics never
attr global statefile ./log/fhem.save
attr global userattr devStateIcon devStateStyle icon sortby webCmd
attr global verbose 3
define telnetPort telnet 7072 global
define WEB FHEMWEB 8083 global
define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen
define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad
# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
define autocreate autocreate
attr autocreate autosave 1
attr autocreate device_room %TYPE
attr autocreate filelog ./log/%NAME-%Y.log
attr autocreate weblink 1
attr autocreate weblink_room Plots
# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create
# If the above notify did not helped, then you probably have to enable some of
# the following lines. Verify first that /dev/xxx ist correct.
#define FHZ FHZ /dev/USB0
#define CUL CUL /dev/ttyACM0@38400 1234
#attr CUL rfmode HomeMatic
#define EUL TCM 310 /dev/ttyACM0@38400
#define BscBor TCM 120 /dev/ttyUSB0@9600
#define BscSmartConnect TCM 310 /dev/ttyUSB0@57600
define fbaha FBAHA localhost:2002
define CUL_0 CUL /dev/ttyACM0@38400 1034
define Kuechenzeile FS20 3008 10
attr Kuechenzeile eventMap /off:Aus/on:An/
attr Kuechenzeile group Licht
attr Kuechenzeile model fs20su
attr Kuechenzeile room Kueche
define Tischbeleuchtung FS20 3008 11
attr Tischbeleuchtung eventMap /off:Aus/on:An/
attr Tischbeleuchtung group Licht
attr Tischbeleuchtung model fs20su
attr Tischbeleuchtung room Kueche
define Rolladen_Fenster FS20 3008 13
attr Rolladen_Fenster eventMap /off:Ab/on:Auf/
attr Rolladen_Fenster group Rolladen
attr Rolladen_Fenster model fs20rsu
attr Rolladen_Fenster room Kueche
define Rolladen_Tuer FS20 3008 12
attr Rolladen_Tuer eventMap /off:Ab/on:Auf/
attr Rolladen_Tuer group Rolladen
attr Rolladen_Tuer model fs20rsu
attr Rolladen_Tuer room Kueche
#Kueche
#Rolladen unter der Woche
define rolladenfenster at *20:00:03 { fhem("set Rolladen_Fenster off") if (!$we) }
define rolladentuer at *20:00:00 { fhem("set Rolladen_Tuer off") if (!$we) }
define rolladenfensterauf at *07:00:00 { fhem("set Rolladen_Fenster on") if (!$we) }
define rolladentueron at *07:00:03 { fhem("set Rolladen_Tuer on") if (!$we) }
#
#Rolladen am Wochenende
define rolladenfensterwe at *20:00:00 { fhem("set Rolladen_Fenster off") if ($we) }
define rolladentuerwe at *21:00:00 { fhem("set Rolladen_Tuer off") if ($we) }
define rolladenfensteraufwe at *07:00:00 { fhem("set Rolladen_Fenster on") if ($we) }
define rolladentueronwe at *07:00:03 { fhem("set Rolladen_Tuer on") if ($we) }
#
#Licht aus unter der Woche
define kuechenlichtaus at *23:15:00 { fhem("set Tischbeleuchtung off ;; set Kuechenzeile off") if(!$we)}
#
#Licht aus am Wochenende
define kuechenlichtauswe at *01:00:00 { fhem("set Tischbeleuchtung off ;; set Kuechenzeile off") if($we)}
Zitat2013.11.21 17:24:46 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2013.11.21 17:24:46 0: Server started with 25 defined entities (version $Id: fhem.pl 4251 2013-11-19 13:44:02Z rudolfkoenig $, os linux, user boxusr99, pid 2989)
2013.11.21 17:25:54 1: Including fhem.cfg
2013.11.21 17:25:54 3: telnetPort: port 7072 opened
2013.11.21 17:25:54 3: WEB: port 8083 opened
2013.11.21 17:25:54 3: WEBphone: port 8084 opened
2013.11.21 17:25:54 3: WEBtablet: port 8085 opened
2013.11.21 17:25:54 3: Opening fbaha device localhost:2002
2013.11.21 17:25:54 3: Can't connect to localhost:2002: Connection refused
2013.11.21 17:25:54 3: Opening CUL_0 device /dev/ttyACM0
2013.11.21 17:25:54 3: Setting CUL_0 baudrate to 38400
2013.11.21 17:25:54 3: CUL_0 device opened
2013.11.21 17:25:54 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
2013.11.21 17:25:54 1: Including ./log/fhem.save
2013.11.21 17:26:39 2: wrong syntax: define <name> HMLAN ip[:port]
2013.11.21 17:26:39 1: define: wrong syntax: define <name> HMLAN ip[:port]
2013.11.21 17:26:46 1: HMLAN_Parse: hmusb new condition disconnected
2013.11.21 17:26:46 3: Opening hmusb device 127.0.0.1:1000
2013.11.21 17:26:46 3: Can't connect to 127.0.0.1:1000: Connection refused
root@fritzbox:/var/media/ftp/fhem# ps | grep hmlan | grep -v grep
32204 root 1136 S < /var/media/ftp/bin/hmland -l 127.0.0.1 -p 1000 -d -r 04:00
root@fritzbox:/var/media/ftp/fhem# netstat -an | grep LISTEN | grep ":1000"
tcp 0 0 127.0.0.1:1000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
Zitat/var/InternerSpeicher/fhem/startfhem: line 19: /var/InternerSpeicher/fhem/lib/hmland: Permission denied
Zitat/var/InternerSpeicher/fhem/lib/hmland: can't load library 'libusb-1.0.so.0'
2013.11.23 19:06:36 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.23 19:06:36 3: Opening hmusb device 127.0.0.1:1000
2013.11.23 19:06:36 3: Can't connect to 127.0.0.1:1000: Connection refused
Zitat/var/InternerSpeicher/fhem/startfhem: line 19:c: Permission denied
chmod 750 /var/InternerSpeicher/fhem/lib/hmland
Zitat/var/InternerSpeicher/fhem/lib/hmland: can't load library 'libusb-1.0.so.0'
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/InternerSpeicher/fhem/lib
#!/bin/sh
home=/var/InternerSpeicher/fhem
cd $home
trap "" SIGHUP
modprobe cdc_acm
modprobe ftdi_sio
sleep 2
ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd
PATH=$home:$PATH
export PATH
export LD_LIBRARY_PATH=$home/lib
export PERL5LIB=$home/lib/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2
chmod 750 /var/InternerSpeicher/fhem/lib/hmland
ps | grep hmland | grep -v -q grep || $home/lib/hmland -p 1234 -D - r 03:00
sleep 2
perl fhem.pl fhem.cfg
2013.11.27 14:32:10 0: Server shutdown
2013.11.27 14:32:14 1: Including fhem.cfg
2013.11.27 14:32:15 3: telnetPort: port 7072 opened
2013.11.27 14:32:16 3: WEB: port 8083 opened
2013.11.27 14:32:16 3: WEBphone: port 8084 opened
2013.11.27 14:32:16 3: WEBtablet: port 8085 opened
2013.11.27 14:32:16 3: Opening fbaha device localhost:2002
2013.11.27 14:32:16 3: fbaha device opened
2013.11.27 14:32:16 1: FBAHA fbaha registered with handle: 0000001c
2013.11.27 14:32:16 3: Opening CUL_0 device /dev/ttyACM0
2013.11.27 14:32:17 3: Setting CUL_0 baudrate to 38400
2013.11.27 14:32:17 3: CUL_0 device opened
2013.11.27 14:32:17 3: CUL_0: Possible commands: BCFiAGMRTVWXefmltux
2013.11.27 14:32:19 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.27 14:32:19 3: Opening hmusb device 127.0.0.1:1234
2013.11.27 14:32:19 3: Can't connect to 127.0.0.1:1234: Connection refused
2013.11.27 14:32:19 1: Including ./log/fhem.save
2013.11.27 14:32:19 1: statefile: Please define SVG_FileLog_PIRA_1_1 first
2013.11.27 14:32:19 1: usb create starting
2013.11.27 14:32:20 1: usb create end
2013.11.27 14:32:20 2: SecurityCheck: Running with root privileges. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2013.11.27 14:32:20 0: Server started with 91 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user root, pid 11094)
2013.11.27 14:32:21 3: telnetForBlockingFn: port 32910 opened
define hmusb HMLAN 127.0.0.1:1234
attr hmusb hmId 424242
attr hmusb hmLanQlen 1_min
attr hmusb wdTimer 25
Zitat2013.11.28 12:00:47 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.28 12:00:47 3: Opening hmusb device 127.0.0.1:50001
2013.11.28 12:00:47 3: Can't connect to 127.0.0.1:50001: Connection refused
2013.11.28 12:00:47 1: Including ./log/fhem.save
2013.11.28 12:00:48 1: usb create starting
2013.11.28 12:00:48 1: usb create end
/var/media/ftp/bin/hmland -l 127.0.0.1 -p 1000 -d -r 04:00 >[b] /var/media/ftp/fhem/log/hmland.log[/b] 2>&1
Zitat./hmland: can't load library 'libusb-1.0.so.0'
ZitatDaemon with PID 9364 started!
Zitat#!/bin/sh
home=/var/InternerSpeicher/fhem
cd $home
trap "" SIGHUP
modprobe cdc_acm
modprobe ftdi_sio
sleep 2
ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd
PATH=$home:$PATH
export PATH
export LD_LIBRARY_PATH=$home/lib
export PERL5LIB=$home/lib/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2
#chmod 750 /var/InternerSpeicher/fhem/lib/hmland
ps | grep hmland | grep -v -q grep || $home/lib/hmland -l 127.0.0.1 -p 1000 -D -r 04:00
# >/var/media/ftp/fhem/log/hmland.log 2>&1
sleep 2
perl fhem.pl fhem.cfg
Zitat2013.11.29 12:07:30 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.29 12:07:30 3: Opening hmusb device 127.0.0.1:1000
2013.11.29 12:07:30 3: hmusb device opened
2013.11.29 12:07:30 2: HMLAN_Parse: hmusb new condition init
2013.11.29 12:07:30 1: Including ./log/fhem.save
2013.11.29 12:07:30 1: usb create starting
2013.11.29 12:07:31 1: usb create end
Zitat von: marc2 am 03 Dezember 2013, 23:08:26
Hallo Loctotex !
Ich bin nicht wirklich ein Kleinweich Freund, und würde mein Glück daher ggf. mit Cygwin probieren.
$ make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
hmland.c:50:1: Warnung: »optarg« ohne Attribut »dllimport« redeklariert: vorheriges »dllimport« ignoriert [-Wattributes]
extern char *optarg;
^
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
hmcfgusb.c:57:0: Warnung: »INTERFACE« redefiniert [standardmäßig aktiviert]
#define INTERFACE 0
^
In file included from /usr/include/w32api/windows.h:108:0,
from /usr/include/libusb-1.0/libusb.h:40,
from hmcfgusb.c:33:
/usr/include/w32api/commdlg.h:575:0: Anmerkung: dies ist die Stelle der vorherigen Definition
#define INTERFACE IPrintDialogServices
^
hmcfgusb.c: In Funktion »hmcfgusb_init«:
hmcfgusb.c:348:2: Warnung: Übergabe des Arguments 2 von »hmcfgusb_prepare_int« von inkompatiblem Zeigertyp [standardmäßig aktiviert]
dev->transfer = hmcfgusb_prepare_int(devh, hmcfgusb_interrupt, cb_data);
^
hmcfgusb.c:204:32: Anmerkung: »libusb_transfer_cb_fn« erwartet, aber Argument hat Typ »void (*)(struct libusb_transfer *)«
static struct libusb_transfer *hmcfgusb_prepare_int(libusb_device_handle *devh, libusb_transfer_cb_fn cb, void *data)
^
gcc -L/opt/local/lib hmland.o hmcfgusb.o -lusb-1.0 -o hmland
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmsniff.o hmsniff.c
gcc -L/opt/local/lib hmsniff.o hmcfgusb.o -lusb-1.0 -o hmsniff
#! /bin/sh
# /etc/init.d/hmcfgusb
PID=/var/run/hmland.pid
case "$1" in
start)
echo "Starting hmland"
/usr/local/bin/hmcfgusb/hmland -p 1234 -l 127.0.0.1 -d -r 03:33 -P
sleep 2
if [ ! -f $PID ]; then
echo "Could not start hmland"
fi
;;
stop)
echo "Stopping hmland"
pkill -F $PID
sleep 2
if [ -f $PID ]; then
echo "Could not stop hmland"
fi
;;
*)
echo "Usage: /etc/init.d/hmcfgusb {start|stop}"
exit 1
;;
esac
exit 0
update-rc.d hmcfgusb defaults
Zitat von: mere am 06 Dezember 2013, 17:10:21
Hallo zusammen,
ich habe mit Interesse diesen Beitrag verfolgt und konnte auch als Newbie sehr einfach und schnell auf meinem Raspberry, zusammen mit FHEM, den USB-Stick zum Fliegen bekommen. Jetzt bin ich am testen mit einem HM-CC-RT-DN Thermostat (aktuell mein einziges Homematic-Device). das Pairen funktionert über das Autosave in FHEM problemlos. Aber irgendwie war es dann damit auch erledigt. Es findet danach keine Kommunikation mehr statt. Ich kann zwar ein getConfig auslösen, was im Log auftaucht aber Antwort bekomme ich darauf keine und der Zeitstempel für LastRcv verbleibt auf dem Zeitpunkt der Kopplung.
Was mache ich noch falsch?
Gruss
Zitat von: b_s101 am 13 Dezember 2013, 17:34:42
Hi,
erstmal vielen Dank für das Tool. Ich habe meine Pläne für den Einsatz von Homematic schon schwinden sehen bevor ich überhaupt mit FHEM anfangen konnte. Aber der erste Teil war keine richtige Hürde.
Falls jemand ein Startscript für Debian (und Derivate) benötigt:Code Auswählen#! /bin/sh
# /etc/init.d/hmcfgusb
PID=/var/run/hmland.pid
case "$1" in
start)
echo "Starting hmland"
/usr/local/bin/hmcfgusb/hmland -p 1234 -l 127.0.0.1 -d -r 03:33 -P
sleep 2
if [ ! -f $PID ]; then
echo "Could not start hmland"
fi
;;
stop)
echo "Stopping hmland"
pkill -F $PID
sleep 2
if [ -f $PID ]; then
echo "Could not stop hmland"
fi
;;
*)
echo "Usage: /etc/init.d/hmcfgusb {start|stop}"
exit 1
;;
esac
exit 0
Die Zeile für den Aufruf von hmland muss ggf. angepasst werden.
Das Script am besten als /etc/init.d/hmcfgusb speichern, ausführbar machen und mitCode Auswählenupdate-rc.d hmcfgusb defaults
beim Systemstart starten.
Zitat von: volschin am 14 Dezember 2013, 14:11:37OK, danke für die "Beruhigung", dann habe ich wohl zumindest kein Hardwareproblem mit meinem guten alten Heimserver, der kaum 20W braucht, aber hier eine ganze Reihe an "Services" bereitstellt... 8)
Alles unter 100ms ist eigentlich gut brauchbar, selbst darüber funktioniert es meistens noch.
#!/bin/sh
# /etc/init.d/hmland
# Startup script for the HM-CFG-USB to HMLAN emulator
pidfile=/var/run/hmland.pid
port=1234
case "$1" in
start|"")
/opt/hmcfgusb/hmland -d -P -l 192.168.0.5 -p $port
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
Zitat von: betateilchen am 14 Dezember 2013, 17:03:00
warum um alles in der Welt hast Du ein eigenes Script zum Starten von hmland angelegt? Pack doch den hmland Aufruf einfach mit in die fhem-Startdatei und alles wird gut.
Zitat von: IROC_KNX am 14 Dezember 2013, 17:18:20
Weil ich es so verstanden hatte, dass man es über ein Script machen muss.
Was kann ich denn nun machen damit überhaupt nochmal fhem von alleine startet?
Zitat von: HerrDesChaos234 am 16 Dezember 2013, 23:49:39Lies mal den Beitrag direkt über Deinem!
Nicht zwingend nötig, aber rein aus Interesse: Kann man den HM-CFG-USB an einen Router mit DD-WRT packen und dann vom RaspberryPi darauf zugreifen? Ich gehe davon aus das ich hmland nicht auf dem Router laufen lassen kann.
Zitat von: Loctotex am 16 Dezember 2013, 20:57:57
Die neuste Version kann ich unter Cygwin nicht mehr compilieren :(
/hmcfgusb/hmcfgusb.c:475: undefined reference to `libusb_handle_events_timeout_completed'
collect2: Fehler: ld gab 1 als Ende-Status zurück
<builtin>: recipe for target 'hmland' failed
make: *** [hmland] Error 1
Zitat von: ramonh2712 am 19 Dezember 2013, 11:32:41bedeutet, dass Du die AVM-Version von Fhem installiert hast, solltest Du erst noch in Erwägung ziehen, auf die Version 5.5 von fhem.de umzustellen.
Auf der Fritzbox selber habe ich FHEM bereits installiert (via Firmwareupdate). Die "libusb-1.0.9.tar.bz2" und die "hmcfgusb-HEAD-58151f8.tar.gz" Datei habe ich mir auch schon besorgt.
Hallo zusammen,
hat jemand den HM-CFG-USB in einer Remote-Konfiguration im Einsatz?
2013-12-26 13:23:12.026391: Client 127.0.0.1 connected!
Can't open device: Access denied (insufficient permissions)
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2013-12-26 13:23:12.044937: Connection to 127.0.0.1 closed!
Zitat von: ramonh2712 am 19 Dezember 2013, 15:56:21Wie hast du von der AVM-Labor auf die fhem.de-Version umgestellt?
Hallo Peter,
es ist bereits Verson 5.5 von der FHEM Homepage.
Mir geht es hauptsächlich darum, zu erfahren wo genau ich die jeweiligen Dateien speichern muss und wie genau ich das ganze einbinde.
Zitat von: ramonh2712 am 19 Dezember 2013, 15:56:21
Hallo Peter,
es ist bereits Verson 5.5 von der FHEM Homepage.
Mir geht es hauptsächlich darum, zu erfahren wo genau ich die jeweiligen Dateien speichern muss und wie genau ich das ganze einbinde.
Bus 001 Device 004: ID 1b1f:c00f
usb-transfer took more than 100ms (609ms), this may lead to timing problems!
usb-transfer took more than 100ms (573ms), this may lead to timing problems!
2013.12.27 16:48:23 1: 127.0.0.1:1234 reappeared (hmusb)
2013.12.27 16:48:23 2: HMLAN_Parse: hmusb new condition init
2013.12.27 16:49:39 2: CUL_HM set BZ.Heizung_Climate_tr desired-temp 22.0
2013.12.27 16:49:41 2: HMLAN_Parse: hmusb new condition ok
2013.12.27 16:54:06 2: CUL_HM set BZ.Heizung_Climate_tr desired-temp 21.5
2013.12.27 17:15:56 2: CUL_HM set BZ.Heizung_Climate_tr desired-temp 16.0
2013.12.27 17:16:04 2: HMLAN_Parse: hmusb new condition Warning-HighLoad
2013.12.27 17:16:20 2: HMLAN_Parse: hmusb new condition ERROR-Overload
2013.12.27 17:22:20 2: HMLAN_Parse: hmusb new condition Overload-released
hmland -l 127.0.0.1 -p 1000 -d > /var/media/ftp/hmland.log 2>&1
Zitat von: HerrDesChaos234 am 31 Dezember 2013, 04:01:20Was verwendet ihr denn auf dem BBB
Zitat von: HerrDesChaos234 am 31 Dezember 2013, 04:01:20und bekommt man da FHEM genau so Problemlos zum laufen wie auf dem Pi?
Zitat von: jab am 03 Januar 2014, 18:11:45
So ich hab mal hmland mit höherer Priorität getestet auf dem Raspberry Pi. Damit klappt es hervorragend. Keinerlei Timeouts mehr. Ich starte es dann so:
chrt 30 /opt/hmcfgusb/hmland -d -P -l 127.0.0.1 -p $port 2>&1 > /var/log/hmland.log
Mein Initscript hänge ich mal an falls es noch jemand nutzen will.
Gruß,
Jan
Daemon with PID 2503 started!
usb-transfer took more than 100ms (991ms), this may lead to timing problems!
Can't send null frame: Input/output error
usb-transfer took more than 100ms (109ms), this may lead to timing problems!
usb-transfer took more than 100ms (569ms), this may lead to timing problems!
usb-transfer took more than 100ms (260ms), this may lead to timing problems!
usb-transfer took more than 100ms (271ms), this may lead to timing problems!
usb-transfer took more than 100ms (307ms), this may lead to timing problems!
usb-transfer took more than 100ms (532ms), this may lead to timing problems!
usb-transfer took more than 100ms (263ms), this may lead to timing problems!
usb-transfer took more than 100ms (194ms), this may lead to timing problems!
usb-transfer took more than 100ms (186ms), this may lead to timing problems!
usb-transfer took more than 100ms (274ms), this may lead to timing problems!
usb-transfer took more than 100ms (307ms), this may lead to timing problems!
usb-transfer took more than 100ms (533ms), this may lead to timing problems!
Can't send null frame: Input/output error
usb-transfer took more than 100ms (271ms), this may lead to timing problems!
usb-transfer took more than 100ms (149ms), this may lead to timing problems!
usb-transfer took more than 100ms (262ms), this may lead to timing problems!
usb-transfer took more than 100ms (157ms), this may lead to timing problems!
usb-transfer took more than 100ms (757ms), this may lead to timing problems!
usb-transfer took more than 100ms (272ms), this may lead to timing problems!
usb-transfer took more than 100ms (280ms), this may lead to timing problems!
usb-transfer took more than 100ms (279ms), this may lead to timing problems!
usb-transfer took more than 100ms (561ms), this may lead to timing problems!
usb-transfer took more than 100ms (269ms), this may lead to timing problems!
usb-transfer took more than 100ms (15307ms), this may lead to timing problems!
usb-transfer took more than 100ms (113ms), this may lead to timing problems!
usb-transfer took more than 100ms (227ms), this may lead to timing problems!
usb-transfer took more than 100ms (916ms), this may lead to timing problems!
Zitat von: juppzupp am 07 Januar 2014, 07:56:26
Wie sieht die load auf dem rpi aus?
Zitat von: juppzupp am 07 Januar 2014, 07:56:26Nur der HM-USB Konfigurator. Zwischen dem USB-HM und dem RPie ist noch das weiße USB-Verlängerungskabel. Aber das sollte ja kein Problem sein, oder? Ich werde morgen das ganze auch noch einmal direkt am RPie testen.
Was hängt noch am USB?
Zitat von: juppzupp am 07 Januar 2014, 07:56:26Wie kann ich das auslesen? Bzw. loggen?
Hast du viel last (gewollt / ungewollt) auf dem Ethernet (hängt auch am USB)?
Zitat von: juppzupp am 07 Januar 2014, 07:56:26dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Welche Parameter bekommt der kernel beim boot, was steht in der cmdline.txt?
Zitat von: juppzupp am 07 Januar 2014, 07:56:26Auf dem ersten Blick (bin da kein Profi) sieht es "ok" aus. im Kernel-Log steht nur was, wenn ich den RPie neugestartet habe.
Andere Auffälligkeiten im log des rpi? (Kern.log etc)
Zitat von: cotecmania am 10 Januar 2014, 11:15:31Du könntest mal das versuchen:
Hallo Veit,
ich komme aus der Windows-Welt und habe FHEM laut Anleitung standardmässig auf Raspberry installiert.
Unter welchem User läuft FHEM ?
Auf die Frage wie man FHEM auf Raspberry als root startet habe ich im Forum auch noch keine Antwort gefunden ?
Wie erweitert man die Rechte des Benutzers ?
Warum ging es bei den anderen auf dem Raspberry ?
Gruss
ZitatHabe leider nur VMware zur Verfügung aus den guten alten alten Freetz Zeiten.
Zitat von: betateilchen am 05 Juli 2013, 13:44:21
Inzwischen sind auch die oben aufgeführten, bis dahin noch mit HMLAN gesteuerten, Geräte mit dem USB-Stick verbunden und der HMLAN wurde komplett abgeschaltet.
Zitat von: betateilchen am 20 Januar 2014, 18:58:30
Der Grund war relativ einfach:
...
Zitat
2014.01.22 21:07:25 1: HMLAN_Parse: hmusb new condition disconnected
2014.01.22 21:07:25 1: 127.0.0.1:1234 reappeared (hmusb)
2014.01.22 21:07:25 1: HMLAN_Parse: hmusb new condition init
2014.01.22 21:07:25 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.01.22 21:07:25 1: HMLAN_Parse: hmusb new condition disconnected
2014.01.22 21:07:25 1: 127.0.0.1:1234 reappeared (hmusb)
2014.01.22 21:07:25 1: HMLAN_Parse: hmusb new condition init
2014.01.22 21:07:26 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.01.22 21:07:26 1: HMLAN_Parse: hmusb new condition disconnected
2014.01.22 21:07:26 1: 127.0.0.1:1234 reappeared (hmusb)
2014.01.22 21:07:26 1: HMLAN_Parse: hmusb new condition init
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2014-01-22 21:32:07 HMLAN HMUSB DISCONNECTED
2014-01-22 21:32:07 HMLAN HMUSB cond: disconnected
2014-01-22 21:32:07 HMLAN HMUSB Xmit-Events: disconnected:1
2014-01-22 21:32:07 HMLAN HMUSB prot_disconnected: last
2014-01-22 21:32:07 HMLAN HMUSB cond: init
2014-01-22 21:32:07 HMLAN HMUSB Xmit-Events: init:1
2014-01-22 21:32:07 HMLAN HMUSB prot_init: last
2014-01-22 21:32:07 HMLAN HMUSB CONNECTED
Zitat von: marc2 am 24 Januar 2014, 23:37:04
Hallo themaxx32000 !
Hast Du das fertige Binarie von der 7390 genommen, oder Dir eine dedizierte Version für die 7490 gebaut.
Falls nicht würde ich dies mal probieren. Wie das mit Toolchain, den Freetz Dir baut, funktioniert, hatte ich
einmal weiter oben in diesem Thread beschrieben.
Gruß, Marc
Zitat von: volschin am 25 Januar 2014, 19:00:11
Sorry, aber ein Prozess vervielfätigt sich unter Unix nicht einfach so. Ist Dein Startscript nicht sauber?
Zitat von: marc2 am 25 Januar 2014, 21:03:06
Hi !
Bau Die mal mit Freetz ein "strace" und häng Dich mit "strace -f -p <PID des ersten Prozesses>
an den hmland. Es muss einen Grund geben warum der hmland Clients forkt.
Ein mehrfaches starten über das Startscript halte ich für unwahrscheinlich, da bereits der zweite Prozess
mit einem "Address already in use" fehschlagen müßte. Läßt sich aber mit ps schnell rausfinden. Wenn die
PPID der Pozesses auf die PID eines hmland zurückführen läßt, dann forkt der hmland selber ....
Gruß, Marc
Zitat von: themaxx32000 am 26 Januar 2014, 00:59:28
parent pid 2555, danach "clone(Process 2565 attached" und "clone(Process 2566 attached"
Zitat von: mgernoth am 26 Januar 2014, 01:15:00
Das sind keine Prozesse, da ist CLONE_VM gesetzt. Das sind einfach die internen Threads der libusb. Daran liegt Dein Problem nicht.
Hast Du noch das Log, was zwischen connect und disconnect in fhem passiert? Du hast bisher nur das zwischen disconnect und connect gepostet.
Eigentlich gibt es keinen großen Unterschied zwischen Daemon- und Debug-Modus. Beim Daemon-Modus forkt der hmland am Anfang genau einmal und der Parent beendet sich und es gibt keine Debug-Ausgaben. Das wars aber auch schon.
Gruß
Michael
Zitat von: volschin am 26 Januar 2014, 07:39:51
Wobei wir dann wieder dabei wären, das Startscript mal auf evtl. Probleme unter die Lupe zu nehmen.
Gruß,
Veit
Zitat von: themaxx32000 am 01 Februar 2014, 13:33:23Habe selbst die 7490 mit Stock Firmware. Jedoch ohne Probleme. Das einzige, was nicht klappt, ist der automatische Start mit dem booten der Box. Das liegt wohl eher an meinem Unvermögen bzgl. Linux. Muss halt immer per Telnet den Daemon starten. Jedoch grundsätzlich läuft es mit den Binaries aus dem Anhang. Leider weiss ich nicht mehr, aus welchem der Posts hier aus dem Forum ist die habe...
Hat denn irgendwer eine 7490 mit stock firmware am Laufen, der das Problem nachvollziehen könnte?
Zitat von: themaxx32000 am 02 Februar 2014, 12:56:031. habe alles unter /var/media/ftp/fhem/lib/hmland/ gelegt
Hallo Ich79,
wo liegen denn die Dateien, welche Firmware benutzt du und welche FHEM Version (Versionsnummer und fhem original oder AVM fhem (chroot)) ?
Danke :)
# $Id: fhem.pl 4769 2014-01-29 08:14:58Z rudolfkoenig $
# $Id: 10_CUL_HM.pm 4776 2014-01-31 15:33:10Z martinp876 $
# $Id: 00_FBAHA.pm 2777 2013-02-20 08:02:01Z rudolfkoenig $
# $Id: 10_FBDECT.pm 2779 2013-02-21 08:52:27Z rudolfkoenig $
# $Id: 72_FB_CALLMONITOR.pm 4555 2014-01-04 10:53:40Z markusbloch $
# $Id: 01_FHEMWEB.pm 4761 2014-01-28 09:13:13Z rudolfkoenig $
# $Id: 92_FileLog.pm 4767 2014-01-29 07:43:25Z rudolfkoenig $
# $Id: 00_HMLAN.pm 4759 2014-01-28 09:05:45Z martinp876 $
# $Id: 99_SUNRISE_EL.pm 4537 2014-01-03 08:28:59Z rudolfkoenig $
# $Id: 98_SVG.pm 4689 2014-01-19 11:45:23Z rudolfkoenig $
# $Id: 99_Utils.pm 3595 2013-08-05 05:38:48Z tobiasfaust $
# $Id: 98_XmlList.pm 2895 2013-03-11 19:48:01Z rudolfkoenig $
# $Id: 98_autocreate.pm 4648 2014-01-14 19:23:34Z rudolfkoenig $
# $Id: 91_eventTypes.pm 2982 2013-03-24 17:47:28Z rudolfkoenig $
# $Id: 91_notify.pm 4664 2014-01-16 09:45:47Z rudolfkoenig $
# $Id: 98_structure.pm 4690 2014-01-19 16:28:17Z rudolfkoenig $
# $Id: 91_watchdog.pm 3738 2013-08-18 14:13:59Z rudolfkoenig $
## hmland starten
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/fhem/lib/hmland
ps | grep hmland | grep -v -q grep || /var/media/ftp/fhem/lib/hmland/hmland -l 127.0.0.1 -p 1000 -d >>/var/media/ftp/Alcor-FlashDisk-00/fhem_data/log/hmland.log
## hmland starten
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/fhem/lib/hmland
ps | grep hmland | grep -v -q grep || /var/media/ftp/fhem/lib/hmland/hmland -l 127.0.0.1 -p 1000 -d >>/var/media/ftp/Alcor-FlashDisk-00/fhem_data/log/hmland.log
Zitat von: jab am 03 Januar 2014, 18:11:45
So ich hab mal hmland mit höherer Priorität getestet auf dem Raspberry Pi. Damit klappt es hervorragend. Keinerlei Timeouts mehr. Ich starte es dann so:
chrt 30 /opt/hmcfgusb/hmland -d -P -l 127.0.0.1 -p $port 2>&1 > /var/log/hmland.log
Mein Initscript hänge ich mal an falls es noch jemand nutzen will
Zitat von: d0np3p3 am 06 Februar 2014, 16:42:15
Das init kommt nach /etc/init.d/ und chmod +x nicht vergessen
Zitat von: d0np3p3 am 06 Februar 2014, 17:32:58
Du hast bestimmt ein solches verzeichnisCode Auswählencd /etc/init.d/
# ls -al
-rwxr-xr-x 1 root root 27876 Feb 11 08:23 hmland
-rwxr-xr-x 1 root root 18698 Feb 11 08:23 hmsniff
-rwxr-xr-x 1 1000 1000 52668 Feb 11 08:23 libusb-1.0.so.0
-rwxr-xr-x 1 1000 1000 52668 Nov 5 22:18 libusb-1.0.so.0.1.0
# ./hmland -D -p 1234
./hmland: can't load library 'libusb-1.0.so.0'
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/UBS2-0-FlashDrive-01/fhem/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/USB2-0-FlashDrive-01/fhem/lib
./hmland -D -p 1234
#!/bin/sh
#home=/var/InternerSpeicher/fhem
home=/var/media/ftp/USB2-0-FlashDrive-01/fhem
cd $home
trap "" SIGHUP
modprobe cdc-acm.ko
#modprobe cdc_acm
#insmod ./cdc-acm.ko
modprobe ftdi_sio
sleep 2
ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd
PATH=$home:$PATH
export PATH
export LD_LIBRARY_PATH=$home/lib
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/USB2-0-FlashDrive-01/fhem/lib
export PERL5LIB=$home/lib/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/USB2-0-FlashDrive-01/fhem/lib
ps | grep hmland | grep -v -q grep || $home/lib/hmland -l 127.0.0.1 -p 1234 -D -r 04:00
>> $home/log/hmland.log 2>&1
sleep 2
# add user fhem with uid of boxusr80/boxusr99 (== ftpuser)
# Comment/delete everything between START and END to run FHEM as root
## START:fhem-user
id fhem > /dev/null 2>&1
if test "$?" -ne "0"; then
grep -q 1099 /etc/passwd;
if test $? -eq "0"; then
echo "fhem:any:1099:0:fhem:/home-not-used:/bin/sh" >>/var/tmp/passwd
else
echo "fhem:any:1080:0:fhem:/home-not-used:/bin/sh" >>/var/tmp/passwd
fi
chown -R fhem FHEM docs log www
chown fhem . *
chown root dfu-programmer
chmod u+s dfu-programmer
fi
## END:fhem-user
perl fhem.pl fhem.cfg
Zitat von: anhtu am 14 Februar 2014, 23:57:24Vielleicht solltest Du export LD_LIBRARY_PATH mal aufräumen. 2 aktive, so wie Du das gemacht hast, sind genau einer zuviel.Code Auswählenexport LD_LIBRARY_PATH=$home/lib
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/USB2-0-FlashDrive-01/fhem/lib
export PERL5LIB=$home/lib/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/USB2-0-FlashDrive-01/fhem/lib
./startfhem
cd lib
./hmland -D
./hmland: can't load library 'libusb-1.0.so.0'
Zitat von: der-Lolo am 16 Februar 2014, 09:47:28
Hallo zusammen,
ich bin gerade dabei den HMUSB Adapter an meinem BBB anzuschliessen, so wie ich das sehe hat auch alles soweit geklappt - zur zeit hakt es aber noch beim starten des Services wenn der Beagle bootet, und beim im ersten Post erwähntem Firmwareupdate für den Stick, aktuell läuft 03c3 sagt hmland -i
03c7 sollte rauf, ich habe das File bereits runtergeladen und hab nun keine Ahnung wo ich es hinkopieren muss und welche befehle abgesetzt werden sollen.
$ git pull
$ make
$ ./flash-hmcfgusb /pfad/zur/hmusbif.03c7.enc
Zitat
# ./flash-hmcfgusb /opt/hmcfgusb/hmusbif.03c7.enc
HM-CFG-USB flasher version 0.093-git
Reading firmware from /opt/hmcfgusb/hmusbif.03c7.enc...
Firmware with 368 blocks successfully read.
Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: Other error
HM-CFG-USB not in bootloader mode, entering bootloader.
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send null frame: No such device (it may have been disconnected)
Waiting for device to reappear...
Can't open device: Input/output error
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
HM-CFG-USB opened.
Flashing 368 blocks: -usb-transfer took more than 100ms (1143ms), this may lead to timing problems!
Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
Zitat
-- Da das Timing bei Homematic wichtig ist führt das zu vielen Retransmits und zu unzuverlässigen Aktoren. Als Workaround kann man den USB auf 1.1 stellen. Dazu führt man folgenden Text am Anfang der /boot/cmdline.txt ein:
dwc_otg.speed=1
Zitat von: der-Lolo am 16 Februar 2014, 11:24:00
leider läuft es nicht wie im ersten Post beschrieben durch -
desiato [~/hmcfgusb]> uname -a
Linux desiato 3.8.13-bone40 #1 SMP Fri Jan 31 07:31:37 UTC 2014 armv7l GNU/Linux
desiato [~/hmcfgusb]> sudo ./flash-hmcfgusb hmusbif.03c7.enc
HM-CFG-USB flasher version 0.093-git
Reading firmware from hmusbif.03c7.enc...
Firmware with 368 blocks successfully read.
HM-CFG-USB not in bootloader mode, entering bootloader.
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send null frame: No such device (it may have been disconnected)
Waiting for device to reappear...
HM-CFG-USB opened.
Flashing 368 blocks: |
Firmware update successfull!
udo@arm /opt/fhem_add/hmcfgusb $ ./hmland -h
Syntax: ./hmland options
Possible options:
-D debug mode
-d daemon mode
-h this help
-i interactive mode (connect HM-CFG-USB to terminal)
-l ip listen on given IP address only (for example 127.0.0.1)
-P create PID file /var/run/hmland.pid in daemon mode
-p n listen on port n (default: 1000)
-r n reboot HM-CFG-USB after n seconds (0: no reboot, default: 86400)
hh:mm reboot HM-CFG-USB daily at hh:mm
-v verbose mode
-V show version (0.091-git)
mkdir -p /volume1/@optware/bin /volume1/@optware/lib
ln -s /volume1/@optware /opt
cd /
gzip -cd /tmp/hmland-88f6281-0.094.tar.gz | tar xvf -
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib
nohup /opt/bin/hmland -l 127.0.0.1 -p 1000 -d -r 04:00
ZitatAber das libusb scheint nicht das richtige zu sein, das Makefile hat sich ständig aufgehängt.
# ./hmland -d -p 1234 >>hmlandlog.txt
# ps | grep hmland
3071 root 1456 S ./hmland -d -p 1234
3072 root 1456 S ./hmland -d -p 1234
3073 root 1456 S ./hmland -d -p 1234
3075 root 1228 S grep hmland
# ./hmland -d -p 1234 >>hmlandlog.txt
# ps | grep hmland
3101 root 1404 S ./hmland -d -p 1234
3103 root 1228 S grep hmland
Zitat von: axel.mohnen am 25 Februar 2014, 13:32:26
Mein nächstes Problem ist jetzt das die Befehle nicht in der startfhem greifen.
Ein Log wird auch nicht geschrieben.
ps | grep hmland | grep -v -q grep ||
/var/media/ftp/bin/hmland -l 192.168.2.1 -p 1000 -d -r 04:00 > /var/media/ftp/fhem/log/hmland.log 2>&1
#!/bin/sh
trap "" SIGHUP
if [ ! -c /dev/ttyACM0 ]; then
rm -f /dev/ttyACM0
mknod /dev/ttyACM0 c 166 0
fi
if [ ! -c /dev/ttyACM1 ]; then
rm -f /dev/ttyACM1
mknod /dev/ttyACM1 c 166 1
fi
if [ ! -c /dev/ttyUSB0 ]; then
rm -f /dev/ttyUSB0
mknod /dev/ttyUSB0 c 188 0
fi
if [ ! -c /dev/ttyUSB1 ]; then
rm -f /dev/ttyUSB1
mknod /dev/ttyUSB1 c 188 1
fi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/fhem/lib
ps | grep hmland | grep -v -q grep || /var/media/ftp/fhem/bin/hmland -l 127.0.0.1 -p 1234 -d -r 04:00 > /var/media/ftp/fhem/log/hmland.log 2>&1
sleep 2
export PATH=$PATH:/opt/bin
mkdir -p /proc
mkdir -p /sys
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t usbfs usbfs /proc/bus/usb
cd /opt/fhem
/opt/bin/perl fhem.pl fhem.cfg
ZitatIch bekomme aber die Fehlermeldung:
cd /opt/fhem -> can't find directory
/opt/bin/perl -> can't find directory
Zitat von: marc2 am 24 Februar 2014, 23:45:03
Hallo Axel,
sieht für mich danach aus, dass Deine libusb nicht zum hmalnd passt. Nicht dass ich mit den 6.00
Binaries unter 6.03 Probleme gehabt hätte, aber ich habe noch einmal den hmland 0.094 frisch
für 6.03 gebaut. Diese Kombination läuft bei mir seit rund 10 Tagen.
Gruß, Marc
Can't detach kernel driver: Other error
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2014-03-01 10:14:43 HMLAN HMLAN2 DISCONNECTED
2014-03-01 10:14:43 HMLAN HMLAN2 cond: disconnected
2014-03-01 10:14:43 HMLAN HMLAN2 Xmit-Events: disconnected:1
2014-03-01 10:14:43 HMLAN HMLAN2 prot_disconnected: last
2014-03-01 10:14:43 HMLAN HMLAN2 cond: init
2014-03-01 10:14:43 HMLAN HMLAN2 Xmit-Events: init:1
2014-03-01 10:14:43 HMLAN HMLAN2 prot_init: last
2014-03-01 10:14:43 HMLAN HMLAN2 CONNECTED
2014-03-01 10:14:44 HMLAN HMLAN2 DISCONNECTED
2014-03-01 10:14:44 HMLAN HMLAN2 cond: disconnected
2014-03-01 10:14:44 HMLAN HMLAN2 Xmit-Events: disconnected:1
2014-03-01 10:14:44 HMLAN HMLAN2 prot_disconnected: last
2014-03-01 10:14:44 HMLAN HMLAN2 cond: init
2014-03-01 10:14:44 HMLAN HMLAN2 Xmit-Events: init:1
2014-03-01 10:14:44 HMLAN HMLAN2 prot_init: last
2014-03-01 10:14:44 HMLAN HMLAN2 CONNECTED
cd /var/InternerSpeicher/fhem
export LD_LIBRARY_PATH=/var/InternerSpeicher/fhem/lib
./hmland -l 127.0.0.1 -p 1000 -d
pi@raspberrypi /opt/hmcfgusb $ sudo ./flash-hmcfgusb /home/pi/tmp/hmusbif.03c7.enc
HM-CFG-USB flasher version 0.095-git
Reading firmware from /home/pi/tmp/hmusbif.03c7.enc...
Firmware with 368 blocks successfully read.
HM-CFG-USB not in bootloader mode, entering bootloader.
Waiting for device to reappear...
Can't claim interface: Resource busy
Can't find/open hmcfgusb!
Can't claim interface: Resource busy
Can't find/open hmcfgusb!
Can't claim interface: Resource busy
Can't find/open hmcfgusb!
Can't claim interface: Resource busy
Can't find/open hmcfgusb!
Can't claim interface: Resource busy
Can't find/open hmcfgusb!
Can't find/open hmcfgusb!
Can't find/open hmcfgusb!
HM-CFG-USB opened.
Flashing 368 blocks: /Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
pi@raspberrypi /opt/hmcfgusb $ sudo ./flash-hmcfgusb /home/pi/tmp/hmusbif.03c7.enc
HM-CFG-USB flasher version 0.095-git
Reading firmware from /home/pi/tmp/hmusbif.03c7.enc...
Firmware with 368 blocks successfully read.
HM-CFG-USB opened.
Flashing 368 blocks: |
Firmware update successfull!
pi@raspberrypi /opt/hmcfgusb $ sudo ./hmland -i
HHM-USB-IF,03C7,JEQ0701211,1EBDF4,123456,000000EA,0000
Opening hermes device 192..... :1000
Can't connect to 192...:1000: No route to host
Zitat von: marc2 am 19 Februar 2014, 15:58:39
............Wichtig ist auf jeden Fall das Setzen des LD_LIBRARY_PATH, damit die
libusb gefunden wird !Code Auswählenmkdir -p /volume1/@optware/bin /volume1/@optware/lib
ln -s /volume1/@optware /opt
cd /
gzip -cd /tmp/hmland-88f6281-0.094.tar.gz | tar xvf -
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib
nohup /opt/bin/hmland -l 127.0.0.1 -p 1000 -d -r 04:00
Die letzten beiden Schritte sollten in einem passen Startscript verewigt werden.
Gruß, Marc
case "$1" in
'start')
echo "Starting fhem..."
/opt/fhem_add/hmcfgusb/hmland -d -p 1234
perl fhem.pl configDB
RETVAL=$?
;;
Zitat von: cerberus am 24 März 2014, 21:09:41
Wie hast du das beim Beenden und bzw. Restart von fhem gelöst
udo@cubie:~> cat /etc/init.d/fhem
#!/bin/sh
# description: Start or stop the fhem server
# Added by Alex Peuchert
### BEGIN INIT INFO
# Provides: fhem.pl
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FHEM server
### END INIT INFO
set -e
cd /opt/fhem
port=7072
case "$1" in
'start')
echo "Starting fhem..."
/opt/fhem_add/hmcfgusb/hmland -d -p 1234
perl fhem.pl configDB
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
perl fhem.pl $port "shutdown"
RETVAL=$?
pkill hmland
;;
'status')
cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "fhem is not running"
else
echo "fhem is running"
fi
;;
*)
echo "Usage: $0 { start | stop | status }"
RETVAL=1
;;
esac
exit $RETVAL
Zitat von: JanS am 24 März 2014, 19:17:22
Mal ne andere Frage:
Hat denn mal wer beobachtet, ob das "Aufhängen" des Adapters im Sendebetrieb mit der neuen Firmware (0.967) von eQ3 noch auftritt?
Releasenotes sind irgendwie keine zu finden, leider.
EDIT:typo korrigiert
Zitat2014.03.31 03:00:08 1: 127.0.0.1:1234 disconnected, waiting to reappearEs dauerte allerdings ein wenig länger als normal, und anschliessend war der Bluetooth Dongle nicht mehr erreichbar..
2014.03.31 03:00:08 1: HMLAN_Parse: hmusb new condition disconnected
2014.03.31 03:00:08 1: 127.0.0.1:1234 reappeared (hmusb)
2014.03.31 03:00:08 1: HMLAN_Parse: hmusb new condition init
2014.03.31 03:00:09 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.03.31 03:00:09 1: HMLAN_Parse: hmusb new condition disconnected
2014.03.31 03:00:09 1: 127.0.0.1:1234 reappeared (hmusb)
2014.03.31 03:00:09 1: HMLAN_Parse: hmusb new condition init
ZitatÜber die Anwesenheit schalten wir unsere Heizung - gut, so schlimm ist es ja nicht mehr wenn die Heizung aus ist - aber trotzdem würde ich dieses problemchen gerne beheben.
2014.03.31 03:01:16 1: 127.0.0.1:1234 reappeared (hmusb)
2014.03.31 03:01:16 1: HMLAN_Parse: hmusb new condition init
2014.03.31 03:01:18 1: HMLAN_Parse: hmusb new condition ok
2014.03.31 03:04:21 1: Perfmon: possible freeze starting at 03:04:20, delay is 1.278
2014.03.31 03:04:59 3: Watchdog wd_s4mini_away triggered
2014.03.31 03:04:59 2: ROOMMATE set rr_Christin absent
2014.03.31 03:05:05 1: Christin ist gegangen...
2014.03.31 03:05:05 1: Perfmon: possible freeze starting at 03:05:00, delay is 5.498
2014.03.31 03:06:28 3: Watchdog wd_z1compact_away triggered
2014.03.31 03:06:28 2: ROOMMATE set rr_Micha absent
2014.03.31 03:06:38 1: Micha ist gegangen...
KERNEL=="ttyUSB*", ATTRS{product}=="Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)", SYMLINK+="bluetooth"
KERNEL=="ttyUSB*", ATTRS{product}=="Linux Foundation Multifunction Composite Gadget", SYMLINK+="hm_usb"
define hmusb HMLAN 127.0.0.1:1234
define hmusb HMLAN /dev/hm_usb
KERNEL=="tty*", SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="204b", MODE="0666", BUS=="usb", SYMLINK+="CUL"
Zitatroot@BeagleBoneBlack:~# dmesg | grep tty
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=UUID=c51c5460-839c-4fb9-a32e-f8198498754c ro rootfstype=ext4 rootwait fixrtc ip=
[ 0.525106] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88) is a OMAP UART0
[ 1.270887] console [ttyO0] enabled
[ 27.420915] cdc_acm 1-1.4.1:1.2: ttyACM0: USB ACM device
root@BeagleBoneBlack:~#
Zitat von: der-Lolo am 02 April 2014, 00:54:20
hast du auch noch ein Stückchen weiter gelesen und ein update rc.d gemacht?
update-rc.d /etc/init.d/hmland defaults
Zitat von: betateilchen am 02 April 2014, 07:09:26
der hmland braucht kein eigenes Startskript, binde ihn einfach in das Startskript von fhem mit ein, das ist viel einfacher.
sudo chmod -R a+w fhem && sudo usermod -a -G tty pi && sudo usermod -a -G tty fhem
Zitat von: docloy am 02 April 2014, 07:20:48
@betateilchen mal wirklich ganz blöde gefragt, wo müsste ich das einfügen, wenn nach folgender Anleitung vorgegangen bin:
#!/bin/sh
# description: Start or stop the fhem server
# Added by Alex Peuchert
### BEGIN INIT INFO
# Provides: fhem.pl
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FHEM server
### END INIT INFO
set -e
cd /opt/fhem
port=7072
case "$1" in
'start')
echo "Starting fhem..."
/opt/fhem_add/hmcfgusb/hmland -d -p 1234
perl fhem.pl configDB
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
perl fhem.pl $port "shutdown"
RETVAL=$?
pkill hmland
;;
'status')
cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "fhem is not running"
else
echo "fhem is running"
fi
;;
*)
echo "Usage: $0 { start | stop | status }"
RETVAL=1
;;
esac
exit $RETVAL
ps aux | grep fhem
root 2057 55.8 3.5 18744 16056 ? S 14:47 0:07 perl fhem.pl fhem.cfg
pi 2080 0.0 0.1 3548 800 pts/1 S+ 14:47 0:00 grep --color=auto fhem
sudo /etc/init.d/fhem start
Starting fhem...
Daemon with PID 2430 started!
2014.04.05 14:59:44 1: Can't locate DBI.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at configDB.pm line 60.
BEGIN failed--compilation aborted at configDB.pm line 60.
Compilation failed in require at (eval 5) line 2.
BEGIN failed--compilation aborted at (eval 5) line 2.
Undefined subroutine &main::cfgDB_Init called at fhem.pl line 408.
ps aux | grep fhem
root 1945 29.5 4.0 20868 17936 ? S 15:14 0:08 perl fhem.pl fhem.cfg
root 1949 0.0 0.1 1696 560 ? Ss 15:14 0:00 startpar -f -- fhem
pi 2097 0.0 0.1 3552 852 pts/0 S+ 15:15 0:00 grep --color=auto fhem
Flashing 368 blocks: -Interrupt transfer not completed: Unknown error code 1 / 0x01!
closing device-connection due to error 5
Zitat von: marc2 am 06 April 2014, 23:40:51
flash-hmcfgusb steigt wie folgt aus:Code AuswählenFlashing 368 blocks: -Interrupt transfer not completed: Unknown error code 1 / 0x01!
closing device-connection due to error 5
Nein, auf dem Device läuft kein hmland oder hmsniff (bei älteren Stick hat es ja auch funktioniert). Hat jemand
mit dem gleichen FW-Stand (0.963) ein ähnliches Problem. Sonst müsste ich das Ding wohl einschicken :(
CFLAGS=-Os -pipe -march=4kc -Wa,--trap LDLIBS=-lusb-1.0 CC=/home/rico/freetz-2.0/toolchain/build/mipsel_gcc-4.6.4_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc HMLAN_OBJS=hmcfgusb.o hmland.o HMSNIFF_OBJS=hmcfgusb.o hmsniff.o FLASH_HMCFGUSB_OBJS=hmcfgusb.o firmware.o util.o flash-hmcfgusb.o FLASH_OTA_OBJS=hmcfgusb.o culfw.o firmware.o util.o flash-ota.o OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) all: hmland hmsniff flash-hmcfgusb flash-ota DEPEND=$(OBJS:.o=.d) -include $(DEPEND) hmland: $(HMLAN_OBJS) hmsniff: $(HMSNIFF_OBJS) flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS) flash-ota: $(FLASH_OTA_OBJS) clean: rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb flash-ota .PHONY: all clean |
2014.03.15 14:02:16 1: Including fhem.cfg
2014.03.15 14:02:17 3: telnetPort: port 7072 opened
2014.03.15 14:02:19 3: WEB: port 8083 opened
2014.03.15 14:02:19 3: WEBphone: port 8084 opened
2014.03.15 14:02:19 3: WEBtablet: port 8085 opened
2014.03.15 14:02:19 2: eventTypes: loaded 48 events from ./log/eventTypes.txt
2014.03.15 14:02:20 1: HMLAN_Parse: hmusb new condition disconnected
2014.03.15 14:02:20 3: Opening hmusb device 127.0.0.1:4321
2014.03.15 14:02:20 3: hmusb device opened
2014.03.15 14:02:20 1: HMLAN_Parse: hmusb new condition init
2014.03.15 14:02:22 3: HTTPS: port 2712 opened
2014.03.15 14:02:22 1: Including ./log/fhem.save
2014.03.15 14:02:22 1: usb create starting
2014.03.15 14:02:23 1: usb create end
2014.03.15 14:02:23 2: SecurityCheck: WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute. Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.03.15 14:02:23 0: Server started with 13 defined entities (version $Id: fhem.pl 5197 2014-03-10 21:07:30Z rudolfkoenig $, os linux, user fhem, pid 2255)
2014.03.15 14:02:23 1: HMLAN_Parse: hmusb new condition ok
2014.03.16 04:00:26 1: HMLAN_Parse: hmusb new condition timeout
2014.03.16 04:00:26 1: 127.0.0.1:4321 disconnected, waiting to reappear
2014.03.16 04:00:26 1: HMLAN_Parse: hmusb new condition disconnected
2014.03.16 04:00:31 1: 127.0.0.1:4321 reappeared (hmusb)
2014.03.16 04:00:31 1: HMLAN_Parse: hmusb new condition init
2014.03.16 04:01:00 1: HMLAN_Parse: hmusb new condition timeout
2014.03.16 04:01:00 1: 127.0.0.1:4321 disconnected, waiting to reappear
2014.03.16 04:01:00 1: HMLAN_Parse: hmusb new condition disconnected
2014.03.16 04:01:05 1: 127.0.0.1:4321 reappeared (hmusb)
2014.03.16 04:01:05 1: HMLAN_Parse: hmusb new condition init
2014.03.16 04:01:34 1: HMLAN_Parse: hmusb new condition timeout
2014.03.16 04:01:34 1: 127.0.0.1:4321 disconnected, waiting to reappear
2014.03.16 04:01:34 1: HMLAN_Parse: hmusb new condition disconnected
2014.03.16 04:01:39 1: 127.0.0.1:4321 reappeared (hmusb)
2014.03.16 04:01:39 1: HMLAN_Parse: hmusb new condition init
root@cubieez:~# cd /opt/
root@cubieez:/opt# apt-get install build-essentials libusb-1.0-0-dev make gcc git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essentials
root@cubieez:/opt# git clone git://git.zerfleddert.de/hmcfgusb
Cloning into 'hmcfgusb'...
remote: Counting objects: 344, done.
remote: Compressing objects: 100% (336/336), done.
remote: Total 344 (delta 225), reused 0 (delta 0)
Receiving objects: 100% (344/344), 63.58 KiB, done.
Resolving deltas: 100% (225/225), done.
root@cubieez:/opt# cd hmcfgusb
root@cubieez:/opt/hmcfgusb# make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
hmland.c:40:31: fatal error: libusb-1.0/libusb.h: No such file or directory
compilation terminated.
make
apt-get install libusb-1.0-0-dev
Zitat von: Paul am 20 April 2014, 19:06:59
Danke klappt und wo lernt man das?
Zitat von: svemo am 22 April 2014, 10:55:20
ich bin ganz neu hier un möchte mir auf der 7390 Fhem nutzen und den Stick kaufen.
allerdings bin ich ein Windoof user und von der Thematik keine Ahnung.
auch der 1 Post sagt mir so gar nichts...
Zitat von: svemo am 22 April 2014, 12:14:27
Bitte helft mir bei der erstkonfig..
2014.05.09 03:30:07 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.09 03:30:07 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.09 03:30:07 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.09 03:30:07 1: HMLAN_Parse: hmusb new condition init
2014.05.09 03:30:08 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.09 03:30:08 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.09 03:30:08 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.09 03:30:08 1: HMLAN_Parse: hmusb new condition init
2014.05.09 03:30:09 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.09 03:30:09 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.09 03:30:09 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.09 03:30:09 1: HMLAN_Parse: hmusb new condition init
2014.05.09 03:30:11 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.09 03:30:11 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.09 03:30:11 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.09 03:30:11 1: HMLAN_Parse: hmusb new condition init
2014.05.09 03:30:13 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.09 03:30:13 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.09 03:30:13 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.09 03:30:13 1: HMLAN_Parse: hmusb new condition init
2014.05.09 03:30:15 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.09 03:30:15 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.09 03:30:15 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.09 03:30:15 1: HMLAN_Parse: hmusb new condition init
2014.05.09 03:30:17 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.09 03:30:17 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.09 03:30:17 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:07 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.10 03:30:07 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.10 03:30:07 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:07 1: HMLAN_Parse: hmusb new condition init
2014.05.10 03:30:08 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.10 03:30:08 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.10 03:30:08 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:08 1: HMLAN_Parse: hmusb new condition init
2014.05.10 03:30:09 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.10 03:30:09 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.10 03:30:09 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:09 1: HMLAN_Parse: hmusb new condition init
2014.05.10 03:30:11 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.10 03:30:11 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.10 03:30:11 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:11 1: HMLAN_Parse: hmusb new condition init
2014.05.10 03:30:13 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.10 03:30:13 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.10 03:30:13 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:13 1: HMLAN_Parse: hmusb new condition init
2014.05.10 03:30:16 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.10 03:30:16 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.10 03:30:16 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:16 1: HMLAN_Parse: hmusb new condition init
2014.05.10 03:30:18 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.10 03:30:18 1: HMLAN_Parse: hmusb new condition disconnected
2014.05.10 03:30:18 1: 127.0.0.1:1234 reappeared (hmusb)
2014.05.10 03:30:18 1: HMLAN_Parse: hmusb new condition init
2014.05.10 03:30:19 1: HMLAN_Parse: hmusb new condition ok
hmland -d -p 1234 -r 04:10
Zitat von: frank am 08 Mai 2014, 20:13:02
mach hin, ich kann es nicht erwarten. ;)
Zitat von: frank am 10 Mai 2014, 20:39:08
das ist doch sicherlich der 24-std reset, den ihr selber in der startfhem-datei festgelegt habt. bei mir um 4:10 uhr. ;)
Zitat von: P.A.Trick am 10 Mai 2014, 20:44:48
Leider nicht!
-r n reboot HM-CFG-USB after n seconds (0: no reboot, default: 86400)
hh:mm reboot HM-CFG-USB daily at hh:mm
Zitat von: marc2 am 10 Mai 2014, 20:54:16
Moin !
Wenn Ihr den Reset nicht mit "-r 0" deaktiviert, macht hmland standardmäßig alle 24 einen Reset, das ist der Default:Code Auswählen
-r n reboot HM-CFG-USB after n seconds (0: no reboot, default: 86400)
hh:mm reboot HM-CFG-USB daily at hh:mm
Gruß, Marc
Zitat von: betateilchen am 10 Mai 2014, 22:39:07
Das ist ein Überbleibsel aus den ersten Versionen des hmland, da war ein regelmäßiger reboot notwendig, um seine dauerhafte Funktion sicherzustellen. Das Problem ist aber seit langem gelöst und der reboot nicht mehr notwendig.
chrt 50 /opt/hmcfgusb/hmland ---> -r 03:30 <--- -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
Zitat von: marc2 am 10 Mai 2014, 23:38:47
War eher ein Problem der HMCFGUSB Firmware. Die hat nur ca. 48h Dauerbetrieb ausgehalten. Danach hat das Ding nichts mehr gesendet
(wohl aber empfangen), daher musste der hmland dem Teil regelmäßig einen Reset verpassen. Mit der aktuellen FW des HMCFGUSB tritt
das Problem wohl nicht mehr auf, womit der tägliche Reset überflüssig sein dürfte. Ich habe ihn aber immer noch drin, da er Nachts um 4:00
nicht wirklich stört ;)
2014.05.12 09:50:58.423 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.12 09:50:58.462 1: HMLAN_Parse: hmusb1 new condition disconnected
2014.05.12 09:50:58.498 1: 127.0.0.1:1234 reappeared (hmusb1)
2014.05.12 09:50:58.505 1: HMLAN_Parse: hmusb1 new condition init
2014.05.12 09:50:59.454 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.12 09:50:59.493 1: HMLAN_Parse: hmusb1 new condition disconnected
2014.05.12 09:50:59.528 1: 127.0.0.1:1234 reappeared (hmusb1)
2014.05.12 09:50:59.535 1: HMLAN_Parse: hmusb1 new condition init
2014.05.12 09:51:00.532 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.12 09:51:00.569 1: HMLAN_Parse: hmusb1 new condition disconnected
2014.05.12 09:51:00.599 1: 127.0.0.1:1234 reappeared (hmusb1)
2014.05.12 09:51:00.606 1: HMLAN_Parse: hmusb1 new condition init
2014.05.12 09:51:01.516 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.12 09:51:01.558 1: HMLAN_Parse: hmusb1 new condition disconnected
2014.05.12 09:51:01.589 1: 127.0.0.1:1234 reappeared (hmusb1)
2014.05.12 09:51:01.596 1: HMLAN_Parse: hmusb1 new condition init
2014.05.12 09:51:02.556 1: 127.0.0.1:1234 disconnected, waiting to reappear
2014.05.12 09:51:02.594 1: HMLAN_Parse: hmusb1 new condition disconnected
2014.05.12 09:51:02.625 1: 127.0.0.1:1234 reappeared (hmusb1)
2014.05.12 09:51:02.631 1: HMLAN_Parse: hmusb1 new condition init
Zitat von: frank am 12 Mai 2014, 14:29:59
wenn ich meinen hmusb aus der fritzbox ziehe, wird das fhem.log mit folgendem geflutet:
Zitat
ich nehme den stick öfter mal, um am laptop mit dem windows-update-tool zu flashen.
je nach dem wie lange der stick von der fritzbox entfernt ist, hängt sich fhem irgendwann auf. auch der hmlan macht ärger mit timeouts. ich bin mir nicht sicher, ob nicht sogar schon die fritzbox auch irgendwann einen neustart deswegen gemacht hat.
Zitat
könnte man die reappear schleife nicht ein wenig entschärfen? zb 1x pro minute, wenn das nichts wird, dann eine stunde warten. und wieder von vorn. du hast da bestimmt bessere lösungen. oder ist dieser vorgang ausserhalb von hmland?
Zitat von: marcel151 am 12 Mai 2014, 11:39:51
Ich habe die 0.964 drauf. Wie kann ich denn ein Update machen?
EDIT: Okay, habs schon gefunden.
Zitat von: P.A.Trick am 12 Mai 2014, 20:35:11
Kannst du die anderen auch erhellen?
Zitat von: marcel151 am 13 Mai 2014, 13:33:36
Gerne. Den HM-CFG-USB an einen Windows-Rechner anschließen und mit dem HomeMatic Firmware Update Tool V1.0 (http://www.eq-3.de/Downloads/Software/HM-CCU1-Firmware_Updates/HM-CFG-USB-2_FW-UpdateTool-Usersoftware_V1_0_eQ-3_140115.zip) updaten.
Zitat von: mgernoth am 12 Mai 2014, 11:10:09
Hat denn jemand einen HM-CFG-USB mit Firmware >= 0.967 und -r 0 laufen und das Ding hält mehrere Tage/Wochen durch?
Zitat von: marcel151 am 13 Mai 2014, 13:33:36
Gerne. Den HM-CFG-USB an einen Windows-Rechner anschließen und mit dem HomeMatic Firmware Update Tool V1.0 (http://www.eq-3.de/Downloads/Software/HM-CCU1-Firmware_Updates/HM-CFG-USB-2_FW-UpdateTool-Usersoftware_V1_0_eQ-3_140115.zip) updaten.
Zitat von: P.A.Trick am 13 Mai 2014, 21:35:20
Danke schön! Dann werde ich das nächste Mal (wenn ich mal wieder Windows 7 starte, also in ein paar Wochen :D) das Update machen. Bringt's denn irgendwelche neuen Funktionen oder wichtige Updates?
Zitat von: betateilchen am 13 Mai 2014, 13:41:55
Das funktioniert bei mir seit Wochen problemlos auf mehreren Systemen.
Zitat von: marcel151 am 14 Mai 2014, 08:58:34
Ich musste den Stick auch mit zur Arbeit nehmen, zuhause hab ich nur Mac und Linux. :D Würde mich auch interessieren, einen Changelog habe ich leider nicht gefunden...
Zitat von: Rince am 14 Mai 2014, 12:50:43
@mgernoth
Ich wollte dich nicht ignorieren.
Zitat
Leider bekomme ich nur Timeouts. Auch bei der Versionsabfrage.
Zitat
Ich hätte gehofft, dass die neue Firmware eventuell meine Disconnects lösen kann. Derer habe ich quasi im Bereich 10-40 Sekunden. Ein jungräuliches Debian auf dem BBB, die Installation gem. deiner Anleitung aus Post 1, ein fhem 5.5 mit einem heute durchgeführten Update...
Zitat von: mgernoth am 14 Mai 2014, 10:17:50
Warum ignorieren mich alle? :-(
Im ersten Beitrag steht, wie es unter Linux (und evtl. auch Mac) geht...
Changelog gibt es AFAIK nicht.
0.967 implementiert jedenfalls den 100K-Modus zum Firmwareupdate und behebt wohl die Sendeaussetzer.
Gruß
Michael
2014.06.11 08:03:57 3: hmusb: Unknown code A0FB7861021C1D70000000A71000E005F::-49:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0FB7861021C1D70000000A71000E005F::-49:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0C6A8670169FE800000000F945::-93:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0C6A8670169FE800000000F945::-93:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0F85861021C1D10000000A70E30C004E::-73:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0B6AA258169FE81507630000::-91:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0E6A8202150763169FE80101000034::-79:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0C3486701CE27900000001003B::-64:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0FB7861021C1D70000000A71000E005F::-49:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0FB7861021C1D70000000A71000E005F::-49:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0C6A8670169FE800000000F945::-93:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0C6A8670169FE800000000F945::-93:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0F85861021C1D10000000A70E30C004E::-73:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0B6AA258169FE81507630000::-91:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0E6A8202150763169FE80101000034::-79:hmusb, help me!
2014.06.11 08:03:57 3: hmusb: Unknown code A0C3486701CE27900000001003B::-64:hmusb, help me!
Zitat von: RoBra81 am 10 Juni 2014, 08:48:58
da ich keine Erfahrung mit dem Cross Compiling habe, wollte ich fragen, ob mir jemand die aktuellen Binaries für die FritzBox 7490 mit FritzOS 6.05 zur Verfügung stellen kann? (Oder alternativ eine gute Step-By-Step-Anleitung zum Cross Compiling für die FritzBox?)
Zitat von: marc2 am 17 Juli 2013, 00:20:57
Hallo Gerhard,
wo Du die Binaries und die libusb hinkopierst sollte egal sein. Bei mir liegen sie
unter /var/media/ftp/bin. Meine 7390 hat ein gefreeztes FRITZ!OS 05.52, wo ich
die libusb direkt einkompiliert habe. Wenn Du eine Standard Firmware laufen hast,
musst Du den LD_LIBRARY_PATH setzen, sonst findet der Runtime Linker die usblib
nicht, Beispiel:
* libusb-1.0.so.0.1.0 nach /var/media/ftp/lib kopieren
* Links für libusb-1.0.so.0 und libusb-1.0.so.0 anlegen (z.B ln -s libusb-1.0.so.0.1.0 libusb-1.0.so.0)
* export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/lib
* execute Rechte für die Binaries setzen (chmod 755 hmland hmsniff)
* hmland testweise starten: ./hmland -l 127.0.0.1 -p 1000
Wenn das funktioniert die startfhem erweitern. Sieht bei mir wie folgt aus:Code Auswählenps | grep hmland | grep -v -q grep || /var/media/ftp/bin/hmland -l 127.0.0.1 -p 1000 -d
sleep 2
#!/bin/sh
trap "" SIGHUP
if [ ! -c /dev/ttyACM0 ]; then
rm -f /dev/ttyACM0
mknod /dev/ttyACM0 c 166 0
fi
if [ ! -c /dev/ttyACM1 ]; then
rm -f /dev/ttyACM1
mknod /dev/ttyACM1 c 166 1
fi
if [ ! -c /dev/ttyUSB0 ]; then
rm -f /dev/ttyUSB0
mknod /dev/ttyUSB0 c 188 0
fi
if [ ! -c /dev/ttyUSB1 ]; then
rm -f /dev/ttyUSB1
mknod /dev/ttyUSB1 c 188 1
fi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/media/ftp/fhem/lib
export PATH=$PATH:/opt/bin
mkdir -p /proc
mkdir -p /sys
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t usbfs usbfs /proc/bus/usb
cd /opt/fhem
/opt/bin/perl fhem.pl fhem.cfg
Zitat von: RoqueNublo am 19 Juni 2014, 23:31:35
vielen Dank für den Hinweis. Dann muß ich mir wohl doch den HM-CFG-LAN Konfigurationsadapter zu legen.
Zitat von: RoqueNublo am 23 Juni 2014, 21:46:16
Das Bidcos-Service Tool liegt dem HM-CFG-USB Adapter zwar auch bei, bringt aber nichts weil es sich um ein LAN basiertes Tool handelt und somit auch keine Chance bietet den Vorgaben der vg. Anleitung zu folgen.
Zitat von: RoqueNublo am 29 Juni 2014, 16:40:06
hätte ich auch gleich mitteilen können. Ich betreibe fhem auf einem RaspberryPi mit COC und HM-CFG-USB. Das klappt auch soweit ganz gut. Um die HM-KeyMatic einzubinden brauche ich allerdings das Bidcos-Servive Tool, da ich während der Installation das AES für die Netz Kommunikation (NICHT die AES HomeMatic Kommunikation) aktiviert/deaktiviert muß.
Zitat von: RoqueNublo am 30 Juni 2014, 13:04:54
wie schon im Beitrag #416 beschrieben ist mir die Einbindung teilweise gelungen, d.h. fhem hat die HM KeyMatic erkannt und in die fhem.cfg eingetragen. Aber anscheinend gibt es ein Kommunikationsproblem zwischen fhem usblan-Adapter und der HM-Keymatic.
Zitat
Die Einbindung der HM KeyMatic habe ich nach folgender Anleitung (siehe Link) durchgeführt. Dort ist auch beschrieben wann und warum das Bidcos-Servive Tool einzusetzen ist. Was allerdings mit dem Bidcos-Servive Tool das dem HM-CFG-USB Adapter beiliegt nicht möglich ist. Möglicherweise ist das aktivieren/deaktivieren beim HM-CFG-USB Adapter auch gar nicht notwendig.
Zitat
Ich habe das im Beitrag #416 beschriebene Kommunikationsproblem auf den in der Anleitung beschriebenen und von mir nicht durchgeführten Step zurückgeführt.
ZitatEs kommt kurz ein "X" gefolgt von einem "piep", direkt danach (also innerhalb des zwei sekunden knopf drückens) kommt ein "c", wieder gefolgt von einem "piep", Das Symbol für Funkempfang blickt kurz auf und danach zeigt er ein "M" an.
ZitatGeht das nicht einfacher und einiges im Standard?standard ist der hmlan. anstecken fertig.
ZitatMüssen echt erst die hmID über einen PC von Stick gelesen werdennein.
Zitatdie libusb (die übrigens in meinem Verzeichnis ...fhem\lib nicht vorhanden ist) ins System kompiliert werdennein. höchstens kopieren. ich musste nichts kompilieren, da es user gibt, die bereits kompilierte dateien zur verfügung gestellt haben. danke dafür. ich vermute sogar im ersten beitrag. ;)
Zitatund die startfhem modifiziert werden?du musst nicht. je nachdem was du tun möchtest, ist es aber sehr vorteilhaft.
ZitatDie Software ist in C mit der einzigen Abhängigkeit libusb-1.0 geschrieben, womit sie auch auf kleinen Routern mit OpenWRT oder z.B. einer Fritzbox genutzt werden kann. Fritzbox-Binaries finden sich in diesem Post, ein OpenWrt-Paket für die ar71xx-Platform gibt es hier.über den link der worte "diesem Post" komme ich komischerweise sofort zu einer angehängten datei. ;)
wget -O ./lxccu-repo.deb http://cdn.lxccu.com/latest-repo
dpkg -i ./lxccu-repo.deb
apt-get update
apt-get install hmcfgusb
#!/bin/sh
cd /opt/
apt-get install build-essential libusb-1.0-0-dev make gcc git-core
git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
make
cat > /etc/init.d/hmland <<"EOF"
#!/bin/sh
# simple init for hmland
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start hmland daemon at boot time
# Description: Provide Service to use HM-USB-CFG Adapter for FHEM.
### END INIT INFO
pidfile=/var/run/hmland.pid
port=1234
case "$1" in
start|"")
chrt 50 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
EOF
sudo chmod 755 /etc/init.d/hmland
sudo update-rc.d hmland defaults
sudo service hmland start
Zitat von: hexenmeister am 11 August 2014, 16:28:16
oder mit dem Betriebsystem starten...
Zitat von: marc2 am 10 Mai 2014, 20:46:04
Hi !
Hab die aktuellste Version aus dem git gerade einmal über den Crosscompiler geschoben.
hmland und hmsniff laufen auf den ersten Blick wie gehabt einwandfrei. Die beiden flash-tools
habe ich nicht getestet (habe kein OTA Device und den Stick hatte ich am PC aktualisiert).
Gruß, Marc
Zitat von: HeikoE am 15 August 2014, 21:29:44
Gibts da überhaupt eine wesentliche Änderung gegenüber 0.096?
Zitat von: betateilchen am 11 August 2014, 15:49:59
das ist auf dem Cubietruck die gleiche Anleitung, die hier im Thread im allerersten Beitrag steht.
- apt-get install libusb-1.0-0-dev
- cd /opt
- git clone git://git.zerfleddert.de/hmcfgusb
- cd hmcfgusb
- make
Fertig.
Zum automatischen Starten des daemon am Besten einfach in das fhem-Startskript einbinden. (kann ich erst heute abend posten)
ZitatAlternative Einrichtung, Start über fhem Startskript
Ausprobiert auf einem BBB mit Debian, eigentlich ist das alles von Betateilchen:
Zunächst hmland kompilieren wie oben beschrieben, bis zum make. Das muss erfolgreich durchgelaufen sein.
2014.08.19 13:35:58 3: HMUSB: Unknown code A0C11867020DA4B000000009857::-63:HMUSB, help me!
2014.08.19 13:35:56 3: HMUSB: Unknown code A0CD886701EA39000000000CA3B::-39:HMUSB, help me!
2014.08.19 13:33:59 1: HMLAN_Parse: HMUSB new condition ok
2014.08.19 13:33:58 1: Including ./log/fhem.save
2014.08.19 13:33:58 1: HMLAN_Parse: HMUSB new condition init
2014.08.19 13:33:58 3: HMUSB device opened
2014.08.19 13:33:58 3: Opening HMUSB device 127.0.0.1:1234
2014.08.19 13:33:58 1: HMLAN_Parse: HMUSB new condition disconnected
2014.08.19 13:33:58 2: eventTypes: loaded 36 events from ./log/eventTypes.txt
2014.08.19 13:33:58 3: WEBtablet: port 8085 opened
2014.08.19 13:33:58 3: WEBphone: port 8084 opened
2014.08.19 13:33:58 3: WEB: port 8083 opened
2014.08.19 13:33:58 3: telnetPort: port 7072 opened
2014.08.19 13:33:58 1: Including fhem.cfg
2014.08.19 13:33:53 1: HMLAN_Parse: HMUSB new condition ok
2014.08.19 13:33:53 3: HMUSB: Unknown code A0CD786701EA39000000000CA3B::-39:HMUSB, help me!
2014.08.19 13:33:52 1: Including ./log/fhem.save
2014.08.19 13:33:52 1: HMLAN_Parse: HMUSB new condition init
2014.08.19 13:33:52 3: HMUSB device opened
2014.08.19 13:33:52 3: Opening HMUSB device 127.0.0.1:1234
2014.08.19 13:33:52 1: HMLAN_Parse: HMUSB new condition disconnected
2014.08.19 13:33:52 2: eventTypes: loaded 36 events from ./log/eventTypes.txt
2014.08.19 13:33:52 3: WEBtablet: port 8085 opened
2014.08.19 13:33:52 3: WEBphone: port 8084 opened
2014.08.19 13:33:52 3: WEB: port 8083 opened
2014.08.19 13:33:52 3: telnetPort: port 7072 opened
2014.08.19 13:33:52 1: Including fhem.cfg
2014.08.19 13:33:47 3: HMUSB: Unknown code A0C10867020DA4B000000009757::-62:HMUSB, help me!
2014.08.19 13:32:49 1: HMLAN_Parse: HMUSB new condition ok
cp hmcfgusb.rules /etc/udev/rules.d/
nano /etc/init.d/fhem
'start')
echo "Starting fhem..."
/opt/hmcfgusb/hmland -d -p 1234
perl fhem.pl fhem.cfg
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
perl fhem.pl $port "shutdown"
RETVAL=$?
pkill hmland
Zitat von: moonsorrox am 19 August 2014, 15:27:11
das Verzeichnis habe ich nicht /opt/hmcfgusb/hmland
ich habe nur /opt/hmcfgusb/ und hier ist nur eine Datei die hmland heißt drin
Zitat von: betateilchen am 19 August 2014, 15:30:43
Übrigens: Irgendwelche udev-Regeln habe ich für den hmland noch nie benötigt oder installiert.
Zitatmusste man in das Verzeichnis von hmland wechselnweil es so geschrieben wurde.. OK also alles OK
2014.08.19 15:29:44 3: HMUSB: Unknown code A0C3E867020DA4B000000009954::-63:HMUSB, help me!
2014.08.19 15:29:25 3: HMUSB: Unknown code A0C0586701EA39000000000CC3A::-39:HMUSB, help me!
2014.08.19 15:27:41 3: HMUSB: Unknown code A0C3D867020DA4B000000009954::-65:HMUSB, help me!
2014.08.19 15:26:45 3: HMUSB: Unknown code A0C0486701EA39000000000CC3A::-38:HMUSB, help me!
2014.08.19 15:25:23 3: HMUSB: Unknown code A0C3C867020DA4B000000009A54::-65:HMUSB, help me!
2014.08.19 15:23:52 3: HMUSB: Unknown code A0C0386701EA39000000000CB3A::-39:HMUSB, help me!
2014.08.19 15:22:51 3: HMUSB: Unknown code A0C3B867020DA4B000000009B54::-62:HMUSB, help me!
2014.08.19 15:21:47 3: HMUSB: Unknown code A0C0286701EA39000000000CC3A::-39:HMUSB, help me!
2014.08.19 15:20:05 3: HMUSB: Unknown code A0C3A867020DA4B000000009B53::-62:HMUSB, help me!
2014.08.19 15:19:29 3: HMUSB: Unknown code A0C0186701EA39000000000CC3A::-39:HMUSB, help me!
Zitat von: moonsorrox am 19 August 2014, 15:36:07
der Beitrag aus dem Wiki sagt das so, deshalb.. habe ich mir nicht ausgedacht ;)
Zitat von: moonsorrox am 19 August 2014, 15:36:07
weil es so geschrieben wurde
Zitatmusste man in das Verzeichnis von hmland wechseln
Zitat von: betateilchen am 11 August 2014, 15:49:59
das ist auf dem Cubietruck die gleiche Anleitung, die hier im Thread im allerersten Beitrag steht.
- apt-get install libusb-1.0-0-dev
- cd /opt
- git clone git://git.zerfleddert.de/hmcfgusb
- cd hmcfgusb
- make
Fertig.
Zum automatischen Starten des daemon am Besten einfach in das fhem-Startskript einbinden. (kann ich erst heute abend posten)
ZitatWie kann ich denn genau testen ob der nun funktioniert..?zb setzt du ihn als io-device bei deinem rolladen-aktor und gibst dann den befehl zum zufahren in fhem. dann sollte das teil zufahren, wenn es vorher offen ist.
2014.08.19 16:51:23 3: HMUSB: Unknown code A0C5E867020DA4B000000009255::-65:HMUSB, help me!
2014.08.19 16:51:17 3: HMUSB: Unknown code A0B3FA440280D342B29CA011A::-33:HMUSB, help me!
2014.08.19 16:51:15 3: HMUSB: Unknown code A0B3EA440280D342B29CA0216::-38:HMUSB, help me!
ZitatAber was sind das für Fehlermeldungen die ich laufend bekomme, dass ganze Log steht voll davondas sind keine fehlermeldungen, sondern hinweise auf unbekannten code. wahrscheinlich devices deines nachbarn. such mal nach vccu und help me.
Ich soll ihm helfen, aber was ;)
ls -al /dev|grep ttyUSB
2014.08.23 15:51:35.303 3: HMUSB1: Unknown code A0A158005123ABC1DC3CE00::-93:HMUSB1, help me!
2014.08.23 15:51:51.778 3: HMLAN1: Unknown code A0B23A011123ABC1DC3764501::-89:HMLAN1, help me!
attr Ladestation IODev HMUSB
ZitatJetzt habe ich aber alle Geräte am HMLAN betrieben und den habe ich jetzt erst mal vom Strom getrennt,den musst du nicht trennen. wozu?
ZitatMuss ich alle Geräte auf Werkszustand setzen und am USB Stick anlernen..?auf werkszustand musst du gar nichts setzen. ob du neu pairen musst, liegt an deinen wünschen.
Zitat von: frank am 26 August 2014, 15:09:24
den musst du nicht trennen. wozu?
Zitat von: frank am 26 August 2014, 15:09:24
willst du ihn zusätzlich zu deinem hmlan, also mit gleicher hmid benutzen?
Zitatweil ich den raus haben will und dafür den USB Stick nutzen möchtedann ist es ja noch einfacher. hmlan raus und dem usb den selben namen geben wie dem hmlan. sonst musst du die attribute IODev deiner devices alle auf den hmusbnamen ändern.
Zitat von: frank am 26 August 2014, 15:32:38:D ;)
dann ist es ja noch einfacher.
Zitat von: frank am 26 August 2014, 15:32:38das hatte ich ja auch gedacht ist aber kein Problem, es sind momentan nur 5 Stk. und das hat ja Fhem beim speichern gemacht, dass funktionierte aber eben nicht...
hmlan raus und dem usb den selben namen geben wie dem hmlan. sonst musst du die attribute IODev deiner devices alle auf den hmusbnamen ändern.
ZitatIch denke ich ich muss die ID dazu noch ändern...wenn die hmid von hmlan und hmusb gleich sind (attr <io> hmID 123456), musst du nur attr IODev ändern.
ZitatNeue Geräte sollen auf den Dachboden und zwei sind im Obergeschossalso den hmlan behalten und mit lankabel ab ins og. dann noch vccu definieren und entspannt zurücklehnen. 8)
Zitat von: Puschel74 am 26 August 2014, 19:58:34da oben brauche ich den momentan >noch< nicht, weil ich noch nicht soweit bin, da sitzen dann ja auch die Somfy Teile, aber da habe ich dann wieder Strom und Netzwerk, alles da...!
So wäre die Steckdose gleichzeit Netzwerkdose und du könntest deinen Lan-Adapter schonmal platzieren.
Daemon with PID 1570 started!
Daemon with PID 1569 started!
Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
Daemon with PID 1580 started!
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4b 45 H.HM-USB-IF...KE
USB > 0x0010: 51 31 31 31 30 39 33 34 26 35 15 26 35 15 00 00 Q1110934&5.&5...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 69ms!
USB < 0x0000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 47ms!
USB < 0x0000: 59 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4b 45 I....USB-IF...KE
USB > 0x0010: 51 31 31 31 30 39 33 34 26 35 15 26 35 15 00 00 Q1110934&5.&5...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 62ms!
USB < 0x0000: 59 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4b 45 I....USB-IF...KE
USB > 0x0010: 51 31 31 31 30 39 33 34 26 35 15 26 35 15 00 00 Q1110934&5.&5...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 59ms!
USB < 0x0000: 59 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4b 45 I....USB-IF...KE
USB > 0x0010: 51 31 31 31 30 39 33 34 26 35 15 26 35 15 00 00 Q1110934&5.&5...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
USB < 0x0000: 54 1b 96 d2 4e 04 00 00 00 00 00 00 00 00 00 00 T...N...........
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 47ms!
USB < 0x0000: 53 2f f5 2e 2c 00 00 00 00 00 01 2f f5 2e 2c 09 S/..,....../..,.
USB < 0x0010: 99 81 12 99 99 99 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 52 2f f5 2e 2c 00 02 00 00 00 00 ff 7f ff 09 99 R/..,...........
USB > 0x0010: 81 12 99 99 99 00 00 00 26 35 15 26 35 15 00 00 ........&5.&5...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 63ms!
USB < 0x0000: 2b 28 ce 98 00 01 00 00 00 00 00 00 00 00 00 00 +(..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 37ms!
USB < 0x0000: 2b 52 ba 88 00 01 00 00 00 00 00 00 00 00 00 00 +R..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
USB < 0x0000: 2b 52 ba 5e 00 01 00 00 00 00 00 00 00 00 00 00 +R.^............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
USB < 0x0000: 2b 52 bd 69 00 01 00 00 00 00 00 00 00 00 00 00 +R.i............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
USB < 0x0000: 2b 27 67 8b 00 01 00 00 00 00 00 00 00 00 00 00 +'g.............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 52ms!
USB < 0x0000: 2b 52 ba 88 00 01 00 00 00 00 00 00 00 00 00 00 +R..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 43ms!
USB < 0x0000: 53 2f f5 54 f0 00 00 00 00 00 01 2f f5 54 f0 0b S/.T......./.T..
USB < 0x0010: 01 b0 01 26 35 15 52 ba 88 01 0e 00 00 00 00 00 ...&5.R.........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
USB > 0x0000: 45 52 ba 88 00 00 00 00 fb 70 ff ff d8 0e 01 a0 ER.......p......
USB > 0x0010: 10 52 ba 88 26 35 15 06 01 01 00 23 35 15 00 00 .R..&5.....#5...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 52 2f f5 54 f0 00 01 00 00 fb 75 ff ff d8 0e 01 R/.T......u.....
USB > 0x0010: a0 10 52 ba 88 26 35 15 06 01 01 00 23 15 00 00 ..R..&5.....#...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0000: 2b 52 ba 5e 00 01 00 00 00 00 00 00 00 00 00 00 +R.^............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 39ms!
USB < 0x0000: 53 2f f5 58 f4 00 00 00 00 00 01 2f f5 58 f4 0b S/.X......./.X..
USB < 0x0010: 02 b0 01 26 35 15 52 ba 5e 01 0e 00 00 00 00 00 ...&5.R.^.......
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
USB > 0x0000: 45 52 ba 5e 00 00 00 00 ff 6f ff ff c2 0e 02 a0 ER.^.....o......
USB > 0x0010: 10 52 ba 5e 26 35 15 06 01 01 00 39 23 15 00 00 .R.^&5.....9#...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 52 2f f5 58 f4 00 01 00 00 ff 74 ff ff c2 0e 02 R/.X......t.....
USB > 0x0010: a0 10 52 ba 5e 26 35 15 06 01 01 00 39 15 00 00 ..R.^&5.....9...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0000: 2b 52 bd 69 00 01 00 00 00 00 00 00 00 00 00 00 +R.i............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 40ms!
USB < 0x0000: 53 2f f5 5c f4 00 00 00 00 00 01 2f f5 5c f4 0b S/.\......./.\..
USB < 0x0010: 03 b0 01 26 35 15 52 bd 69 01 0e 00 00 00 00 00 ...&5.R.i.......
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
USB > 0x0000: 45 52 bd 69 00 00 00 01 03 71 ff ff bb 0e 03 a0 ER.i.....q......
USB > 0x0010: 10 52 bd 69 26 35 15 06 01 01 00 42 39 15 00 00 .R.i&5.....B9...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 52 2f f5 5c f4 00 01 00 01 03 76 ff ff bb 0e 03 R/.\......v.....
USB > 0x0010: a0 10 52 bd 69 26 35 15 06 01 01 00 42 15 00 00 ..R.i&5.....B...
USB > 0x0020: d2 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .p..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4b 45 H.HM-USB-IF...KE
USB > 0x0010: 51 31 31 31 30 39 33 34 26 35 15 26 35 15 00 01 Q1110934&5.&5...
USB > 0x0020: 34 0f 00 05 04 00 00 00 00 00 00 00 00 00 00 00 4...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 39ms!
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4b 45 H.HM-USB-IF...KE
USB > 0x0010: 51 31 31 31 30 39 33 34 26 35 15 26 35 15 00 01 Q1110934&5.&5...
USB > 0x0020: 95 ce 00 05 04 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 59ms!
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$home/opt/hmlan/lib
ps | grep hmland | grep -v -q grep || $home/opt/hmlan/bin/hmland -l 127.0.0.1 -p 1234 -d >> $home/log/hmland.log 2>&1
#!/bin/sh
home=/var/InternerSpeicher/fhem
cd $home
trap "" SIGHUP
modprobe cdc_acm
modprobe ftdi_sio
sleep 2
ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd
PATH=$home:$PATH
export PATH
export LD_LIBRARY_PATH=$home/lib
# >>> Erweiterung Homematic
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$home/opt/hmlan/lib
ps | grep hmland | grep -v -q grep || $home/opt/hmlan/bin/hmland -D -l 127.0.0.1 -p 1234 -d >> $home/log/hmland.log 2>&1
sleep 2
# <<< Erweiterung Homematic
ZitatDaemon with PID 1570 started!Da kein Datum und Zeit dabei stehen, würde ich die Logdatei löschen und mal sehen was bei einem Neustart (des Systems und Fhem) dort eingetragen wird.
Daemon with PID 1569 started!
Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
cd /opt/
apt-get install build-essential libusb-1.0-0-dev make gcc git-core
git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
make
./hmland -p 5678 -D
bekomme ich Endlosmeldungen in der SSH Konsole:ZitatCan't initialize HM-CFG-USB!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Zitat2014.09.02 15:11:29 1: HMLAN_Parse: hmusb new condition init
2014.09.02 15:11:30 1: 127.0.0.1:5678 disconnected, waiting to reappear (hmusb)
2014.09.02 15:11:30 1: HMLAN_Parse: hmusb new condition disconnected
2014.09.02 15:11:30 1: 127.0.0.1:5678 reappeared (hmusb)
2014.09.02 15:11:30 1: HMLAN_Parse: hmusb new condition init
define hmusb HMLAN 127.0.0.1:5678
attr hmusb hmId 823313
./flash-hmcfgusb hmusbif.enc
./hmland -i
lsusb
und poste die Ausgabe.Zitat von: betateilchen am 02 September 2014, 16:59:47
Mach mal einCode Auswählenlsusb
und poste die Ausgabe.
Wenn der Stick ohnehin nicht initialisiert werden kann, ist es eigentlich auch logisch, dass ein update oder eine Firmwareabfrage nicht funktioniert ;)
ZitatBus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 008: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 009: ID 0403:6001 Future Technology Devices International, Ltd FT 232 USB-Serial (UART) IC
Bus 001 Device 010: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Zitat von: Bennemannc am 02 September 2014, 17:25:38
Hallo,
könnte der Port mit etwas anderem belegt sein ? Versuche mal 1234 wie es in der Anleitung steht.
Gruß Christoph
./hmland -d -p 1234
Bus bbb Device ddd: ID 1b1f:c00f
ZitatBus 001 Device 023: ID 13fe:3400 Kingston Technology Company Inc.Ich habe den Konfigurations Adapter nun in den Hub gesteckt und wieder mit
Zitatsudo ./hmland -d -p 1234gestartet, aber auch hier erneut das gleiche Ergebnis: Endlosschleife nachdem ich fhem das Geräte bekannt gemacht habe.
ZitatBus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.also ebenfalls keinen Konf-Adapter...
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Zitat von: Roaster am 02 September 2014, 20:44:21
Noch eine Idee: was muss eigentlich passieren, wenn ich den Adapter an meinen Windows PC anstecke?
Zitat von: betateilchen am 02 September 2014, 20:50:12
Egal wo Du den ansteckst: Der Stick muss auf jeden Fall ein optisches Lebenszeichen in Form einer grünen LED zeigen - kommt das?
Zitat2014.09.14 11:23:23 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
2014.09.14 11:23:22 3: CUL_HM set SDKind statusRequest
2014.09.14 11:23:22 1: HMLAN_Parse: hmusb new condition init
2014.09.14 11:23:22 1: 127.0.0.1:1234 reappeared (hmusb)
2014.09.14 11:23:22 1: HMLAN_Parse: hmusb new condition disconnected
2014.09.14 11:23:22 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
2014.09.14 11:23:21 1: HMLAN_Parse: hmusb new condition init
2014.09.14 11:23:21 1: 127.0.0.1:1234 reappeared (hmusb)
2014.09.14 11:23:21 1: HMLAN_Parse: hmusb new condition disconnected
2014.09.14 11:23:21 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
Zitat von: RoBra81 am 13 September 2014, 22:57:03
Könnte mir vielleicht jemand den hmland für FRITZ!OS 6.20 auf der FritzBox 7490 bauen?
Zitat von: Bennemannc am 02 September 2014, 20:55:57
das mit dem Stick und Windows ist sehr defizil. Wenn ich das Recht in Erinnerung habe, musste man zuerst die Software installieren und dann den Stick reinstecken, damit Windows auch die Treiber hat.
Also noch mal raus, an einem anderen Port rein und warten.
ZitatDer USB-Stack am Raspberry Pi ist für viele Probleme verantwortlich. Daher sieht man öfter Fehlermeldungen:
usb-transfer took more than 100ms (1039ms), this may lead to timing problems!
Da das Timing bei Homematic wichtig ist führt das zu vielen Retransmits und zu unzuverlässigen Aktoren. Als Workaround kann man den USB-Stack auf die deutlich langsamere Version 1.1 stellen. Dazu fügt man folgenden Text am Anfang der Datei /boot/cmdline.txt ein:
dwc_otg.speed=1
ZitatEin HMUSB hat nahezu identische Eigenschaften wie ein HMLAN. Der wesentliche Unterschied ist die Anbindung über USB anstatt Ethernet.Nachdem ich aber das Teil mal angeschlossen habe, stelle ich auch fest, dass es außer dem "Sicherheitsschlüssel" nichts einzustellen gibt. Diesen Schlüssel lasse ich aber aufgrund der Infos hier im Forum unangetastet (also leer, ergo HomeMatic-Default) und schalte später über fhem auch die Signierung ab. Signierung mit Default macht ja wohl ganz wenig Sinn.
Zitat von: ujaudio am 15 Oktober 2014, 18:57:46Bin zwar nicht der Profi, aber ich hab's so am Laufen. Lediglich das erste Mal, gleich nachdem ich den Stick ausgepackt habe, installierte ich die HM Software auf meinem PC und habe ein Update der Firmware (über den PC) gemacht. Anschließend abgesteckt und am Raspberry dann eingesteckt. Läuft bis jetzt ohne Probleme mit derzeit zweit Aktoren, siehe unten.
Noch eine Frage an die fhem-HomeMatic-Profis: Ich würde somit den USB-Stick an den fhem-Raspberry anschließen und brauche eigentlich zu keinem Zeitpunkt meinen PC - korrekt?
Error messages while initializing FHEM:
statefile: Please define hmusb first
Please define hmusb first
Please define hmusb first
Please define hmusb first
Please define hmusb first
'start')
echo "Starting fhem..."
/opt/hmcfgusb/hmland -d -p 1000
perl fhem.pl fhem.cfg
RETVAL=$?
;;
define hmusb HMLAN 127.0.0.1:1000
attr hmusb hmId 424242
2014.10.18 16:54:13 0: Server shutdown
2014.10.18 16:54:29 1: Including fhem.cfg
2014.10.18 16:54:29 3: telnetPort: port 7072 opened
2014.10.18 16:54:31 3: WEB: port 8083 opened
2014.10.18 16:54:31 3: WEBphone: port 8084 opened
2014.10.18 16:54:31 3: WEBtablet: port 8085 opened
2014.10.18 16:54:32 2: eventTypes: loaded 20 events from ./log/eventTypes.txt
2014.10.18 16:54:33 3: Opening FS20 device /dev/ttyACM0
2014.10.18 16:54:33 3: Setting FS20 baudrate to 9600
2014.10.18 16:54:33 3: FS20 device opened
2014.10.18 16:54:34 3: FS20: Possible commands: BCFiAZEGMKRTVWXefmltux
2014.10.18 16:54:34 1: Including ./log/fhem.save
2014.10.18 16:54:34 1: statefile: Please define hmusb first
Please define hmusb first
Please define hmusb first
Please define hmusb first
Please define hmusb first
2014.10.18 16:54:34 1: usb create starting
2014.10.18 16:54:37 3: Probing CUL device /dev/ttyAMA0
2014.10.18 16:54:37 3: Can't open /dev/ttyAMA0: Permission denied
2014.10.18 16:54:38 1: usb create end
2014.10.18 16:54:38 2: Error messages while initializing FHEM: statefile: Please define hmusb first Please define hmusb first Please define hmusb first Please define hmusb first Please define hmusb first
2014.10.18 16:54:38 0: Server started with 18 defined entities (version $Id: fhem.pl 6684 2014-10-05 07:42:43Z rudolfkoenig $, os linux, user fhem, pid 1975)
2014.10.18 16:56:40 1: HMLAN_Parse: hmusb new condition disconnected
2014.10.18 16:56:40 3: Opening hmusb device 127.0.0.1:1000
2014.10.18 16:56:41 3: hmusb device opened
2014.10.18 16:56:41 1: HMLAN_Parse: hmusb new condition init
2014.10.18 16:56:41 1: HMLAN_Parse: hmusb new condition ok
attr global motd none
Zitat von: volschin am 21 Oktober 2014, 07:37:56
Aus irgendeinem Grund wird die FHEM.save vor dem Define des hmusb abgearbeitet. Hast Du die fhem.cfg manuell bearbeitet?
Zitat von: ujaudio am 21 Oktober 2014, 12:16:20Ich muss mal nachlesen wie man aus der Ferne einen neuen Restart auslöst (über den Port 8083,
2014.10.18 16:54:34 1: usb create starting
2014.10.18 16:54:37 3: Probing CUL device /dev/ttyAMA0
2014.10.18 16:54:37 3: Can't open /dev/ttyAMA0: Permission denied
2014.10.18 16:54:38 1: usb create end
Zitatalle 24 Stunden erfolgt der Restart (den muss ich noch mit "-r 03:30" im Startscript vom Nachmittag in die Nacht verlegen...die aktuelle version macht, glaube ich, per default keinen 24h-restart mehr, da er nicht mehr nötig ist (-r 0).
Zitat von: frank am 21 Oktober 2014, 12:42:03
die aktuelle version macht, glaube ich, per default keinen 24h-restart mehr, da er nicht mehr nötig ist
Zitat von: betateilchen am 21 Oktober 2014, 13:20:25merci. da bleibt keine frage mehr offen.
Richtig wäre: "Die aktuelle Version prüft die Firmwareversion des USB Sticks und schaltet ab einer bestimmten Firmwareversion den dann nicht mehr notwendigen restart ab, sofern nicht beim Aufruf mit -r etwas anderes bestimmt wurde." ;)
/opt/hmcfgusb# ./hmland -i
HHM-USB-IF,03C4,LEQ0659148,2CC699,2CC699,002040D1,0003
Interrupt transfer not completed: Unknown error code 5 / 0x05!
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: Other error
Zitat von: ujaudio am 02 November 2014, 11:21:42
Ich muss mir gemäß Link eine Datei "hmusbif.enc" besorgen, aber in welches Verzeichnis muss ich dieses legen?
ZitatSeit dem 10.2.2014 kann nun auch die Firmware des HM-CFG-USB aktualisiert werden. Hierzu wird mindestens die Version 0.092-git von hmcfgusb und eine Firmwaredatei (heisst meistens hmusbif.enc) benötigt. Die aktuellste Firmware (0.967) findet sich hier (extrahiert hier). Hat man diese Voraussetzungen geschaffen, kann man die Firmware nun aktualisieren:Code Auswählendeepthought [~/hmcfgusb]> ./flash-hmcfgusb hmusbif.enc
HM-CFG-USB flasher version 0.092-git
Reading firmware from hmusbif.enc...
Firmware with 368 blocks successfully read.
HM-CFG-USB not in bootloader mode, entering bootloader.
Interrupt transfer not completed: Unknown error code 1 / 0x01!
Can't send null frame: Input/output error
Waiting for device to reappear...
Can't find/open hmcfgusb!
Can't find/open hmcfgusb!
HM-CFG-USB opened.
Flashing 368 blocks: |
Firmware update successfull!
Zitat von: ujaudio am 02 November 2014, 11:21:42
- Muss ich mir über die Fehlermeldung Gedanken machen? Kann deswegen das Update schief laufen?
- Ich muss mir gemäß Link eine Datei "hmusbif.enc" besorgen, aber in welches Verzeichnis muss ich dieses legen?
- Welches ist die beste Methode eine Datei auf den Raspberry zu schieben?
2014.11.02 12:33:51 3: Opening HMUSB device 127.0.0.1:1234
2014.11.02 12:33:51 3: Can't connect to 127.0.0.1:1234: Connection refused
./hmland -d -p 1234 -r 0
Can't initialize HM-CFG-USB!
Can't open device: Access denied (insufficient permissions)
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
Can't open device: Access denied (insufficient permissions)
Can't find/open hmcfgusb!
...
FHEM-LOG:
2014.11.02 12:43:05 1: 127.0.0.1:1234 reappeared (HMUSB)
2014.11.02 12:43:05 1: HMLAN_Parse: HMUSB new condition init
2014.11.02 12:43:05 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2014.11.02 12:43:05 1: HMLAN_Parse: HMUSB new condition disconnected
2014.11.02 12:43:05 1: 127.0.0.1:1234 reappeared (HMUSB)
2014.11.02 12:43:05 1: HMLAN_Parse: HMUSB new condition init
2014.11.02 12:43:06 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2014.11.02 12:43:06 1: HMLAN_Parse: HMUSB new condition disconnected
sudo apt-get install libusb-1.0-0-dev
cd /opt
sudo git clone git://git.zerfleddert.de/hmcfgusb
sudo apt-get install build-essential libusb-1.0-0-dev make gcc git-core
cd hmcfgusb
sudo make
Bus 003 Device 002: ID 1b1f:c00f
cp hmcfgusb.rules /etc/udev/rules.d/
datum=`date +"%F_%R"`
case "$1" in
'start')
echo "Starting hmlan..."
sudo /opt/hmcfgusb/hmland -d -p 1000 >> /opt/fhem/log/hmland_$datum.log 2>&1
sleep 2
echo "Starting fhem..."
sudo perl fhem.pl fhem.cfg &
RETVAL=$?
usb-transfer took more than 100ms (2111ms), this may lead to timing problems!
usb-transfer took more than 100ms (706ms), this may lead to timing problems!
usb-transfer took more than 100ms (208ms), this may lead to timing problems!
usb-transfer took more than 100ms (248ms), this may lead to timing problems!
usb-transfer took more than 100ms (216ms), this may lead to timing problems!
usb-transfer took more than 100ms (115ms), this may lead to timing problems!
set HMUSB hmPairSerial <Nummer deines Aktors>
Zitat von: hexenmeister am 11 August 2014, 16:28:16
oder mit dem Betriebsystem starten...
folgendes in eine script.sh schreiben, Rechte setzen (chmod a+r script.sh), (als root) ausführen, glücklich sein ;)Code Auswählencd /opt/
apt-get install build-essential libusb-1.0-0-dev make gcc git-core
git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
make
cat > /etc/init.d/hmland <<"EOF"
# simple init for hmland
pidfile=/var/run/hmland.pid
port=1234
case "$1" in
start|"")
chrt 50 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
EOF
sudo chmod 755 /etc/init.d/hmland
sudo update-rc.d hmland defaults
service hmland start
Zitat von: Belei am 15 November 2014, 21:58:45
Wo musst ich denn diese Script.sh hinkopieren? Und Installiert sich das dann jedesmal neu?
Bzw. War es das dann schon, kann ich dann schon den Stick definieren?
Gesendet von iPhone mit Tapatalk
Zitat von: betateilchen am 15 November 2014, 19:22:37Dankeschön! Klasse Tipp, daran lag es! Zumindest hat das Pairen sofort auf Anhieb geklappt als ich fhem mal testweise mit einer "frischen" (fast leeren) Config gestartet habe, in der ich dann nur das HMUSB-Device angelegt habe.
Prüfe vor allen Dingen, ob in Deiner Konfiguration noch irgendwo auch nur das geringste Schnipsel der HmId des Aktors vorhanden ist - ein solcher Fall hat mich schonmal zwei Tage Fehlersuche gekostet.
Zitat von: Belei am 16 November 2014, 13:23:06
Danke, habe geade mit notepad++ den script erstellt. und per winscp auf den raspberry kopiert.
Zitat von: Belei am 16 November 2014, 23:42:35Ähhh, mein Fehler. a+r setzt Dateirechte für alle 'lesbar'. a+x dagegen "ausführbar". Also natürlich a+x ist richtig. Habe eine entsprechende Bemerkung im Originalpost hinterlassen.
Im originalpost schreibst du rechte auf a+r
Und hier auf a+x. Ist das entscheidend? Hab sie jetzt auf a+r!
Zitatsudo ./script.sh
./script.sh: 1: cd: can't cd to /opt/
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git-core
fatal: destination path 'hmcfgusb' already exists and is not an empty directory.
./script.sh: 4: cd: can't cd to hmcfgusb
: not found: 5: ./script.sh: make
chmod: cannot access `/etc/init.d/hmland\r': No such file or directory
update-rc.d: using dependency based boot sequencing
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
hmland: unrecognized service
pi@raspberrypi ~ $ cd /tmp
pi@raspberrypi /tmp $ chmod a+x script.sh
pi@raspberrypi /tmp $ sudo ./script.sh
./script.sh: 1: cd: can't cd to /opt/
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git-core
Cloning into 'hmcfgusb'...
remote: Counting objects: 351, done.
remote: Compressing objects: 100% (342/342), done.
remote: Total 351 (delta 228), reused 0 (delta 0)
Receiving objects: 100% (351/351), 66.53 KiB, done.
Resolving deltas: 100% (228/228), done.
./script.sh: 4: cd: can't cd to hmcfgusb
: not found: 5: ./script.sh: make
chmod: cannot access `/etc/init.d/hmland\r': No such file or directory
update-rc.d: using dependency based boot sequencing
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
hmland: unrecognized service
ls -l /
und ls -l /opt
?cd /opt/
sudo apt-get install build-essential libusb-1.0-0-dev make gcc git-core
sudo git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
sudo make
pi@raspberrypi ~ $ ls -l /
total 88
drwxr-xr-x 2 root root 4096 Sep 17 13:54 bin
drwxr-xr-x 3 root root 16384 Jan 1 1970 boot
drwxr-xr-x 14 root root 3180 Oct 17 21:17 dev
drwxr-xr-x 109 root root 4096 Nov 17 19:19 etc
drwxr-xr-x 3 root root 4096 Jun 20 07:48 home
drwxr-xr-x 12 root root 4096 Sep 17 13:55 lib
drwx------ 2 root root 16384 Jun 20 07:34 lost+found
drwxr-xr-x 2 root root 4096 Jun 20 07:36 media
drwxr-xr-x 2 root root 4096 May 1 2014 mnt
drwxr-xr-x 7 root root 4096 Sep 17 14:28 opt
dr-xr-xr-x 82 root root 0 Jan 1 1970 proc
drwx------ 3 root root 4096 Aug 25 00:05 root
drwxr-xr-x 12 root root 520 Nov 17 19:19 run
drwxr-xr-x 2 root root 4096 Aug 24 23:53 sbin
drwxr-xr-x 2 root root 4096 Jun 20 2012 selinux
drwxr-xr-x 2 root root 4096 Jun 20 07:36 srv
dr-xr-xr-x 12 root root 0 Jan 1 1970 sys
drwxrwxrwt 5 root root 4096 Nov 17 19:39 tmp
drwxr-xr-x 10 root root 4096 Jun 20 07:36 usr
drwxr-xr-x 13 root root 4096 Nov 5 18:39 var
pi@raspberrypi ~ $ ls -l /opt
total 20
drwxr-xr-x 2 root root 4096 Sep 17 14:33 AirPrint
drwxrwxrwx 11 fhem root 4096 Nov 4 22:26 fhem
drwxr-xr-x 5 root root 4096 Sep 17 13:51 sonic-pi
drwxr-xr-x 7 root root 4096 Jun 20 08:45 vc
drwxr-xr-x 3 root root 4096 Jun 20 11:24 Wolfram
pi@raspberrypi ~ $
sudo cp ./hmland /etc/init.d/hmland
kopieren.ls -l /etc/init.d/hmland
in etwa folgende Ausgabe liefern:-rwxr-xr-x 1 root root 1073 Aug 24 19:11 /etc/init.d/hmland
sudo chmod 755 /etc/init.d/hmland
sudo update-rc.d hmland defaults
service hmland start
#!/bin/sh
ZitatEvtl. Start-Reihenfolge... Hilft es, wenn Du nach dem Booten den Daemon per Hand startest?
Zitat~/hmcfgusb $ ./hmland -D -p 1234Das sieht für mich so aus, als sei er bereits ordentlich gestartet. Wie könnte ich prüfen wer oder was diese Adresse benutzt? Also ob es tatsächlich der Daemon ist?
Can't bind socket: Address already in use
# simple init for hmland
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start hmland daemon at boot time
# Description: Provide Service to use HM-USB-CFG Adapter for FHEM.
### END INIT INFO
sudo update-rc.d hmland defaults
sudo service hmland start
Zitat von: X-Franzi am 24 November 2014, 16:51:13
Da ist dieser Bereich bereits implementiert. :'( Funktioniert also auch nicht.
sudo service hmland stop
sudo service hmland start
Zitat# simple init for hmland
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start hmland daemon at boot time
# Description: Provide Service to user HM-USB-CFG Adapter for FHEM.
### END INIT INFO
pidfile=/var/run/hmland.pid
port=1234
case "$1" in
start|"")
chrt 50 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
ZitatMon Nov 24 19:16:05 2014: [hmland] Daemon with PID 2195 started!in FHEM: HMUSB disconnected
Mon Nov 24 19:16:05 2014: [hmland] Can't bind socket: Address already in use
Zitat[hmland] Already running with PID 2195 according to /var/run/hmland.pid!
ZitatRunning
~ $ /etc/init.d/hmland: 34: kill: No such process
Zitathmland: Kein Prozess gefunden. Rein und raus ist nun auch ergebnislos.
sudo netstat -a -p -e| grep 1234
Zitatsudo netstat -a -p -e| grep 1234
tcp 0 0 *:1234 *:* LISTEN root 2694 1955/hmland
tcp 0 0 localhost:37375 localhost:1234 VERBUNDEN fhem 2968 2099/perl
tcp 0 0 localhost:1234 localhost:37375 VERBUNDEN root 2695 1955/hmland
Thu Nov 27 21:41:42 2014: [hmland] usb-transfer took 63ms!
...
Thu Nov 27 21:41:47 2014: [hmland] usb-transfer took 38ms!
...
Thu Nov 27 21:41:49 2014: [hmland] usb-transfer took 49ms!
Zitat von: vbs am 29 November 2014, 17:02:53
Das Null-Frame scheint ein USB-Transfer zu sein, der keine Daten enthält, aber trotzdem nach jedem Transfers passiert (so im Code von hmland). Vielleicht so eine Art "Terminator". Wenn man den weglässt, klappt es erstmal immer noch. Wobei ich da kein gutes Gefühl bei habe, ohne wirklich zu verstehen, wozu das Null-Frame gedacht ist.
Perfmon: possible freeze starting at xxx, delay is yyy
define OG.ze.SE.HomematicRF HMLAN 127.0.0.1:5678
attr OG.ze.SE.HomematicRF hmId 888888
attr OG.ze.SE.HomematicRF hmLanQlen 1_min
attr OG.ze.SE.HomematicRF room Zentrale
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/freetz/
/var/media/ftp/HMLAN/hmland -d -L /var/media/ftp/HMLAN/hmcfgusb.log -P
Zitat von: RicoT am 09 Dezember 2014, 00:02:19
Ich hätte da mal nen Fehler mit zu teilen bei dem ich mir aber nicht sicher bin, ob es an FHEM oder hmland liegt. Und zwar habe ich gestern folgende Beobachtung gemacht:
Ich habe mir einen Rapberry Pi (B+) zugelegt und FHEM darauf installiert. Compilieren und alles hat einwandfrei und ohne Fehler geklappt. Das einzige Problem was ich hatte war, dass hmland immer direkt nach dem booten des Rapberry auf disconnected stand. Ich mußte den HM-CFG-USB jedesmal erst abziehen und wieder anstecken. Erst dann stand hmland auf opened und ich konnte meine Steckdosen schalten.
Meine vorgehensweise war IMMER Raspbian auf die Karte, Raspberry einrichten, FHEM installieren und einrichten, FHEM updaten, hmland compilieren...
Ich habe mehrfach immer wieder von vorne angefangen weil ich dachte ich hätte was falsch gemacht. Und dann kams:
Einmal hatte ich dann vergessen FHEM zu aktuallisieren. Und siehe da, es funktionierte alles auf anhieb und ohne Probleme. Ich habe es auch noch zwei mal probiert und es war immer wieder das gleiche. Sobald ich in FHEM ein Update gemacht habe, musste ich den Stick immer erst abziehen und wieder anstecken damit hmland funktioniert. FHEM Update war übrigens vom 05.12.2014...
Wie gesagt, ich weis nicht ob es an FHEM oder hmland liegt. Wollte es nur mal mitteilen...
2014.12.19 19:21:21 3: hmusb: Unknown code A0B98A2581121591126400000::-95:hmusb, help me!
2014.12.19 19:21:21 3: hmusb: Unknown code A0E988202112640112159010100002B::-93:hmusb, help me!
2014.12.19 19:22:33 3: hmusb: Unknown code A0C8D867011647B00000000D83A::-83:hmusb, help me!
2014.12.19 19:22:53 3: hmusb: Unknown code A0B8DA25811647B1C4C9D0000::-83:hmusb, help me!
2014.12.19 19:22:53 3: hmusb: Unknown code A0E8D82021C4C9D11647B0101000030::-79:hmusb, help me!
2014.12.19 19:23:05 3: hmusb: Unknown code A0C99867011215900000000DA40::-93:hmusb, help me!
2014.12.19 19:23:25 3: hmusb: Unknown code A0B99A2581121591126400000::-93:hmusb, help me!
2014.12.19 19:23:25 3: hmusb: Unknown code A0E9982021126401121590101000029::-89:hmusb, help me!
2014.12.19 19:25:04 3: hmusb: Unknown code A0C8E867011647B00000000D83A::-83:hmusb, help me!
2014.12.19 19:25:24 3: hmusb: Unknown code A0B8EA25811647B1C4C9D0000::-83:hmusb, help me!
2014.12.19 19:25:24 3: hmusb: Unknown code A0E8E82021C4C9D11647B0101000030::-79:hmusb, help me!
2014.12.19 19:25:58 3: hmusb: Unknown code A0C9A867011215900000000DA41::-92:hmusb, help me!
Zitat von: frank am 19 Dezember 2014, 19:42:54
suche vccu. ;)
Zitat von: hexenmeister am 11 August 2014, 16:28:16Hallo hexenmeister,
oder mit dem Betriebsystem starten...
folgendes in eine script.sh schreiben, Rechte setzen (chmod a+x script.sh), (als root) ausführen, glücklich sein
root@squeezeplug:/opt/hmcfgusb# ./script.sh
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'hmland' missing LSB tags and overrides
insserv: There is a loop between service logitechmediaserver and hmland if stopped
insserv: loop involving service hmland at depth 2
insserv: loop involving service logitechmediaserver at depth 1
insserv: Stopping hmland depends on logitechmediaserver and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
root@squeezeplug:/opt/hmcfgusb#
Zitat von: derron am 27 Dezember 2014, 23:08:17auch gut ;)
Ich habe es nun in das fhem Startscript integriert, was zu funktionieren scheint.
2014.12.28 12:28:44 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
2014.12.28 12:28:44 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2014.12.28 12:28:45 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition ok
Zitat von: domii666 am 30 Dezember 2014, 23:23:35
Muss ich dann neu pairen?
Zitat von: domii666 am 30 Dezember 2014, 22:18:29
was ist den von der Sendeleistung Besser?
Zitat von: domii666 am 05 Januar 2015, 21:20:08
leider hab ich probleme mit ./hmland -D-p 1234
Zitatdefine HMLAN1 HMLAN 192.168.2.2121000
attr HMLAN1 hmId 123456
attr HMLAN1 hmLanQlen 1_min
Zitatattr ccu IOList HMLAN1,HMLAN2
Ich habe auch zwei Sender, ein HMLAN und ein HMUSB (fühlt sich für FHEM praktisch wie ein HMLAN).
Diese Kombination funktioniert bei mir einwandfrei.
Zitat
define HMLAN1 HMLAN 192.168.0.xxx:1000
attr HMLAN1 alias HM-Transmitter (LAN)
attr HMLAN1 group IO
attr HMLAN1 hmId 123456
attr HMLAN1 hmLanQlen 1_min
attr HMLAN1 logIDs 0
attr HMLAN1 room IO_Devices
attr HMLAN1 wdTimer 25
define hmusb HMLAN 127.0.0.1:1234
attr hmusb alias HM-Transmitter (USB)
attr hmusb group IO
attr hmusb hmId 123456
attr hmusb hmLanQlen 1_min
attr hmusb room IO_Devices
define ccu CUL_HM 123456
attr ccu IODev HMLAN1
attr ccu IOList HMLAN1,hmusb
attr ccu IOgrp ccu
attr ccu alias Virtuelle HM-Zentrale
attr ccu group IO
attr ccu model CCU-FHEM
attr ccu room IO_Devices
attr ccu subType virtual
attr ccu webCmd virtual:update
und dann noch alle HM-Geräte mit
Zitat
attr XYZ IODev hmusb
attr XYZ IOgrp ccu
15-01-15 14:33:55 HMLAN fb_hmusb Xmit-Events: timeout:638 disconnected:638 init:638
2015-01-15 14:33:55 HMLAN fb_hmusb prot_timeout: last
2015-01-15 14:33:55 HMLAN fb_hmusb DISCONNECTED
2015-01-15 14:33:55 HMLAN fb_hmusb cond: disconnected
2015-01-15 14:33:55 HMLAN fb_hmusb Xmit-Events: timeout:638 disconnected:639 init:638
2015-01-15 14:33:55 HMLAN fb_hmusb prot_disconnected: last
2015-01-15 14:33:55 HMLAN fb_hmusb cond: init
2015-01-15 14:33:55 HMLAN fb_hmusb Xmit-Events: timeout:638 disconnected:639 init:639
2015-01-15 14:33:55 HMLAN fb_hmusb prot_init: last
2015-01-15 14:33:55 HMLAN fb_hmusb CONNECTED
[82558.412025] usb 1-1.3.1.1: new full-speed USB device number 37 using dwc_otg
[82558.492134] usb 1-1.3.1.1: device descriptor read/64, error -32
[82558.682050] usb 1-1.3.1.1: device descriptor read/64, error -32
[82558.872031] usb 1-1.3.1.1: new full-speed USB device number 38 using dwc_otg
[82558.952033] usb 1-1.3.1.1: device descriptor read/64, error -32
[82559.142045] usb 1-1.3.1.1: device descriptor read/64, error -32
[82559.332103] usb 1-1.3.1.1: new full-speed USB device number 39 using dwc_otg
[82559.751872] usb 1-1.3.1.1: device not accepting address 39, error -32
[82559.832128] usb 1-1.3.1.1: new full-speed USB device number 40 using dwc_otg
[82560.251882] usb 1-1.3.1.1: device not accepting address 40, error -32
[82560.252104] hub 1-1.3.1:1.0: unable to enumerate USB device on port 1
root@xbian:/opt/hmcfgusb# make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
hmland.c:24:19: fatal error: stdio.h: No such file or directory
compilation terminated.
make: *** [hmland.o] Error 1
sudo service hmland start
derron@cubie:/etc/init.d$ sudo service hmland start
: not found/hmland: 13: /etc/init.d/hmland:
: not found/hmland: 16: /etc/init.d/hmland:
/etc/init.d/hmland: 17: /etc/init.d/hmland: Syntax error: word unexpected (expecting "in")
Zitat von: derron am 30 Januar 2015, 20:31:43
Bei dem verlinkten Script für init.d bekomme ich beiCode Auswählensudo service hmland start
immer folgende Fehlermeldungen:Code Auswählenderron@cubie:/etc/init.d$ sudo service hmland start
: not found/hmland: 13: /etc/init.d/hmland:
: not found/hmland: 16: /etc/init.d/hmland:
/etc/init.d/hmland: 17: /etc/init.d/hmland: Syntax error: word unexpected (expecting "in")
Ich habe den Code per Copy and Paste mit Notepad++ als (Unix Script File erkannt) in eine .sh Datei geschrieben.
Was kann das sein?
Ich würde HMLAND dieses Mal gerne unabhängig von fhem starten.
cat /etc/init.d/hmland
ls -l /etc/init.d/hmland
1. #!/bin/sh fehlte in der 1. Zeile
2. sudo sed -i -e 's/\r$//' hmland
ralf@cubie:~$ cat /etc/init.d/fhem
#!/bin/sh
# description: Start or stop the fhem server
# Added by Alex Peuchert
### BEGIN INIT INFO
# Provides: fhem.pl
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FHEM server
### END INIT INFO
set -e
cd /opt/fhem
port=7072
case "$1" in
'start')
echo "Starting fhem..."
/opt/fhem/hmcfgusb-HEAD-18e63b2/hmland -d -p 1234
perl fhem.pl fhem.cfg
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
perl fhem.pl $port "shutdown"
RETVAL=$?
pkill hmland
;;
'status')
cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "fhem is not running"
else
echo "fhem is running"
fi
;;
*)
echo "Usage: $0 { start | stop | status }"
RETVAL=1
;;
esac
exit $RETVAL
root@cubie:/home/ralf# service fhem start
Starting fhem...
Daemon with PID 3912 started!
root@cubie:/home/ralf#
deepthought [~/hmcfgusb]> ./hmland -D -p 1234
2015-02-12 15:34:28.970946: Client 127.0.0.1 connected!
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-02-12 15:34:28.989720: Connection to 127.0.0.1 closed!
Bus 001 Device 005: ID 1b1f:c00f
2015.02.12 15:34:20 1: HMLAN_Parse: hmusb new condition init
2015.02.12 15:34:21 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
2015.02.12 15:34:21 1: HMLAN_Parse: hmusb new condition disconnected
2015.02.12 15:34:21 1: 127.0.0.1:1234 reappeared (hmusb)
2015.02.12 15:34:21 1: HMLAN_Parse: hmusb new condition init
2015.02.12 15:34:22 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
2015.02.12 15:34:22 1: HMLAN_Parse: hmusb new condition disconnected
2015.02.12 15:34:22 1: 127.0.0.1:1234 reappeared (hmusb)
2015.02.12 15:34:22 1: HMLAN_Parse: hmusb new condition init
2015.02.12 15:34:23 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
Daemon with PID 2262 started!
2015.02.12 15:53:13 3: Opening hmusb device 127.0.0.1:1234
2015.02.12 15:53:13 3: hmusb device opened
2015.02.12 15:53:13 1: HMLAN_Parse: hmusb new condition init
2015.02.12 15:53:14 1: HMLAN_Parse: hmusb new condition ok
ZitatDer Stick steht aber immer noch nur auf opened
Bin für Hilfe sehr dankbar.
sudo ./hmland -d -p 1234
Zitat von: volschin am 12 Februar 2015, 21:50:01
Ich finde die Lösung mit separatem Startscript eleganter.
sudo ./hmland -d -p 1234
Starting fhem...
/etc/init.d/fhem: 32: /etc/init.d/fhem: /opt/hmcfgusb/hmland: not found
echo "Starting fhem..."
# if you need to start hmland for use with
# Homematic, please start the hmland daemon
# like this (please use correct path and port,
# depending on your installation!)
/opt/hmcfgusb/hmland -d -p 1234
perl fhem.pl fhem.cfg
# if you want to use configDB for configuration,
# use this command to start fhem:
#
# perl fhem.pl configDB
#
# and remove/comment the above line including fhem.cfg
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
# if you want to stop hmland during fhem stop:
pkill hmland
pkill -U fhem perl
RETVAL=$?
;;
'status')
cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "fhem is not running"
else
echo "fhem is running"
fi
;;
*)
echo "Usage: $0 { start | stop | status }"
RETVAL=1
;;
esac
exit $RETVAL
Zitatsudo ./hmland -d -p 1234mal ein "pwd" dann wird das Verzeichnis angezeigt.
Zitat von: Bennemannc am 17 Februar 2015, 18:06:12
Hallo,
zwei Möglichkeiten:
1) der Pfad stimmt nicht - Mach da wo mal ein "pwd" dann wird das Verzeichnis angezeigt.
2) die Berechtigungen an hmland sind nicht korrekt. Hier hilft "ls -la". Dann kannst Du die Berechtigungen mit "sudo chmod ..." ändern.
Ich vermute ... Punkt 2
Gruß Christoph
/home/pi/hmcfgusb
2015.03.17 19:15:09 1: HMLAN_Parse: hmusb new condition init
2015.03.17 19:15:09 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
2015.03.17 19:15:09 1: HMLAN_Parse: hmusb new condition disconnected
2015.03.17 19:15:09 1: 127.0.0.1:1234 reappeared (hmusb)
dwc_otg.speed=1
Zitat von: mfeske am 21 März 2015, 21:11:28
Habe ich vielleicht das "Idiotensichere" Tutotrial für Raspian übersehen?
Zitat von: philb am 21 März 2015, 22:22:54Hej Phil,
ich wollte nur nochmal kurz nachfragen, wie oft sich bei euch der HM-CFG-USB reconnected? Bei mir sind es 62 Mal pro Sekunde. Habe leider keinen Vergleich, daher die Frage.
Zitat von: betateilchen am 21 März 2015, 21:52:05Hallo betateilchen,
Vermutlich. Es steht - inklusive der Angabe von Paketnamen - im ersten Beitrag dieses Threads.
git clone git://git.zerfleddert.de/hmcfgusb
ausgeführt aber beim make kommt dann:root@raspyfhem:/opt/hmcfgusb# make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
hmland.c:41:31: fatal error: libusb-1.0/libusb.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
<builtin>: recipe for target 'hmland.o' failed
make: *** [hmland.o] Error 1
sudo aptitude search libusb-1.
ausgeführt und da kam:i A libusb-1.0-0 - userspace USB programming library
p libusb-1.0-0-dev - userspace USB programming library development files
sudo aptitude install libusb-1.0-0-dev
root@raspyfhem:/opt/hmcfgusb# make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
gcc -L/opt/local/lib hmland.o hmcfgusb.o -lusb-1.0 -lrt -o hmland
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmsniff.o hmsniff.c
gcc -L/opt/local/lib hmsniff.o hmcfgusb.o -lusb-1.0 -lrt -o hmsniff
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-hmcfgusb.o flash-hmcfgusb.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o firmware.o firmware.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o util.o util.c
gcc -L/opt/local/lib flash-hmcfgusb.o hmcfgusb.o firmware.o util.o -lusb-1.0 -lrt -o flash-hmcfgusb
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-ota.o flash-ota.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o culfw.o culfw.c
gcc -L/opt/local/lib flash-ota.o hmcfgusb.o culfw.o firmware.o util.o -lusb-1.0 -lrt -o flash-ota
./hmsniff
mal meine Umgebung abhören, damit ich mich für die richtige hmid entscheide, aber es kommt nur HM-CFG-USB opened!define Func_Start_Init_W watchdog . 00:00:01 SAME {system("ps | grep hmland | grep -v -q grep || /opt/fhem/hmland -d -p 1234");;}
wird er als opened angezeigtZitat von: mfeske am 24 März 2015, 18:30:40
Lösung:Code Auswählensudo aptitude install libusb-1.0-0-dev
ZitatUm die Software zu kompilieren, braucht man (neben make und gcc, bei Debian am besten build-essential installieren) noch das Development-Paket für libusb-1.0 (Debian: libusb-1.0-0-dev).
Wenn man die nötigen Voraussetzungen geschaffen hat, dann sollte die Software ohne Fehlermeldungen kompilieren
2015.03.24 20:30:46 1: 127.0.0.1:1234 disconnected, waiting to reappear (hmusb)
2015.03.24 20:30:46 1: HMLAN_Parse: hmusb new condition disconnected
2015.03.24 20:30:46 1: 127.0.0.1:1234 reappeared (hmusb
./hmland -d -p 1234
zum starten verwende kommt die Meldung nicht. Welches script genau ist den jetzt zum starten? Bin auf Seite 18 und habe glaube ich schon drei unterschiedliche Startmethoden gefunden :-(Zitat von: mfeske am 24 März 2015, 21:56:59
mit dem erfolg das ich mich jetzt per ssh nicht mehr einloggen kann :-(
Zitat von: Intruder1956 am 24 März 2015, 22:28:12Herzlichen Glückwunsch ich hoffe ich schaffe es auch noch. Zum starten hast Du die Zeile in der /etc/init.d/ auskommentiert ?
Alles läuft
define HMUSB HMLAN <IP vom 1.CT>
attr HMUSB hmId 1EA121
attr HMUSB hmLanQlen 1_min
attr HMUSB icon usb_stick
attr HMUSB logIDs
attr HMUSB wdTimer 25
Zitat von: Mr. P am 29 März 2015, 19:29:33genau das dachte ich mir... :-\ da ja der USB Stick an meinem Produktivsystem sitzt...
Zeitgleich kannst du immer nur eine FHEM-Instanz mit dem HM-CFG-USB-2 plaudern lassen.
Zitat von: moonsorrox am 29 März 2015, 19:27:21Wenn Du ihn an das Local Loopback bindest, kannst Du ihn von einem anderen Rechner auch nicht erreichen. ::)
127.0.0.1
Zitat von: moonsorrox am 29 März 2015, 19:32:02Solange du das Produktivsystem während des Testens nicht abdrehst, leider nicht.
Ich wollte den 2. Cubietruck einfach nur einrichten und dafür den Stick nutzen, dass geht dann wohl nicht
Zitat von: volschin am 29 März 2015, 19:34:51Ich glaube nicht, dass er bei einem Binding auf localhost überhaupt auf openend wechseln würde... Und seiner Antwort nach zu urteilen, scheint das auch nicht das Problem gewesen zu sein. ;-)
Wenn Du ihn an das Local Loopback bindest, kannst Du ihn von einem anderen Rechner auch nicht erreichen. ::)
CFGFN
DEF
127.0.0.1:1234
DeviceName
127.0.0.1:1234
NAME
hmusb
NEXT_OPEN
1427835548
NR
1202
NTFY_ORDER
50-hmusb
PARTIAL
STATE
disconnected
TYPE
HMLAN
XmitOpen
0
assignedIDsCnt
0
msgKeepAlive
msgLoadEst
1hour:0% 10min steps: 0/0/0/0/0/0
owner
Readings
Xmit-Events
disconnected:1
2015-03-31 22:58:08
cond
disconnected
2015-03-31 22:58:08
prot_disconnected
last
2015-03-31 22:58:08
state
disconnected
2015-03-31 22:58:08
#!/bin/sh
# description: Start or stop the fhem server
# Added by Alex Peuchert
### BEGIN INIT INFO
# Provides: fhem.pl
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FHEM server
### END INIT INFO
set -e
cd /opt/fhem
port=7072
case "$1" in
'start')
echo "Starting fhem..."
/opt/hmcfgusb/hmland -d -p 1234
perl fhem.pl fhem.cfg
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
perl fhem.pl $port "shutdown"
RETVAL=$?
pkill hmland
;;
'status')
cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "fhem is not running"
else
Zitat von: Franz Tenbrock am 31 März 2015, 23:16:39Das Problem ist wohin hast du hmcfgusb heruntergeladen? Vorher
https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb
root@cubie:~# sudo cp hmcfgusb.rules /etc/udev/rules.d/
cp: cannot stat `hmcfgusb.rules': No such file or directory
IODev hmusb
autoReadReg 4_reqStatus
expert 2_full
firmware 2.6
model HM-LC-DIM1T-FM
room CUL_HM
serialNr LEQ09xxxxx
subType dimmer
verbose 5
webCmd statusRequest:toggle:on:off:up:down
Zitat von: Take-Off am 13 April 2015, 18:56:57Hi,
Hallo zusammen,
ich nutze den HM-CFG-USB2 an einem Raspi.
Die Einrichtung hat nach langem probieren und nachlesen nun auch geklappt. (Der Status ist zumindest auf Opened)
Nun möchte ich einen HM-LC-DIM1T-FM mit FHEM betreiben und genau da fangen die Probleme jetzt auch an.
Ich habe das Device nach den Anleitungen die hier verfügbar sind gepaired. Hat soweit auch funktioniert. (HMID, Serial und Model sind korrekt)
Allerdings lässt sich über FHEM der Aktor weder bedienen noch zeigt er einen Status an. (MISSING ACK)
Laut Logfile gehen die Befehle zwar korrekt raus, viel mehr steht dort aber trotz Verbose 5 nicht drin.
Ich habe testweise meinen CUL auf Homematic umgestellt und den Aktor damit getestet. Damit läuft alles fehlerfrei.
Die Devices habe ich danach natürlich wieder gelöscht und neu mit dem HM-USB gepaired.
Hat jemand eine Idee wo es klemmt? Weitere Infos geb ich euch gerne wenn ihr was braucht. :)
EDIT: Folgende Attribute sind beim Aktor gesetztCode AuswählenIODev hmusb
autoReadReg 4_reqStatus
expert 2_full
firmware 2.6
model HM-LC-DIM1T-FM
room CUL_HM
serialNr LEQ09xxxxx
subType dimmer
verbose 5
webCmd statusRequest:toggle:on:off:up:down
Error messages while initializing FHEM:
configfile: CUL_HM_HM_LC_DIM1T_FM_31706A: unknown IODev specified
2015.06.08 09:43:21 1: 192.168.1.29:1000 reappeared (HMUSB)
2015.06.08 09:43:21 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 09:43:50 1: HMLAN_Parse: HMUSB new condition timeout
2015.06.08 09:43:50 1: 192.168.1.29:1000 disconnected, waiting to reappear (HMUSB)
2015.06.08 09:43:50 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 09:43:50 1: 192.168.1.29:1000 reappeared (HMUSB)
2015.06.08 09:43:50 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 09:43:54 1: 192.168.1.29:1000 disconnected, waiting to reappear (HMUSB)
2015.06.08 09:43:54 1: HMLAN_Parse: HMUSB new condition disconnected
2015-06-08 09:43:49.956737: LAN > K
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 1ms!
2015-06-08 09:43:50.960400: Connection to 192.168.1.107 closed!
2015-06-08 09:43:51.960693: Client 192.168.1.107 connected!
USB > 0x0000: 49 00 02 02 00 55 53 42 2d 49 46 03 c7 0a 4c 45 I....USB-IF...LE
USB > 0x0010: 51 30 36 35 39 33 34 34 2c c5 df cd 20 07 00 62 Q0659344,... ..b
USB > 0x0020: c0 32 00 10 05 00 00 00 00 00 00 00 00 00 00 00 .2..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 49 00 02 02 00 55 53 42 2d 49 46 03 c7 0a 4c 45 I....USB-IF...LE
USB > 0x0010: 51 30 36 35 39 33 34 34 2c c5 df cd 20 07 00 62 Q0659344,... ..b
USB > 0x0020: c0 32 00 10 05 00 00 00 00 00 00 00 00 00 00 00 .2..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 49 00 02 02 00 55 53 42 2d 49 46 03 c7 0a 4c 45 I....USB-IF...LE
USB > 0x0010: 51 30 36 35 39 33 34 34 2c c5 df cd 20 07 00 62 Q0659344,... ..b
USB > 0x0020: c0 32 00 10 05 00 00 00 00 00 00 00 00 00 00 00 .2..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Interrupt transfer not completed: Unknown error code 1 / 0x01!
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 52ms!
2015-06-08 09:43:52.104576: LAN > ACD2007
USB < 0x0000: 41 cd 20 07 00 00 00 00 00 00 00 00 00 00 00 00 A. .............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 51ms!
2015-06-08 09:43:52.168481: LAN > C
USB < 0x0000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took more than 100ms (113ms), this may lead to timing problems!
2015-06-08 09:43:52.296281: LAN > +35C264,00,01,1E
USB < 0x0000: 2b 35 c2 64 00 01 1e 00 00 00 00 00 00 00 00 00 +5.d............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
2015-06-08 09:43:52.360283: LAN > +35C257,00,01,1E
USB < 0x0000: 2b 35 c2 57 00 01 1e 00 00 00 00 00 00 00 00 00 +5.W............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 53ms!
2015-06-08 09:43:52.424168: LAN > +35C07D,00,01,1E
USB < 0x0000: 2b 35 c0 7d 00 01 1e 00 00 00 00 00 00 00 00 00 +5.}............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 62ms!
2015-06-08 09:43:52.488132: LAN > +35C28E,00,01,1E
USB < 0x0000: 2b 35 c2 8e 00 01 1e 00 00 00 00 00 00 00 00 00 +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Can't send data: Input/output error
2015-06-08 09:43:52.520137: LAN > +2AE6F4,00,01,00
USB < 0x0000: 2b 2a e6 f4 00 01 00 00 00 00 00 00 00 00 00 00 +*..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took more than 100ms (126ms), this may lead to timing problems!
2015-06-08 09:43:52.648320: LAN > +35E151,00,01,1E
USB < 0x0000: 2b 35 e1 51 00 01 1e 00 00 00 00 00 00 00 00 00 +5.Q............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
2015-06-08 09:43:52.712276: LAN > +35E264,00,01,1E
USB < 0x0000: 2b 35 e2 64 00 01 1e 00 00 00 00 00 00 00 00 00 +5.d............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 56ms!
2015-06-08 09:43:52.776270: LAN > +35BF3A,00,01,1E
USB < 0x0000: 2b 35 bf 3a 00 01 1e 00 00 00 00 00 00 00 00 00 +5.:............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 56ms!
2015-06-08 09:43:52.840298: LAN > +35E144,00,01,1E
USB < 0x0000: 2b 35 e1 44 00 01 1e 00 00 00 00 00 00 00 00 00 +5.D............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Can't send data: Input/output error
2015-06-08 09:43:52.872387: LAN > +301A5F,00,01,00
USB < 0x0000: 2b 30 1a 5f 00 01 00 00 00 00 00 00 00 00 00 00 +0._............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took more than 100ms (122ms), this may lead to timing problems!
2015-06-08 09:43:53.000344: LAN > +33B264,00,01,00
USB < 0x0000: 2b 33 b2 64 00 01 00 00 00 00 00 00 00 00 00 00 +3.d............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 60ms!
2015-06-08 09:43:53.064224: LAN > +33B25D,00,01,00
USB < 0x0000: 2b 33 b2 5d 00 01 00 00 00 00 00 00 00 00 00 00 +3.]............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 62ms!
2015-06-08 09:43:53.128227: LAN > +35E261,00,01,1E
USB < 0x0000: 2b 35 e2 61 00 01 1e 00 00 00 00 00 00 00 00 00 +5.a............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 62ms!
2015-06-08 09:43:53.192333: LAN > +35C1DE,00,01,1E
USB < 0x0000: 2b 35 c1 de 00 01 1e 00 00 00 00 00 00 00 00 00 +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took more than 100ms (118ms), this may lead to timing problems!
2015-06-08 09:43:53.320398: LAN > +301929,00,01,00
USB < 0x0000: 2b 30 19 29 00 01 00 00 00 00 00 00 00 00 00 00 +0.)............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
2015-06-08 09:43:53.384382: LAN > +35E26E,00,01,1E
USB < 0x0000: 2b 35 e2 6e 00 01 1e 00 00 00 00 00 00 00 00 00 +5.n............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 55ms!
2015-06-08 09:43:53.448381: LAN > +2E59EB,00,01,00
USB < 0x0000: 2b 2e 59 eb 00 01 00 00 00 00 00 00 00 00 00 00 +.Y.............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 56ms!
2015-06-08 09:43:53.512406: LAN > +35E0BD,00,01,1E
USB < 0x0000: 2b 35 e0 bd 00 01 1e 00 00 00 00 00 00 00 00 00 +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Can't send data: Input/output error
2015-06-08 09:43:53.544412: LAN > +35E103,00,01,1E
USB < 0x0000: 2b 35 e1 03 00 01 1e 00 00 00 00 00 00 00 00 00 +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took more than 100ms (122ms), this may lead to timing problems!
2015-06-08 09:43:53.672443: LAN > Y01,02,747220e654d6046e4b9d6190d604ba54
USB < 0x0000: 59 01 02 10 74 72 20 e6 54 d6 04 6e 4b 9d 61 90 Y...tr .T..nK.a.
USB < 0x0010: d6 04 ba 54 00 00 00 00 00 00 00 00 00 00 00 00 ...T............
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 55ms!
2015-06-08 09:43:53.736408: LAN > Y02,00,
USB < 0x0000: 59 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 57ms!
2015-06-08 09:43:53.800400: LAN > Y03,00,
USB < 0x0000: 59 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 60ms!
2015-06-08 09:43:53.864623: LAN > T1D080436,04,00,00000000
USB < 0x0000: 54 1d 08 04 36 04 00 00 00 00 00 00 00 00 00 00 T...6...........
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Can't send data: Input/output error
2015-06-08 09:43:53.896444: LAN > SD220240E,00,00000000,01,D220240E,998112CD2007000000
USB < 0x0000: 53 d2 20 24 0e 00 00 00 00 00 01 d2 20 24 0e 09 S. $........ $..
USB < 0x0010: 99 81 12 cd 20 07 00 00 00 00 00 00 00 00 00 00 .... ...........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took more than 100ms (118ms), this may lead to timing problems!
Zitat von: Motivierte linke Hände am 08 Juni 2015, 09:47:48Code Auswählen
2015-06-08 09:43:53.384382: LAN > +35E26E,00,01,1E
2015-06-08 09:43:53.896444: LAN > SD220240E,00,00000000,01,D220240E,998112CD2007000000
2015.06.08 18:45:06 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:45:06 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:45:01 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:45:01 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:45:00 3: checkGDS: Keine Warnmeldung für die gesuchte Region vorhanden.
2015.06.08 18:44:53 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:53 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:47 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:47 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:44:36 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:36 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:31 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:31 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:44:23 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:23 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:20 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:20 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:44:12 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:12 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:07 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:07 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:43:59 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:43:59 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:43:54 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:43:54 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:43:46 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:43:46 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:43:44 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:43:44 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:43:43 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:43:43 1: 127.0.0.1:1234 reappeared (HMUSB)
Zitat von: mgernoth am 08 Juni 2015, 09:54:08
EDIT4: Es werden zuviele Keyslots gesetzt (mehr als vorhanden sind). Siehe http://forum.fhem.de/index.php/topic,37940.msg301836.html#msg301836
Zitat von: moonsorrox am 08 Juni 2015, 18:46:12
ich habe mal eine Frage zum USB Stick, ich beobachte es die ganze Zeit das dieser sich ewig am "connecten" und "disconnected" ist.
Zitat von: Gigafix am 08 Juni 2015, 20:20:03ja leider, aber das tauschen hat nichts gebracht... Ich habe jetzt mein HMLAN dran weil nichts mehr lief und den USB Stick am Testsystem auch hier spinnt er rum
Hallo moonsorrox
Hast Du heute ein Update gemacht?
Zitat von: mgernoth am 08 Juni 2015, 21:07:47du meinst sicher mit putty nach /opt/hmcfgusb gehen und dann folgendes Richtig..?
Bitte mach ein Update des hmland (git pull und make), dann sollte es weg sein.
Zitat von: Motivierte linke Hände am 08 Juni 2015, 20:36:03
Danke, dass Du Dir das anschaust. Ich habe heute noch kein fhem-Update gemacht (meine CUL_HM.pm ist noch vom 3. Mai), und wenn ich mir den verlinkten Thread so anschaue, sollte ich das wohl auch besser nicht. :) D.h. das Problem müsste hier ein anderes sein...
Zitat von: moonsorrox am 08 Juni 2015, 21:56:15
ja leider, aber das tauschen hat nichts gebracht... Ich habe jetzt mein HMLAN dran weil nichts mehr lief und den USB Stick am Testsystem auch hier spinnt er rum
Zitat
du meinst sicher mit putty nach /opt/hmcfgusb gehen und dann folgendes Richtig..?
root@cubietruck:/opt/hmcfgusb# git pull
Already up-to-date.
root@cubietruck:/opt/hmcfgusb# make
make: Nothing to be done for 'all'.
Zitat von: mgernoth am 08 Juni 2015, 22:09:40
Was meinst Du mit tauschen? Die 00_HMLAN.pm aendern und fhem restarten?
Wenn Du danach noch diese Probleme hast, kannst Du bitte mal ein log des hmland erstellen? (-v beim Aufruf mit angeben). Solltest Du einen Key gesetzt haben, den am besten vor dem posten loeschen (letzter Parameter des Y-Kommandos im Log).
Ok, dann ist es nicht dieser hmland-Bug bei Dir...
Gruss
Michael
2015-06-08 22:18:13.980958: Connection to 127.0.0.1 closed!
2015-06-08 22:18:14.981279: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:14.982682: Connection to 127.0.0.1 closed!
2015-06-08 22:18:15.983165: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:15.984560: Connection to 127.0.0.1 closed!
2015-06-08 22:18:16.984988: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:16.985965: Connection to 127.0.0.1 closed!
2015-06-08 22:18:17.986299: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:17.987588: Connection to 127.0.0.1 closed!
2015-06-08 22:18:18.988004: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Zitat von: moonsorrox am 08 Juni 2015, 22:22:25
wenn ich mit putty drauf bin rennt er sich auch zu Tode und zeigt folgendes immer schön hinter einander.Code Auswählen
Can't detach kernel driver: Invalid parameter
Zitat
ich muss dazu sagen ich habe heute ein Update auf Debian Ebene gemacht und eben auch in Fhem, obwohl ich das aktuelle Jessie drauf habe hat er mir ein Paket geupdatet, ich weiß leider nicht mher welches...!
Zitat von: mgernoth am 08 Juni 2015, 23:08:50
Hi,
Hmm, das verstehe ich nicht. So wie libusb_detach_kernel_driver() aufgerufen wird, kann es diesen Fehler eigentlich nicht zuruecklieferen.
Kannst Du mal den hmland neu kompilieren (make clean all), evtl. ist er mit einer alten libusb-Version gebaut und es gab ein inkompatibles Update, das ist aber unwahrscheinlich...
Zitat von: mgernoth am 08 Juni 2015, 23:08:50
Sollte in /var/log/dpkg.log stehen.
2015-06-05 15:52:30 startup archives unpack
2015-06-05 15:52:31 install libsocket6-perl:armhf <none> 0.25-1+b1
2015-06-05 15:52:31 status half-installed libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:31 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-05 15:52:31 status unpacked libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:31 status unpacked libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:31 install libio-socket-inet6-perl:all <none> 2.72-1
2015-06-05 15:52:31 status half-installed libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:31 status unpacked libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:31 status unpacked libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:31 install sendemail:all <none> 1.56-5
2015-06-05 15:52:31 status half-installed sendemail:all 1.56-5
2015-06-05 15:52:31 status unpacked sendemail:all 1.56-5
2015-06-05 15:52:32 status unpacked sendemail:all 1.56-5
2015-06-05 15:52:32 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-05 15:52:32 status half-configured man-db:armhf 2.7.0.2-5
2015-06-05 15:52:41 status installed man-db:armhf 2.7.0.2-5
2015-06-05 15:52:42 startup packages configure
2015-06-05 15:52:42 configure libsocket6-perl:armhf 0.25-1+b1 <none>
2015-06-05 15:52:42 status unpacked libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:42 status half-configured libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:42 status installed libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:42 configure libio-socket-inet6-perl:all 2.72-1 <none>
2015-06-05 15:52:42 status unpacked libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:42 status half-configured libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:42 status installed libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:42 configure sendemail:all 1.56-5 <none>
2015-06-05 15:52:42 status unpacked sendemail:all 1.56-5
2015-06-05 15:52:42 status half-configured sendemail:all 1.56-5
2015-06-05 15:52:42 status installed sendemail:all 1.56-5
2015-06-05 15:52:42 startup packages configure
2015-06-08 06:31:55 startup archives unpack
2015-06-08 06:31:56 upgrade base-files:armhf 8 8+deb8u1
2015-06-08 06:31:56 status half-configured base-files:armhf 8
2015-06-08 06:31:56 status unpacked base-files:armhf 8
2015-06-08 06:31:56 status half-installed base-files:armhf 8
2015-06-08 06:31:56 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:31:56 status half-installed base-files:armhf 8
2015-06-08 06:31:56 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:56 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:56 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:31:56 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:31:56 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:31:57 startup packages configure
2015-06-08 06:31:57 configure base-files:armhf 8+deb8u1 <none>
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status half-configured base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status installed base-files:armhf 8+deb8u1
2015-06-08 06:31:57 startup archives unpack
2015-06-08 06:31:57 upgrade perl:armhf 5.20.2-3 5.20.2-3+deb8u1
2015-06-08 06:31:57 status half-configured perl:armhf 5.20.2-3
2015-06-08 06:31:57 status unpacked perl:armhf 5.20.2-3
2015-06-08 06:31:57 status half-installed perl:armhf 5.20.2-3
2015-06-08 06:31:59 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:00 status half-installed perl:armhf 5.20.2-3
2015-06-08 06:32:00 status unpacked perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:00 status unpacked perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:00 upgrade perl-base:armhf 5.20.2-3 5.20.2-3+deb8u1
2015-06-08 06:32:00 status half-configured perl-base:armhf 5.20.2-3
2015-06-08 06:32:00 status unpacked perl-base:armhf 5.20.2-3
2015-06-08 06:32:00 status half-installed perl-base:armhf 5.20.2-3
2015-06-08 06:32:03 status half-installed perl-base:armhf 5.20.2-3
2015-06-08 06:32:03 status unpacked perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:03 status unpacked perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:03 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:03 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:05 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:05 startup packages configure
2015-06-08 06:32:05 configure perl-base:armhf 5.20.2-3+deb8u1 <none>
2015-06-08 06:32:05 status unpacked perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:05 status half-configured perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:05 status installed perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:05 startup archives unpack
2015-06-08 06:32:06 upgrade perl-modules:all 5.20.2-3 5.20.2-3+deb8u1
2015-06-08 06:32:06 status half-configured perl-modules:all 5.20.2-3
2015-06-08 06:32:06 status unpacked perl-modules:all 5.20.2-3
2015-06-08 06:32:06 status half-installed perl-modules:all 5.20.2-3
2015-06-08 06:32:10 status half-installed perl-modules:all 5.20.2-3
2015-06-08 06:32:10 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:10 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:10 upgrade libudev1:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:10 status half-configured libudev1:armhf 215-17
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17
2015-06-08 06:32:10 status half-installed libudev1:armhf 215-17
2015-06-08 06:32:10 status half-installed libudev1:armhf 215-17
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:10 startup packages configure
2015-06-08 06:32:10 configure libudev1:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:10 status half-configured libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:11 status installed libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:11 status triggers-pending libc-bin:armhf 2.19-18
2015-06-08 06:32:11 trigproc libc-bin:armhf 2.19-18 <none>
2015-06-08 06:32:11 status half-configured libc-bin:armhf 2.19-18
2015-06-08 06:32:11 status installed libc-bin:armhf 2.19-18
2015-06-08 06:32:11 startup archives unpack
2015-06-08 06:32:11 upgrade udev:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:11 status half-configured udev:armhf 215-17
2015-06-08 06:32:11 status unpacked udev:armhf 215-17
2015-06-08 06:32:11 status half-installed udev:armhf 215-17
2015-06-08 06:32:13 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:14 status triggers-pending systemd:armhf 215-17
2015-06-08 06:32:14 status half-installed udev:armhf 215-17
2015-06-08 06:32:16 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:16 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:16 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:16 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:17 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:17 trigproc systemd:armhf 215-17 <none>
2015-06-08 06:32:17 status half-configured systemd:armhf 215-17
2015-06-08 06:32:18 status installed systemd:armhf 215-17
2015-06-08 06:32:18 startup packages configure
2015-06-08 06:32:18 configure udev:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status half-configured udev:armhf 215-17+deb8u1
2015-06-08 06:32:22 status installed udev:armhf 215-17+deb8u1
2015-06-08 06:32:23 startup archives unpack
2015-06-08 06:32:23 upgrade libsystemd0:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:23 status half-configured libsystemd0:armhf 215-17
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17
2015-06-08 06:32:23 status half-installed libsystemd0:armhf 215-17
2015-06-08 06:32:23 status half-installed libsystemd0:armhf 215-17
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 startup packages configure
2015-06-08 06:32:23 configure libsystemd0:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status half-configured libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status installed libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status triggers-pending libc-bin:armhf 2.19-18
2015-06-08 06:32:23 trigproc libc-bin:armhf 2.19-18 <none>
2015-06-08 06:32:23 status half-configured libc-bin:armhf 2.19-18
2015-06-08 06:32:23 status installed libc-bin:armhf 2.19-18
2015-06-08 06:32:24 startup archives unpack
2015-06-08 06:32:24 upgrade systemd:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:24 status half-configured systemd:armhf 215-17
2015-06-08 06:32:24 status unpacked systemd:armhf 215-17
2015-06-08 06:32:24 status half-installed systemd:armhf 215-17
2015-06-08 06:32:25 status triggers-pending dbus:armhf 1.8.16-1
2015-06-08 06:32:25 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:26 status triggers-pending dbus:armhf 1.8.16-1
2015-06-08 06:32:28 status half-installed systemd:armhf 215-17
2015-06-08 06:32:28 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:28 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:28 trigproc dbus:armhf 1.8.16-1 <none>
2015-06-08 06:32:28 status half-configured dbus:armhf 1.8.16-1
2015-06-08 06:32:28 status installed dbus:armhf 1.8.16-1
2015-06-08 06:32:28 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:28 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:39 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:39 startup packages configure
2015-06-08 06:32:39 configure systemd:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status half-configured systemd:armhf 215-17+deb8u1
2015-06-08 06:32:43 status installed systemd:armhf 215-17+deb8u1
2015-06-08 06:32:43 startup archives unpack
2015-06-08 06:32:43 upgrade systemd-sysv:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:43 status half-configured systemd-sysv:armhf 215-17
2015-06-08 06:32:43 status unpacked systemd-sysv:armhf 215-17
2015-06-08 06:32:43 status half-installed systemd-sysv:armhf 215-17
2015-06-08 06:32:43 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:43 status half-installed systemd-sysv:armhf 215-17
2015-06-08 06:32:44 status unpacked systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:44 status unpacked systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:44 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:44 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:46 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:46 startup packages configure
2015-06-08 06:32:46 configure systemd-sysv:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:46 status unpacked systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:46 status half-configured systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:46 status installed systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:46 startup archives unpack
2015-06-08 06:32:46 upgrade tasksel-data:all 3.31 3.31+deb8u1
2015-06-08 06:32:46 status half-configured tasksel-data:all 3.31
2015-06-08 06:32:46 status unpacked tasksel-data:all 3.31
2015-06-08 06:32:46 status half-installed tasksel-data:all 3.31
2015-06-08 06:32:47 status half-installed tasksel-data:all 3.31
2015-06-08 06:32:47 status unpacked tasksel-data:all 3.31+deb8u1
2015-06-08 06:32:47 status unpacked tasksel-data:all 3.31+deb8u1
2015-06-08 06:32:47 upgrade tasksel:all 3.31 3.31+deb8u1
2015-06-08 06:32:47 status half-configured tasksel:all 3.31
2015-06-08 06:32:47 status unpacked tasksel:all 3.31
2015-06-08 06:32:47 status half-installed tasksel:all 3.31
2015-06-08 06:32:47 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:48 status half-installed tasksel:all 3.31
2015-06-08 06:32:48 status unpacked tasksel:all 3.31+deb8u1
2015-06-08 06:32:48 status unpacked tasksel:all 3.31+deb8u1
2015-06-08 06:32:48 upgrade libgnutls-openssl27:armhf 3.3.8-6 3.3.8-6+deb8u1
2015-06-08 06:32:48 status half-configured libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status unpacked libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status half-installed libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status half-installed libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status unpacked libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:48 status unpacked libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:48 upgrade libgnutls-deb0-28:armhf 3.3.8-6 3.3.8-6+deb8u1
2015-06-08 06:32:48 status half-configured libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:48 status unpacked libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:48 status half-installed libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:49 status half-installed libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:49 status unpacked libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:49 status unpacked libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:49 upgrade libdbus-1-3:armhf 1.8.16-1 1.8.18-0+deb8u1
2015-06-08 06:32:49 status half-configured libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status unpacked libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status half-installed libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status half-installed libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status unpacked libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:49 status unpacked libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:49 upgrade dbus:armhf 1.8.16-1 1.8.18-0+deb8u1
2015-06-08 06:32:49 status half-configured dbus:armhf 1.8.16-1
2015-06-08 06:32:49 status unpacked dbus:armhf 1.8.16-1
2015-06-08 06:32:49 status half-installed dbus:armhf 1.8.16-1
2015-06-08 06:32:49 status triggers-pending systemd:armhf 215-17+deb8u1
2015-06-08 06:32:50 status half-installed dbus:armhf 1.8.16-1
2015-06-08 06:32:50 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:50 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:50 upgrade linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1 3.16.7-ckt11-1
2015-06-08 06:32:50 status half-configured linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:50 status unpacked linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:50 status half-installed linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:54 status half-installed linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:54 status unpacked linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:54 status unpacked linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:54 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:54 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:56 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:56 trigproc systemd:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:56 status half-configured systemd:armhf 215-17+deb8u1
2015-06-08 06:32:56 status installed systemd:armhf 215-17+deb8u1
2015-06-08 06:32:56 startup packages configure
2015-06-08 06:32:56 configure perl-modules:all 5.20.2-3+deb8u1 <none>
2015-06-08 06:32:56 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 status half-configured perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 status installed perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 configure perl:armhf 5.20.2-3+deb8u1 <none>
2015-06-08 06:32:56 status unpacked perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:56 status half-configured perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:57 status installed perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:57 configure libgnutls-deb0-28:armhf 3.3.8-6+deb8u1 <none>
2015-06-08 06:32:57 status unpacked libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status half-configured libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status installed libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status triggers-pending libc-bin:armhf 2.19-18
2015-06-08 06:32:57 configure libgnutls-openssl27:armhf 3.3.8-6+deb8u1 <none>
2015-06-08 06:32:57 status unpacked libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status half-configured libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status installed libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 configure libdbus-1-3:armhf 1.8.18-0+deb8u1 <none>
2015-06-08 06:32:57 status unpacked libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status half-configured libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status installed libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 configure dbus:armhf 1.8.18-0+deb8u1 <none>
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status half-configured dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:59 status installed dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:59 configure linux-libc-dev:armhf 3.16.7-ckt11-1 <none>
2015-06-08 06:32:59 status unpacked linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:59 status half-configured linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:59 status installed linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:59 configure tasksel:all 3.31+deb8u1 <none>
2015-06-08 06:32:59 status unpacked tasksel:all 3.31+deb8u1
2015-06-08 06:32:59 status half-configured tasksel:all 3.31+deb8u1
2015-06-08 06:33:01 status installed tasksel:all 3.31+deb8u1
2015-06-08 06:33:01 configure tasksel-data:all 3.31+deb8u1 <none>
2015-06-08 06:33:01 status unpacked tasksel-data:all 3.31+deb8u1
2015-06-08 06:33:01 status half-configured tasksel-data:all 3.31+deb8u1
2015-06-08 06:33:01 status installed tasksel-data:all 3.31+deb8u1
2015-06-08 06:33:01 trigproc libc-bin:armhf 2.19-18 <none>
2015-06-08 06:33:01 status half-configured libc-bin:armhf 2.19-18
2015-06-08 06:33:01 status installed libc-bin:armhf 2.19-18
2015-06-08 06:33:01 startup packages configure
2015-06-08 12:15:01 startup archives unpack
2015-06-08 12:15:01 upgrade unattended-upgrades:all 0.83.3 0.83.3.1
2015-06-08 12:15:01 status half-configured unattended-upgrades:all 0.83.3
2015-06-08 12:15:01 status unpacked unattended-upgrades:all 0.83.3
2015-06-08 12:15:01 status half-installed unattended-upgrades:all 0.83.3
2015-06-08 12:15:01 status triggers-pending systemd:armhf 215-17+deb8u1
2015-06-08 12:15:01 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 12:15:01 status half-installed unattended-upgrades:all 0.83.3
2015-06-08 12:15:02 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:02 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:02 trigproc systemd:armhf 215-17+deb8u1 <none>
2015-06-08 12:15:02 status half-configured systemd:armhf 215-17+deb8u1
2015-06-08 12:15:02 status installed systemd:armhf 215-17+deb8u1
2015-06-08 12:15:02 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 12:15:02 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 12:15:03 status installed man-db:armhf 2.7.0.2-5
2015-06-08 12:15:04 startup packages configure
2015-06-08 12:15:04 configure unattended-upgrades:all 0.83.3.1 <none>
2015-06-08 12:15:04 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 conffile /etc/apt/apt.conf.d/50unattended-upgrades install
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status half-configured unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:19 status installed unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:19 startup packages configure
2015-06-08 19:03:51 startup archives unpack
2015-06-08 19:03:52 install git-core:all <none> 1:2.1.4-2.1
2015-06-08 19:03:52 status half-installed git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status unpacked git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status unpacked git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 install libusb-1.0-0-dev:armhf <none> 2:1.0.19-1
2015-06-08 19:03:52 status half-installed libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status unpacked libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status unpacked libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 startup packages configure
2015-06-08 19:03:52 configure git-core:all 1:2.1.4-2.1 <none>
2015-06-08 19:03:52 status unpacked git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status half-configured git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status installed git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 configure libusb-1.0-0-dev:armhf 2:1.0.19-1 <none>
2015-06-08 19:03:52 status unpacked libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status half-configured libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status installed libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 startup packages configure
Zitat von: mgernoth am 08 Juni 2015, 23:08:50
Hi,
Hmm, das verstehe ich nicht. So wie libusb_detach_kernel_driver() aufgerufen wird, kann es diesen Fehler eigentlich nicht zuruecklieferen.
Kannst Du mal den hmland neu kompilieren (make clean all), evtl. ist er mit einer alten libusb-Version gebaut und es gab ein inkompatibles Update, das ist aber unwahrscheinlich...
Zitat von: mgernoth am 08 Juni 2015, 23:08:50
Sollte in /var/log/dpkg.log stehen.
2015-06-05 15:52:30 startup archives unpack
2015-06-05 15:52:31 install libsocket6-perl:armhf <none> 0.25-1+b1
2015-06-05 15:52:31 status half-installed libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:31 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-05 15:52:31 status unpacked libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:31 status unpacked libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:31 install libio-socket-inet6-perl:all <none> 2.72-1
2015-06-05 15:52:31 status half-installed libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:31 status unpacked libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:31 status unpacked libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:31 install sendemail:all <none> 1.56-5
2015-06-05 15:52:31 status half-installed sendemail:all 1.56-5
2015-06-05 15:52:31 status unpacked sendemail:all 1.56-5
2015-06-05 15:52:32 status unpacked sendemail:all 1.56-5
2015-06-05 15:52:32 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-05 15:52:32 status half-configured man-db:armhf 2.7.0.2-5
2015-06-05 15:52:41 status installed man-db:armhf 2.7.0.2-5
2015-06-05 15:52:42 startup packages configure
2015-06-05 15:52:42 configure libsocket6-perl:armhf 0.25-1+b1 <none>
2015-06-05 15:52:42 status unpacked libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:42 status half-configured libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:42 status installed libsocket6-perl:armhf 0.25-1+b1
2015-06-05 15:52:42 configure libio-socket-inet6-perl:all 2.72-1 <none>
2015-06-05 15:52:42 status unpacked libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:42 status half-configured libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:42 status installed libio-socket-inet6-perl:all 2.72-1
2015-06-05 15:52:42 configure sendemail:all 1.56-5 <none>
2015-06-05 15:52:42 status unpacked sendemail:all 1.56-5
2015-06-05 15:52:42 status half-configured sendemail:all 1.56-5
2015-06-05 15:52:42 status installed sendemail:all 1.56-5
2015-06-05 15:52:42 startup packages configure
2015-06-08 06:31:55 startup archives unpack
2015-06-08 06:31:56 upgrade base-files:armhf 8 8+deb8u1
2015-06-08 06:31:56 status half-configured base-files:armhf 8
2015-06-08 06:31:56 status unpacked base-files:armhf 8
2015-06-08 06:31:56 status half-installed base-files:armhf 8
2015-06-08 06:31:56 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:31:56 status half-installed base-files:armhf 8
2015-06-08 06:31:56 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:56 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:56 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:31:56 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:31:56 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:31:57 startup packages configure
2015-06-08 06:31:57 configure base-files:armhf 8+deb8u1 <none>
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status unpacked base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status half-configured base-files:armhf 8+deb8u1
2015-06-08 06:31:57 status installed base-files:armhf 8+deb8u1
2015-06-08 06:31:57 startup archives unpack
2015-06-08 06:31:57 upgrade perl:armhf 5.20.2-3 5.20.2-3+deb8u1
2015-06-08 06:31:57 status half-configured perl:armhf 5.20.2-3
2015-06-08 06:31:57 status unpacked perl:armhf 5.20.2-3
2015-06-08 06:31:57 status half-installed perl:armhf 5.20.2-3
2015-06-08 06:31:59 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:00 status half-installed perl:armhf 5.20.2-3
2015-06-08 06:32:00 status unpacked perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:00 status unpacked perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:00 upgrade perl-base:armhf 5.20.2-3 5.20.2-3+deb8u1
2015-06-08 06:32:00 status half-configured perl-base:armhf 5.20.2-3
2015-06-08 06:32:00 status unpacked perl-base:armhf 5.20.2-3
2015-06-08 06:32:00 status half-installed perl-base:armhf 5.20.2-3
2015-06-08 06:32:03 status half-installed perl-base:armhf 5.20.2-3
2015-06-08 06:32:03 status unpacked perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:03 status unpacked perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:03 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:03 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:05 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:05 startup packages configure
2015-06-08 06:32:05 configure perl-base:armhf 5.20.2-3+deb8u1 <none>
2015-06-08 06:32:05 status unpacked perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:05 status half-configured perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:05 status installed perl-base:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:05 startup archives unpack
2015-06-08 06:32:06 upgrade perl-modules:all 5.20.2-3 5.20.2-3+deb8u1
2015-06-08 06:32:06 status half-configured perl-modules:all 5.20.2-3
2015-06-08 06:32:06 status unpacked perl-modules:all 5.20.2-3
2015-06-08 06:32:06 status half-installed perl-modules:all 5.20.2-3
2015-06-08 06:32:10 status half-installed perl-modules:all 5.20.2-3
2015-06-08 06:32:10 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:10 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:10 upgrade libudev1:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:10 status half-configured libudev1:armhf 215-17
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17
2015-06-08 06:32:10 status half-installed libudev1:armhf 215-17
2015-06-08 06:32:10 status half-installed libudev1:armhf 215-17
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:10 startup packages configure
2015-06-08 06:32:10 configure libudev1:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:10 status unpacked libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:10 status half-configured libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:11 status installed libudev1:armhf 215-17+deb8u1
2015-06-08 06:32:11 status triggers-pending libc-bin:armhf 2.19-18
2015-06-08 06:32:11 trigproc libc-bin:armhf 2.19-18 <none>
2015-06-08 06:32:11 status half-configured libc-bin:armhf 2.19-18
2015-06-08 06:32:11 status installed libc-bin:armhf 2.19-18
2015-06-08 06:32:11 startup archives unpack
2015-06-08 06:32:11 upgrade udev:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:11 status half-configured udev:armhf 215-17
2015-06-08 06:32:11 status unpacked udev:armhf 215-17
2015-06-08 06:32:11 status half-installed udev:armhf 215-17
2015-06-08 06:32:13 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:14 status triggers-pending systemd:armhf 215-17
2015-06-08 06:32:14 status half-installed udev:armhf 215-17
2015-06-08 06:32:16 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:16 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:16 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:16 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:17 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:17 trigproc systemd:armhf 215-17 <none>
2015-06-08 06:32:17 status half-configured systemd:armhf 215-17
2015-06-08 06:32:18 status installed systemd:armhf 215-17
2015-06-08 06:32:18 startup packages configure
2015-06-08 06:32:18 configure udev:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status unpacked udev:armhf 215-17+deb8u1
2015-06-08 06:32:18 status half-configured udev:armhf 215-17+deb8u1
2015-06-08 06:32:22 status installed udev:armhf 215-17+deb8u1
2015-06-08 06:32:23 startup archives unpack
2015-06-08 06:32:23 upgrade libsystemd0:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:23 status half-configured libsystemd0:armhf 215-17
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17
2015-06-08 06:32:23 status half-installed libsystemd0:armhf 215-17
2015-06-08 06:32:23 status half-installed libsystemd0:armhf 215-17
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 startup packages configure
2015-06-08 06:32:23 configure libsystemd0:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:23 status unpacked libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status half-configured libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status installed libsystemd0:armhf 215-17+deb8u1
2015-06-08 06:32:23 status triggers-pending libc-bin:armhf 2.19-18
2015-06-08 06:32:23 trigproc libc-bin:armhf 2.19-18 <none>
2015-06-08 06:32:23 status half-configured libc-bin:armhf 2.19-18
2015-06-08 06:32:23 status installed libc-bin:armhf 2.19-18
2015-06-08 06:32:24 startup archives unpack
2015-06-08 06:32:24 upgrade systemd:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:24 status half-configured systemd:armhf 215-17
2015-06-08 06:32:24 status unpacked systemd:armhf 215-17
2015-06-08 06:32:24 status half-installed systemd:armhf 215-17
2015-06-08 06:32:25 status triggers-pending dbus:armhf 1.8.16-1
2015-06-08 06:32:25 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:26 status triggers-pending dbus:armhf 1.8.16-1
2015-06-08 06:32:28 status half-installed systemd:armhf 215-17
2015-06-08 06:32:28 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:28 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:28 trigproc dbus:armhf 1.8.16-1 <none>
2015-06-08 06:32:28 status half-configured dbus:armhf 1.8.16-1
2015-06-08 06:32:28 status installed dbus:armhf 1.8.16-1
2015-06-08 06:32:28 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:28 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:39 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:39 startup packages configure
2015-06-08 06:32:39 configure systemd:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status unpacked systemd:armhf 215-17+deb8u1
2015-06-08 06:32:39 status half-configured systemd:armhf 215-17+deb8u1
2015-06-08 06:32:43 status installed systemd:armhf 215-17+deb8u1
2015-06-08 06:32:43 startup archives unpack
2015-06-08 06:32:43 upgrade systemd-sysv:armhf 215-17 215-17+deb8u1
2015-06-08 06:32:43 status half-configured systemd-sysv:armhf 215-17
2015-06-08 06:32:43 status unpacked systemd-sysv:armhf 215-17
2015-06-08 06:32:43 status half-installed systemd-sysv:armhf 215-17
2015-06-08 06:32:43 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:43 status half-installed systemd-sysv:armhf 215-17
2015-06-08 06:32:44 status unpacked systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:44 status unpacked systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:44 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:44 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:46 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:46 startup packages configure
2015-06-08 06:32:46 configure systemd-sysv:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:46 status unpacked systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:46 status half-configured systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:46 status installed systemd-sysv:armhf 215-17+deb8u1
2015-06-08 06:32:46 startup archives unpack
2015-06-08 06:32:46 upgrade tasksel-data:all 3.31 3.31+deb8u1
2015-06-08 06:32:46 status half-configured tasksel-data:all 3.31
2015-06-08 06:32:46 status unpacked tasksel-data:all 3.31
2015-06-08 06:32:46 status half-installed tasksel-data:all 3.31
2015-06-08 06:32:47 status half-installed tasksel-data:all 3.31
2015-06-08 06:32:47 status unpacked tasksel-data:all 3.31+deb8u1
2015-06-08 06:32:47 status unpacked tasksel-data:all 3.31+deb8u1
2015-06-08 06:32:47 upgrade tasksel:all 3.31 3.31+deb8u1
2015-06-08 06:32:47 status half-configured tasksel:all 3.31
2015-06-08 06:32:47 status unpacked tasksel:all 3.31
2015-06-08 06:32:47 status half-installed tasksel:all 3.31
2015-06-08 06:32:47 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 06:32:48 status half-installed tasksel:all 3.31
2015-06-08 06:32:48 status unpacked tasksel:all 3.31+deb8u1
2015-06-08 06:32:48 status unpacked tasksel:all 3.31+deb8u1
2015-06-08 06:32:48 upgrade libgnutls-openssl27:armhf 3.3.8-6 3.3.8-6+deb8u1
2015-06-08 06:32:48 status half-configured libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status unpacked libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status half-installed libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status half-installed libgnutls-openssl27:armhf 3.3.8-6
2015-06-08 06:32:48 status unpacked libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:48 status unpacked libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:48 upgrade libgnutls-deb0-28:armhf 3.3.8-6 3.3.8-6+deb8u1
2015-06-08 06:32:48 status half-configured libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:48 status unpacked libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:48 status half-installed libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:49 status half-installed libgnutls-deb0-28:armhf 3.3.8-6
2015-06-08 06:32:49 status unpacked libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:49 status unpacked libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:49 upgrade libdbus-1-3:armhf 1.8.16-1 1.8.18-0+deb8u1
2015-06-08 06:32:49 status half-configured libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status unpacked libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status half-installed libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status half-installed libdbus-1-3:armhf 1.8.16-1
2015-06-08 06:32:49 status unpacked libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:49 status unpacked libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:49 upgrade dbus:armhf 1.8.16-1 1.8.18-0+deb8u1
2015-06-08 06:32:49 status half-configured dbus:armhf 1.8.16-1
2015-06-08 06:32:49 status unpacked dbus:armhf 1.8.16-1
2015-06-08 06:32:49 status half-installed dbus:armhf 1.8.16-1
2015-06-08 06:32:49 status triggers-pending systemd:armhf 215-17+deb8u1
2015-06-08 06:32:50 status half-installed dbus:armhf 1.8.16-1
2015-06-08 06:32:50 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:50 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:50 upgrade linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1 3.16.7-ckt11-1
2015-06-08 06:32:50 status half-configured linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:50 status unpacked linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:50 status half-installed linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:54 status half-installed linux-libc-dev:armhf 3.16.7-ckt9-3~deb8u1
2015-06-08 06:32:54 status unpacked linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:54 status unpacked linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:54 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 06:32:54 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 06:32:56 status installed man-db:armhf 2.7.0.2-5
2015-06-08 06:32:56 trigproc systemd:armhf 215-17+deb8u1 <none>
2015-06-08 06:32:56 status half-configured systemd:armhf 215-17+deb8u1
2015-06-08 06:32:56 status installed systemd:armhf 215-17+deb8u1
2015-06-08 06:32:56 startup packages configure
2015-06-08 06:32:56 configure perl-modules:all 5.20.2-3+deb8u1 <none>
2015-06-08 06:32:56 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 status unpacked perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 status half-configured perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 status installed perl-modules:all 5.20.2-3+deb8u1
2015-06-08 06:32:56 configure perl:armhf 5.20.2-3+deb8u1 <none>
2015-06-08 06:32:56 status unpacked perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:56 status half-configured perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:57 status installed perl:armhf 5.20.2-3+deb8u1
2015-06-08 06:32:57 configure libgnutls-deb0-28:armhf 3.3.8-6+deb8u1 <none>
2015-06-08 06:32:57 status unpacked libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status half-configured libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status installed libgnutls-deb0-28:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status triggers-pending libc-bin:armhf 2.19-18
2015-06-08 06:32:57 configure libgnutls-openssl27:armhf 3.3.8-6+deb8u1 <none>
2015-06-08 06:32:57 status unpacked libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status half-configured libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 status installed libgnutls-openssl27:armhf 3.3.8-6+deb8u1
2015-06-08 06:32:57 configure libdbus-1-3:armhf 1.8.18-0+deb8u1 <none>
2015-06-08 06:32:57 status unpacked libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status half-configured libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status installed libdbus-1-3:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 configure dbus:armhf 1.8.18-0+deb8u1 <none>
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status unpacked dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:57 status half-configured dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:59 status installed dbus:armhf 1.8.18-0+deb8u1
2015-06-08 06:32:59 configure linux-libc-dev:armhf 3.16.7-ckt11-1 <none>
2015-06-08 06:32:59 status unpacked linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:59 status half-configured linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:59 status installed linux-libc-dev:armhf 3.16.7-ckt11-1
2015-06-08 06:32:59 configure tasksel:all 3.31+deb8u1 <none>
2015-06-08 06:32:59 status unpacked tasksel:all 3.31+deb8u1
2015-06-08 06:32:59 status half-configured tasksel:all 3.31+deb8u1
2015-06-08 06:33:01 status installed tasksel:all 3.31+deb8u1
2015-06-08 06:33:01 configure tasksel-data:all 3.31+deb8u1 <none>
2015-06-08 06:33:01 status unpacked tasksel-data:all 3.31+deb8u1
2015-06-08 06:33:01 status half-configured tasksel-data:all 3.31+deb8u1
2015-06-08 06:33:01 status installed tasksel-data:all 3.31+deb8u1
2015-06-08 06:33:01 trigproc libc-bin:armhf 2.19-18 <none>
2015-06-08 06:33:01 status half-configured libc-bin:armhf 2.19-18
2015-06-08 06:33:01 status installed libc-bin:armhf 2.19-18
2015-06-08 06:33:01 startup packages configure
2015-06-08 12:15:01 startup archives unpack
2015-06-08 12:15:01 upgrade unattended-upgrades:all 0.83.3 0.83.3.1
2015-06-08 12:15:01 status half-configured unattended-upgrades:all 0.83.3
2015-06-08 12:15:01 status unpacked unattended-upgrades:all 0.83.3
2015-06-08 12:15:01 status half-installed unattended-upgrades:all 0.83.3
2015-06-08 12:15:01 status triggers-pending systemd:armhf 215-17+deb8u1
2015-06-08 12:15:01 status triggers-pending man-db:armhf 2.7.0.2-5
2015-06-08 12:15:01 status half-installed unattended-upgrades:all 0.83.3
2015-06-08 12:15:02 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:02 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:02 trigproc systemd:armhf 215-17+deb8u1 <none>
2015-06-08 12:15:02 status half-configured systemd:armhf 215-17+deb8u1
2015-06-08 12:15:02 status installed systemd:armhf 215-17+deb8u1
2015-06-08 12:15:02 trigproc man-db:armhf 2.7.0.2-5 <none>
2015-06-08 12:15:02 status half-configured man-db:armhf 2.7.0.2-5
2015-06-08 12:15:03 status installed man-db:armhf 2.7.0.2-5
2015-06-08 12:15:04 startup packages configure
2015-06-08 12:15:04 configure unattended-upgrades:all 0.83.3.1 <none>
2015-06-08 12:15:04 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 conffile /etc/apt/apt.conf.d/50unattended-upgrades install
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status unpacked unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:16 status half-configured unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:19 status installed unattended-upgrades:all 0.83.3.1
2015-06-08 12:15:19 startup packages configure
2015-06-08 19:03:51 startup archives unpack
2015-06-08 19:03:52 install git-core:all <none> 1:2.1.4-2.1
2015-06-08 19:03:52 status half-installed git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status unpacked git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status unpacked git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 install libusb-1.0-0-dev:armhf <none> 2:1.0.19-1
2015-06-08 19:03:52 status half-installed libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status unpacked libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status unpacked libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 startup packages configure
2015-06-08 19:03:52 configure git-core:all 1:2.1.4-2.1 <none>
2015-06-08 19:03:52 status unpacked git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status half-configured git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 status installed git-core:all 1:2.1.4-2.1
2015-06-08 19:03:52 configure libusb-1.0-0-dev:armhf 2:1.0.19-1 <none>
2015-06-08 19:03:52 status unpacked libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status half-configured libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 status installed libusb-1.0-0-dev:armhf 2:1.0.19-1
2015-06-08 19:03:52 startup packages configure
Zitat von: moonsorrox am 08 Juni 2015, 23:19:56
das habe ich mal gemacht.. Muss ich den wieder neu konfigurieren oder bleibt das jetzt so
Zitat
das steht alles drin:Code Auswählen
2015-06-08 19:03:52 configure libusb-1.0-0-dev:armhf 2:1.0.19-1 <none>
Zitat von: mgernoth am 09 Juni 2015, 00:10:27um den USB Stick wie im Wiki neu zu machen
Was meinst Du mit konfigurieren?
Zitat von: mgernoth am 09 Juni 2015, 00:10:27Ich habe nur unter Debian ein Update gemacht da war das wohl dabei.
Du hast erst vorhin libusb initial installiert? Woher kam das Binary, welches den Fehler produziert hat? Wurde das nicht vorher auf diesem System erzeugt? libusb verhaelt sich manchmal komisch, wenn man ein Programm nimmt, das gegen eine andere Version gebaut wurde...
protCmdDel
20
protEvt_AESok
6 last_at:2015-06-09 08:23:57
protLastRcv
2015-06-09 08:24:03
protResnd
60 last_at:2015-06-09 08:22:40
protResndFail
20 last_at:2015-06-09 08:22:45
protSnd
70 last_at:2015-06-09 08:24:00
protState
CMDs_done
rssi_HMLAN0 -> echter HMLAN
avg:-63 min:-63 max:-63 lst:-63 cnt:1
rssi_HMLAN4 -> HM-CFG-USB2 mit hmland 0.099
avg:-62.28 min:-75 max:-56 lst:-63 cnt:21
Zitat von: moonsorrox am 09 Juni 2015, 06:50:13
um den USB Stick wie im Wiki neu zu machen
Praktisch ist die Installlation in Fhem gemeint...
Zitat
Ich habe nur unter Debian ein Update gemacht da war das wohl dabei.
lsusb -vvv -d 1b1f:c00f
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 58 HID
Zitat von: Ralli am 09 Juni 2015, 07:51:39
Bei mir funktionierte die aktuelle Version des hmland sowohl unter der Fritte als auch unter der Banane mit aktuellem Raspbian zunächst einwandfrei. Ich kann aber beobachten, dass nun bei einem Device, welches mit AES arbeitet, trotz mehrerer Sendeversuche ein MISSING ACK vorliegt - andere mit AES funktionieren hingegen einwandfrei. Ändere ich das IO des betroffenen dann auf einen HMLAN, funktioniert es wie erwartet. Es liegt nicht an der Entfernung.
Zitat
Dieses Verhalten ist mit der 0.097 nicht gegeben gewesen.
$ git checkout 325ed7030d39536af863e9c49b5fa04ac0a28d5d
Note: checking out '325ed7030d39536af863e9c49b5fa04ac0a28d5d'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 325ed70... avoid possible null-pointer dereference in error-path
Zitat
Die Versionen von 10_CUL und 10_HMLAN sind noch "die alten":
# $Id: 10_CUL_HM.pm 8683 2015-06-03 21:26:40Z martinp876 $
# $Id: 00_HMLAN.pm 7822 2015-02-01 16:28:10Z martinp876 $
Zitat von: mgernoth am 08 Juni 2015, 22:09:40
Argh, wollte eigentlich Dir auch antworten, bitte probier auch Du ein update des hmland.
Zitat von: frank am 09 Juni 2015, 14:08:59
ich fahre gerade DoS-attacken auf mein homematic-system. es scheint auch so, dass der hmusb das senden, wegen der 1%-regel, immer wieder einstellt. nur in fhem wird weder highload-warning noch overload-error angezeigt. könnte es sein, dass diese messages vom hmland nicht ausgewertet werden?
ZitatHmm, die Werte werden eigentlich 1:1 an Fhem weitergegeben und ich habe auch schon Overload-Nachrichten mit dem HM-CFG-USB in Fhem gesehen. (Und auch in meinem Firmwareupdater)
Zitat von: mgernoth am 09 Juni 2015, 09:47:09ja der hmland war vorher ganz normal angemeldet und funktionierte.
Ich wollte eigentlich wissen, woher das hmland-Prgramm auf dem Rechner gekommen ist, dass den Fehler produziert hat?
Nach Deinem Log hattest du gestern unattended-upgrades aktualisiert (gut :-) ) und erst am Abend die libusb-dev-Pakete installiert. Ich hatte Dich auch so verstanden, dass Du den hmland erfolgreich vor dem Debian-Update auf diesem System genutzt hattest, war das nicht so und Du hast ihn erst am Abend das erste mal auf diesem System heruntergeladen, kompiliert und laufengelassen?
Zitatcd /opt/
apt-get install build-essential libusb-1.0-0-dev make gcc git-core
git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
make
Zitat von: mgernoth am 09 Juni 2015, 09:47:09
Falls das mit dem Neukompilieren nicht klappt, kannst Du mir bitte die Ausgabe des folgenden Kommandos als root zukommen lassen (hmland vorher stoppen)?
Bus 003 Device 002: ID 1b1f:c00f
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1b1f
idProduct 0xc00f
bcdDevice 9.67
iManufacturer 4 eQ-3
iProduct 14 HM-CFG-USB
iSerial 36 KEQ1111294
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 41
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 58 HID
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 33
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 32
Device Status: 0x0000
(Bus Powered)
Jun 9 21:26:21 raspberrypi kernel: [ 72.980840] Transfer to device 7 endpoint 0x2 frame 565 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:21 raspberrypi kernel: [ 73.076845] Transfer to device 7 endpoint 0x2 frame 661 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:23 raspberrypi kernel: [ 75.239143] Transfer to device 7 endpoint 0x2 frame 775 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:25 raspberrypi kernel: [ 76.672057] usb 1-1.2.1.1: USB disconnect, device number 7
Jun 9 21:26:26 raspberrypi kernel: [ 78.448859] usb 1-1.2.1.1: new full-speed USB device number 10 using dwc_otg
Jun 9 21:26:26 raspberrypi kernel: [ 78.554135] usb 1-1.2.1.1: New USB device found, idVendor=1b1f, idProduct=c00f
Jun 9 21:26:26 raspberrypi kernel: [ 78.554162] usb 1-1.2.1.1: New USB device strings: Mfr=4, Product=14, SerialNumber=36
Jun 9 21:26:26 raspberrypi kernel: [ 78.554238] usb 1-1.2.1.1: Product: HM-CFG-USB
Jun 9 21:26:26 raspberrypi kernel: [ 78.554257] usb 1-1.2.1.1: Manufacturer: eQ-3
Jun 9 21:26:26 raspberrypi kernel: [ 78.554274] usb 1-1.2.1.1: SerialNumber: LEQ0659344
Jun 9 21:26:26 raspberrypi kernel: [ 78.563700] hid-generic 0003:1B1F:C00F.0002: hiddev0,hidraw0: USB HID v1.10 Device [eQ-3 HM-CFG-USB] on usb-bcm2708_usb-1.2.1.1/input0
Jun 9 21:26:27 raspberrypi kernel: [ 78.967938] Transfer to device 10 endpoint 0x2 frame 407 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 78.999894] Transfer to device 10 endpoint 0x3 frame 439 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 79.031637] Transfer to device 10 endpoint 0x3 frame 471 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 79.095649] Transfer to device 10 endpoint 0x3 frame 535 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 79.319930] Transfer to device 10 endpoint 0x2 frame 759 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 79.383935] Transfer to device 10 endpoint 0x2 frame 823 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 79.415947] Transfer to device 10 endpoint 0x3 frame 855 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 79.479708] Transfer to device 10 endpoint 0x3 frame 919 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:27 raspberrypi kernel: [ 79.511699] Transfer to device 10 endpoint 0x3 frame 951 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:28 raspberrypi kernel: [ 79.735991] Transfer to device 10 endpoint 0x2 frame 1175 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:33 raspberrypi kernel: [ 85.150089] dwc_otg_hcd_handle_hc_fsm: 10 callbacks suppressed
Jun 9 21:26:33 raspberrypi kernel: [ 85.150117] Transfer to device 10 endpoint 0x2 frame 445 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:34 raspberrypi kernel: [ 86.248612] Transfer to device 10 endpoint 0x2 frame 1543 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:34 raspberrypi kernel: [ 86.280602] Transfer to device 10 endpoint 0x2 frame 1575 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:40 raspberrypi kernel: [ 92.449435] Transfer to device 10 endpoint 0x2 frame 1599 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:41 raspberrypi kernel: [ 93.482823] Transfer to device 10 endpoint 0x2 frame 584 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:45 raspberrypi kernel: [ 96.614245] Transfer to device 10 endpoint 0x2 frame 1667 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:45 raspberrypi kernel: [ 96.642681] usb 1-1.2.1.1: USB disconnect, device number 10
Jun 9 21:26:46 raspberrypi kernel: [ 98.419008] usb 1-1.2.1.1: new full-speed USB device number 11 using dwc_otg
Jun 9 21:26:46 raspberrypi kernel: [ 98.525552] usb 1-1.2.1.1: New USB device found, idVendor=1b1f, idProduct=c00f
Jun 9 21:26:46 raspberrypi kernel: [ 98.525579] usb 1-1.2.1.1: New USB device strings: Mfr=4, Product=14, SerialNumber=36
Jun 9 21:26:46 raspberrypi kernel: [ 98.525597] usb 1-1.2.1.1: Product: HM-CFG-USB
Jun 9 21:26:46 raspberrypi kernel: [ 98.525614] usb 1-1.2.1.1: Manufacturer: eQ-3
Jun 9 21:26:46 raspberrypi kernel: [ 98.525630] usb 1-1.2.1.1: SerialNumber: LEQ0659344
Jun 9 21:26:46 raspberrypi kernel: [ 98.534786] hid-generic 0003:1B1F:C00F.0003: hiddev0,hidraw0: USB HID v1.10 Device [eQ-3 HM-CFG-USB] on usb-bcm2708_usb-1.2.1.1/input0
Jun 9 21:26:47 raspberrypi kernel: [ 99.580389] Transfer to device 11 endpoint 0x3 frame 537 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 99.772660] Transfer to device 11 endpoint 0x2 frame 729 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 99.836669] Transfer to device 11 endpoint 0x2 frame 793 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 99.868418] Transfer to device 11 endpoint 0x2 frame 825 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 99.932425] Transfer to device 11 endpoint 0x3 frame 889 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 100.124695] Transfer to device 11 endpoint 0x2 frame 1081 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 100.188705] Transfer to device 11 endpoint 0x2 frame 1145 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 100.220454] Transfer to device 11 endpoint 0x2 frame 1177 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 100.284465] Transfer to device 11 endpoint 0x3 frame 1241 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:48 raspberrypi kernel: [ 100.476738] Transfer to device 11 endpoint 0x2 frame 1433 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:26:58 raspberrypi kernel: [ 109.858996] dwc_otg_hcd_handle_hc_fsm: 13 callbacks suppressed
Jun 9 21:26:58 raspberrypi kernel: [ 109.859018] Transfer to device 11 endpoint 0x2 frame 574 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:03 raspberrypi kernel: [ 114.863546] Transfer to device 11 endpoint 0x2 frame 1482 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:04 raspberrypi kernel: [ 115.865181] Transfer to device 11 endpoint 0x2 frame 436 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:12 raspberrypi kernel: [ 124.571340] Transfer to device 11 endpoint 0x2 frame 949 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:13 raspberrypi kernel: [ 125.574842] Transfer to device 11 endpoint 0x2 frame 1952 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:13 raspberrypi kernel: [ 125.606836] Transfer to device 11 endpoint 0x2 frame 1984 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:16 raspberrypi kernel: [ 128.597503] Transfer to device 11 endpoint 0x2 frame 878 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:17 raspberrypi kernel: [ 128.662519] Transfer to device 11 endpoint 0x2 frame 943 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:17 raspberrypi kernel: [ 128.758271] Transfer to device 11 endpoint 0x2 frame 1039 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:17 raspberrypi kernel: [ 129.014307] Transfer to device 11 endpoint 0x2 frame 1295 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:17 raspberrypi kernel: [ 129.078312] Transfer to device 11 endpoint 0x2 frame 1359 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:17 raspberrypi kernel: [ 129.366357] Transfer to device 11 endpoint 0x2 frame 1647 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:17 raspberrypi kernel: [ 129.430356] Transfer to device 11 endpoint 0x2 frame 1711 failed - FIQ reported NYET. Data may have been lost.
Jun 9 21:27:34 raspberrypi kernel: [ 146.313674] usb 1-1.2.1.1: USB disconnect, device number 11
Jun 9 21:27:37 raspberrypi kernel: [ 148.869518] usb 1-1.2.1-port1: Cannot enable. Maybe the USB cable is bad?
Jun 9 21:27:38 raspberrypi kernel: [ 149.729551] usb 1-1.2.1-port1: Cannot enable. Maybe the USB cable is bad?
Jun 9 21:27:38 raspberrypi kernel: [ 150.589367] usb 1-1.2.1-port1: Cannot enable. Maybe the USB cable is bad?
Jun 9 21:27:39 raspberrypi kernel: [ 151.449358] usb 1-1.2.1-port1: Cannot enable. Maybe the USB cable is bad?
Jun 9 21:27:39 raspberrypi kernel: [ 151.449727] usb 1-1.2.1-port1: unable to enumerate USB device
Zitat von: moonsorrox am 09 Juni 2015, 17:39:36
ja der hmland war vorher ganz normal angemeldet und funktionierte.
Zitat
ich muss jetzt nochmal schauen wie ich das Neukompiliere, das mache ich mit dem Kommando - git pull und make
$ git pull
remote: Counting objects: 48, done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 48 (delta 28), reused 0 (delta 0)
Unpacking objects: 100% (48/48), done.
From git://git.zerfleddert.de:/hmcfgusb
57b387c..13bb1a6 master -> origin/master
Updating 57b387c..13bb1a6
Fast-forward
README.md | 77 ++++++++++++++++++++++++++++++
flash-hmcfgusb.c | 4 +-
flash-ota.c | 7 ++-
hmcfgusb.c | 93 +++++++++++++++++++++++++------------
hmcfgusb.h | 1 +
hmland.c | 267 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------
hmsniff.c | 2 +
version.h | 2 +-
8 files changed, 324 insertions(+), 129 deletions(-)
create mode 100644 README.md
$ make clean
rm -f hmcfgusb.o hmland.o hmcfgusb.o hmsniff.o hmcfgusb.o firmware.o util.o flash-hmcfgusb.o hmcfgusb.o culfw.o firmware.o util.o flash-ota.o hmcfgusb.d hmland.d hmcfgusb.d hmsniff.d hmcfgusb.d firmware.d util.d flash-hmcfgusb.d hmcfgusb.d culfw.d firmware.d util.d flash-ota.d hmland hmsniff flash-hmcfgusb flash-ota
$ make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
gcc -L/opt/local/lib hmland.o hmcfgusb.o -lusb-1.0 -lrt -o hmland
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmsniff.o hmsniff.c
gcc -L/opt/local/lib hmsniff.o hmcfgusb.o -lusb-1.0 -lrt -o hmsniff
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-hmcfgusb.o flash-hmcfgusb.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o firmware.o firmware.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o util.o util.c
gcc -L/opt/local/lib flash-hmcfgusb.o hmcfgusb.o firmware.o util.o -lusb-1.0 -lrt -o flash-hmcfgusb
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-ota.o flash-ota.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o culfw.o culfw.c
gcc -L/opt/local/lib flash-ota.o hmcfgusb.o culfw.o firmware.o util.o -lusb-1.0 -lrt -o flash-ota
$ ./hmland -i
HHM-USB-IF,03C7,JEQ0534488,1DAF1E,68EA14,0002B0EC,0000
Zitat
so hier meine Ausgabe:Code Auswählen
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 58 HID
Zitat von: Motivierte linke Hände am 09 Juni 2015, 21:33:00
Ich habe hier an einem Raspi2 u.a. einen HM-CFG-USB. Nach einem Reboot funktioniert ein paar Minuten alles, der HM-CFG-USB taucht bei lsusb auf. Dann geht "etwas" schief: [...]
Irgendwelche Ideen?
Zitat von: mgernoth am 10 Juni 2015, 10:42:33
Ja, aber woher stammte das "alte" hmland-Programm?
Zitat von: mgernoth am 10 Juni 2015, 10:42:33
Entweder ein defektes USB-Interface auf dem Stick (gabs schon ein paarmal) oder ein kaputter USB-Host-Treiber am Raspi2. Der hat doch AFAIK den gleichen (kaputten) USB-Controller wie der 1er? Hilft da evtl auch die Option dwc_otg.speed=1?
Laeuft der Stick laenger an einem anderen Rechner?
Zitat von: moonsorrox am 10 Juni 2015, 12:37:44
ich weiß immer noch nicht was mit altes Programm gemeint ist...! :-\
Zitat
Gestern habe ich den spät Abends nochmals, kompiliert mit (git pull und make) und heute nun läuft er auf meinem Testsystem.
Zitat von: Motivierte linke Hände am 10 Juni 2015, 13:48:47
Die 3 funktionieren alle problemlos, so dass ich bisher gehofft hatte, der USB-Stack sei entweder inzwischen insgesamt stabiler (die Hochzeit der Probleme war Ende 2012) und/oder der Raspi2 da anders designed. dwc_otg.speed = 1 muss ich mal testen - das tut nur in der Netzwerkperformance weh.
Zitat
Einen Punkt spezifisch zu hmland habe ich noch: Wenn sich der HMUSB verabschiedet, bekommt hmland das nicht mit. hmland läuft weiter, versucht den Verbindungsaufbau und gibt Fehlermeldungen aus, was so letztenlich dann das FHEM Log flutet mit disconnected, connecting, etc. Stati für den HMUSB.
Zitat von: mgernoth am 10 Juni 2015, 14:23:12Nein, ich habe den HmUSB unter Debian Jessie gebaut, also komplett neues Debian installiert und danach den Stick eingebunden, wie im Wiki beschrieben..!
Ich meine die Version, die Du vor dem neukompilieren benutzt hast.
Hast Du die evtl. unter Debian Wheezy gebaut und dann geupdated?
Zitat von: mgernoth am 10 Juni 2015, 14:23:12Ja klar und ich möchte ja auch gerne dabei helfen, dass raus zu bekommen, denn Jessie wird sicher bald Einzug nehmen in viele Systeme.
Ok, dann gehe ich stark davon aus, dass es tatsaechlich ein Inkompatibilitaetsproblem mit der libusb war. Ich will jetzt eigentlich nur noch rausfinden, was dazu gefuehrt hat, deswegen auch meine Frage wo die alte hmland-Version herkam...
Zitat von: moonsorrox am 10 Juni 2015, 15:07:06Nein. Firmware ist das, was im Stick drin ist.
Meine Firmware ist aber die folgende: D-firmware 0.967
Sollte die nicht 0.999 sein ?
Zitat von: moonsorrox am 10 Juni 2015, 15:07:06
Nein, ich habe den HmUSB unter Debian Jessie gebaut, also komplett neues Debian installiert und danach den Stick eingebunden, wie im Wiki beschrieben..!
Zitat
Ja klar und ich möchte ja auch gerne dabei helfen, dass raus zu bekommen, denn Jessie wird sicher bald Einzug nehmen in viele Systeme.
-I pretend to be HM-LAN-IF for compatibility with client-software (previous default)
2015.06.30 20:03:13.209 5: HMLAN/RAW: /HHM-USB-IF,03C7,KEQ1111271,263408,1ACE1F,00124864,0011,06
Zitat... und hier bereits die für die Fritzboxen kompilierte Version ;)ich komme kaum noch hinterher, danke.
Zitat von: frank am 02 Juli 2015, 15:20:44
ich habe versucht v0.100 mit hmland -I -d -p 1234 zu starten. dann konnte ich nicht auf fhem zugreifen. ist -I nicht kombinierbar?
Zitat von: karl0123 am 02 Juli 2015, 15:28:59
Setzt die v0.100 voraus, dass auf dem HM-CFG-USB-2 die aktuellste Firmware vorhanden ist? FHEM bekommt mit dieser Version keine Verbindung.
Zitat
Ich habe aber ein Problem mit dem Flashen der Firmware. Der USB-Stick wird, im Gegensatz zu einem anderen, den ich verwende, am PC nicht erkannt.
# ### Device HMUSB
define hmusb HMLAN 127.0.0.1:1234
attr hmusb hmId 555555
attr hmusb hmLanQlen 1_min
# ### Schalter Schlafzimmer
define SchalterSchlafzimmer CUL_HM XXXXXX
attr SchalterSchlafzimmer IODev hmusb
attr SchalterSchlafzimmer autoReadReg 4_reqStatus
attr SchalterSchlafzimmer expert 2_full
attr SchalterSchlafzimmer firmware 1.4
attr SchalterSchlafzimmer model HM-PB-2-WM55
attr SchalterSchlafzimmer room Schalter
attr SchalterSchlafzimmer serialNr MEQ00XXXXX
attr SchalterSchlafzimmer subType pushButton
attr SchalterSchlafzimmer webCmd getConfig:clear msgEvents
# ### Schalter Schlafzimmer - Button 1
define SchalterSchlafzimmer_Btn_01 CUL_HM XXXXXX01
attr SchalterSchlafzimmer_Btn_01 model HM-PB-2-WM55
attr SchalterSchlafzimmer_Btn_01 peerIDs
# ### Schalter Schlafzimmer - Button 2
define SchalterSchlafzimmer_Btn_02 CUL_HM XXXXXX02
attr SchalterSchlafzimmer_Btn_02 model HM-PB-2-WM55
# ### Schalter Schlafzimmer - Logging
define FileLog_SchalterSchlafzimmer FileLog ./log/SchalterSchlafzimmer-%Y.log SchalterSchlafzimmer.*
attr FileLog_SchalterSchlafzimmer logtype text
attr FileLog_SchalterSchlafzimmer room Schalter
# ### Schalter Schlafzimmer Aktionen
define SchalterNotify notify SchalterSchlafzimmer_Btn_.* {\
fhem("set Sonos_Arbeitszimmer Stop");;\
}
2015.07.08 20:49:20 1: HMLAN_Parse: hmusb new condition disconnected
2015.07.08 20:49:20 3: Opening hmusb device 192.168.169.253:1250
2015.07.08 20:49:20 3: hmusb device opened
2015.07.08 20:49:20 1: HMLAN_Parse: hmusb new condition init
ZitatHM-CFG-USB D-firmware 0.963
Possible options:
-r n reboot HM-CFG-USB after n seconds (0: no reboot, default: 86400 if FW < 0.967, 0 otherwise)
Zitat@ frank ... Danke ... Kann ich das Update direkt über Fhem machen oder muss ich das über die Console (telnet) direkt auf der Fritzbox machen ?ich habe es mit einer speziellen sw von eq3 gemacht. ansonsten lese den ersten beitrag. über fhem wohl nicht.
sudo /etc/init.d/hmland start
sudo systemctl status hmland
● hmland.service - LSB: Start hmland daemon at boot time
Loaded: loaded (/etc/init.d/hmland)
Active: failed (Result: exit-code) since Do 2015-07-23 19:19:51 CEST; 24min ago
Jul 23 19:19:51 ha systemd[1]: hmland.service: control process exited, code=exited status=203
Jul 23 19:19:51 ha systemd[1]: Failed to start LSB: Start hmland daemon at boot time.
Jul 23 19:19:51 ha systemd[1]: Unit hmland.service entered failed state.
sudo systemctl is-enabled hmland
Failed to get unit file state for hmland.service: No such file or directory
sudo update-rc.d hmland enable
insserv: pushd() can not change to directory /etc/init.d: No such file or directory
update-rc.d: error: insserv rejected the script header
#!/bin/sh
Zitat von: volschin am 23 Juli 2015, 20:24:44Wenn im Wiki noch etwas angepasst werden muss, kümmerst Du Dich darum? Oder schreibst mir andernfalls, wo etwas zu korrigieren ist. Danke.
Im Wiki ist die Startdatei sogar schon korrigiert, allerdings verweist der Link dort auf das fehlerhafte Script.
15.07.29 10:42:27 1: HMLAN_Parse: hmusb new condition disconnected
2015.07.29 10:42:27 1: 127.0.0.1:1234 reappeared (hmusb)
2015.07.29 10:42:27 1: HMLAN_Parse: hmusb new condition init
# $Id: fhem.pl 9002 2015-07-29 05:46:10Z rudolfkoenig $
# $Id: 95_Alarm.pm 2014-08 - pahenning $
# $Id: 10_CUL_HM.pm 8976 2015-07-26 06:22:16Z martinp876 $
# $Id: 98_DOIF.pm 8432 2015-04-13 19:34:11Z damian-s $
# $Id: 95_Dashboard.pm 8990 2015-07-26 20:42:15Z talkabout $
# $Id: 72_FB_CALLLIST.pm 9001 2015-07-28 20:57:40Z markusbloch $
# $Id: 72_FB_CALLMONITOR.pm 8791 2015-06-21 11:23:23Z markusbloch $
# $Id: 01_FHEMWEB.pm 9002 2015-07-29 05:46:10Z rudolfkoenig $
# $Id: 00_FHEMduino.pm mdorenka $
# $Id: 14_FHEMduino_Env.pm 3818 2014-06-13 $
# $Id: 14_FHEMduino_FA20RF.pm 3818 2014-06-24 $
# $Id: 14_FHEMduino_PT2262.pm 0002 2014-05-28 15:50:00Z snoop & mdorenka $
# $Id: 10_FRM.pm 6946 2014-11-11 07:32:47Z ntruchsess $
# $Id: 20_FRM_OUT.pm 5927 2014-05-21 21:56:37Z ntruchsess $
# $Id: 92_FileLog.pm 8927 2015-07-09 07:12:52Z rudolfkoenig $
# $Id: 55_GDS.pm 8677 2015-06-01 17:11:36Z betateilchen $
# $Id: 00_HMLAN.pm 8885 2015-07-04 08:45:34Z martinp876 $
# $Id: 98_HTTPMOD.pm 8282 2015-03-24 20:36:58Z ststrobel $
# $Id: 49_IPCAM.pm 2626 2013-02-01 19:19:15Z mfr69bs $
# $Id: 21_OWTHERM.pm 7181 2014-12-10 05:13:48Z pahenning $
# $Id: 00_OWX.pm 6392 2014-08-11 15:25:00Z ntruchsess $
# $Id: 59_PROPLANTA.pm 8709 2015-06-07 14:32:51Z tpoitzsch $
# $Id: 99_SUNRISE_EL.pm 6765 2014-10-14 18:24:29Z rudolfkoenig $
# $Id: 98_SVG.pm 8965 2015-07-14 13:56:38Z rudolfkoenig $
# $Id: 99_Utils.pm 7914 2015-02-08 11:14:10Z rudolfkoenig $
# $Id: 90_at.pm 8326 2015-03-29 13:30:57Z rudolfkoenig $
# $Id: 98_autocreate.pm 8758 2015-06-16 17:12:39Z rudolfkoenig $
# $Id: 98_dummy.pm 8809 2015-06-23 18:02:33Z rudolfkoenig $
# $Id: 91_eventTypes.pm 8725 2015-06-10 09:50:06Z rudolfkoenig $
# $Id: 95_holiday.pm 8723 2015-06-10 09:09:01Z rudolfkoenig $
./FHEM/99_myUtils.pm: No such file or directory
# $Id: myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig $
# $Id: 99_myUtilsTelefon.pm 1932 2012-10-06 20:15:33Z ulimaass $
# $Id: 91_notify.pm 8953 2015-07-13 15:13:06Z rudolfkoenig $
# $Id: 33_readingsGroup.pm 8980 2015-07-26 08:03:43Z justme1968 $
# $Id: 98_telnet.pm 8952 2015-07-13 12:30:26Z rudolfkoenig $
./FHEM/95_webViewControl.pm: No such file or directory
# $Id: 98_weblink.pm 5608 2014-04-23 10:57:16Z rudolfkoenig $
Zitat von: volschin am 29 Juli 2015, 14:44:06
Was sagtCode Auswählenhostnamectl | sed -n 's/.*Operating System: //p'
Zitat von: hexenmeister am 29 Juli 2015, 14:47:27
Mit dist-upgrade stehe ich auf Kriegsfuß. Ging immer was dabei kaputt. Besser die neue Distribition (wenn es denn wirklich sein muss) sauber neu installieren. Ich installiere nur Updates für die einzelnen Packages und habe den Kernel upgedatet.
Zitat von: volschin am 29 Juli 2015, 14:44:06
Was sagtCode Auswählenhostnamectl | sed -n 's/.*Operating System: //p'
lsb_release -a
cat /etc/*-release
Zitat von: RettungsTim am 29 Juli 2015, 10:47:09
Hallo zusammen,
ich habe bei mir seit einem updat des cubietrucks diesen wiederholungsfehler.Code Auswählen
15.07.29 10:42:27 1: HMLAN_Parse: hmusb new condition disconnected
2015.07.29 10:42:27 1: 127.0.0.1:1234 reappeared (hmusb)
2015.07.29 10:42:27 1: HMLAN_Parse: hmusb new condition init
Zitat
Also habe ich hier nachgelesen und ein git pull und make gemacht.
Zitat von: volschin am 29 Juli 2015, 14:57:25
Gibt aber schon ein paar Sachen die schief gehen können, wenn man die Nachfragen zu den conf-Dateien falsch beantwortet.
Zitat von: RettungsTim am 29 Juli 2015, 15:01:07
Aber vieleicht siehst du schon so was. Sieht ja nicht gut aus.
Zitat von: mgernoth am 29 Juli 2015, 15:19:29
Hi,
Er kriegt die Daten nicht los.
Laufen evtl. mehrere hmland?
Gruß
Michael
ZitatWenn die Meldung "Waiting for device with serial..." erscheint, muss das Gerät manuell in den FUP-Modus versetzt werden. Beim HM-CC-RT-DN müssen hierbei beim Einlegen der Batterien die drei Tasten gleichzeitig betätigt werden.
Zitat von: SunhillProject am 16 August 2015, 16:53:50
dwc_otg.speed=1 hab ich eingetragen, bringt aber leider nichts.
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait dwc_otg.fiq_fsm_mask=0x5 dwc_otg.speed=1
./hmland -l 127.0.0.1 -d -p 1234 -D
Zitat von: SunhillProject am 17 August 2015, 14:26:43Hast Du auch schon das Kommando update in FHEM benutzt?
Ja ich hab das ganze System neu vor 2 Wochen installiert. FHEM ist 5.6 .
Zitat von: herrmie am 15 August 2015, 18:23:24
super Anleitung aber eine Aussage ist falsch:
Durch gleichzeitiges Drücken der "Auto-/Manu"-Taste und der "Comfort-/Eco"-Taste am HM-CC-RT-DN während man die Batterien wieder einlegt wird der updatemodus gestartet. Während des Updates steht "FUP" im Display
-C HMID of central (3 hex-bytes, no prefix, e.g. ABCDEF)
-D HMID of device (3 hex-bytes, no prefix, e.g. 123456)
-K KNO:KEY AES key-number and key (hex) separated by colon (Fhem hmKey attribute)
Zitat von: QuesT am 24 September 2015, 15:21:22
was trage ich in die ser2net.conf ein wenn ich den HM-CFG-USB weiterreichen will?
Zitat von: mgernoth am 30 September 2015, 17:00:16
Hallo,
Der HM-CFG-USB ist kein serielles Gerät. Was kann ser2net, was hmland nicht kann?
Viele Grüße
Michael
Zitat von: QuesT am 04 Oktober 2015, 20:28:03Auf dem Raspi HMLAND installieren und an dem anderen mit der IP des Rapsi angeben.
was muss ich machen wenn mein HM-CFG-USB an meinen Raspi (192.168.1.35) steckt aber mein Fhem am Server unter (192.168.1.210) läuft?
root@fhem-dev:/opt/hmcfgusb> make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
gcc -L/opt/local/lib hmland.o hmcfgusb.o -lusb-1.0 -lrt -o hmland
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmsniff.o hmsniff.c
gcc -L/opt/local/lib hmsniff.o hmcfgusb.o -lusb-1.0 -lrt -o hmsniff
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-hmcfgusb.o flash-hmcfgusb.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o firmware.o firmware.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o util.o util.c
gcc -L/opt/local/lib flash-hmcfgusb.o hmcfgusb.o firmware.o util.o -lusb-1.0 -lrt -o flash-hmcfgusb
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-ota.o flash-ota.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o culfw.o culfw.c
gcc -L/opt/local/lib flash-ota.o hmcfgusb.o culfw.o firmware.o util.o -lusb-1.0 -lrt -o flash-ota
Zitat von: Joker2002 am 07 Oktober 2015, 08:23:00Na da läuft der doch vermutlich. Du kannst mit
Wenn ich zu Testzwecken "./hmland -p 1234 -D" eingebe geschieht auf meinem Pi optisch nichts, d. h. der Befehl wird zwar angenommen, ich kann mittels Putty aber nicht erkennen ob etwas ausgeführt wurde da der Curser lediglich eine Zeile nach unten springt und dann blinkt.
ps -ef | grep hmland
nachsehen, ob der entsprechende Prozess da ist.Zitat von: Joker2002 am 07 Oktober 2015, 08:23:00Daemon mit FHEM zu starten ist IMHO Murks, aber ok.
Das Startscropt des Deamons wollte ich eigentlich nicht. Im Wiki steht ja alternativ, dass man den Deamon auch mit FHEM ausführen kann.
Zitat von: Joker2002 am 07 Oktober 2015, 08:23:00Stimmt denn die Definition von HMLAN in FHEM? Vor allem, ob der verwendete Port korrekt angegeben wurde (in Deinem Fall 1234, standardport ist 1000).
Da der USB Stick aber von FHEM noch nicht erkannt wird, habe ich mich auch noch nicht darum gekümmert..
Zitat von: Joker2002 am 07 Oktober 2015, 08:23:00Nein, in diesem Fall müsstest Du eine Datei (script.sh oder so) mit dem Inhalt erzeugen. mit chmod a+x <datenname> ausführbar machen und als root ausführen. Deises Script holf neue hmland-Sourcen, kompiliert sie und installiert einen entsprechenden Startscript.
Wenn ich das Script doch nehmen sollte, muss ich die Zeilen händisch im Putty einmal eingeben (ich bin leider Laie, sorry das ich frage) oder kann ich auf dem Pi eine entsprechende Startdatei erstellen und den Textinhalt einfügen ?
root@raspberrypi:~/hmcfgusb# make
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmcfgusb.o hmcfgusb.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o util.o util.c
gcc -L/opt/local/lib hmland.o hmcfgusb.o util.o -lusb-1.0 -lrt -o hmland
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmsniff.o hmsniff.c
gcc -L/opt/local/lib hmsniff.o hmcfgusb.o -lusb-1.0 -lrt -o hmsniff
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-hmcfgusb.o flash-hmcfgusb.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o firmware.o firmware.c
gcc -L/opt/local/lib flash-hmcfgusb.o hmcfgusb.o firmware.o util.o -lusb-1.0 -lrt -o flash-hmcfgusb
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o flash-ota.o flash-ota.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o culfw.o culfw.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hm.o hm.c
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o aes.o aes.c
gcc -L/opt/local/lib flash-ota.o hmcfgusb.o culfw.o firmware.o util.o hm.o aes.o -lusb-1.0 -lrt -o flash-ota
root@raspberrypi:~/hmcfgusb# pf -ef | grep hmland
-bash: pf: command not found
root@raspberrypi:~/hmcfgusb# ./hmland -p 1234 -D
2015-10-07 21:42:59.015480: Client 127.0.0.1 connected!
USB > 0x0000: 45 37 8c 50 00 00 00 01 04 d9 ff ff 98 0c 36 86 E7.P..........6.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e6 64 00 00 00 00 00 00 p7.P.....d......
USB > 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 04 ed cb 13 ff ff ae 0a 47 80 E+r...........G.
USB > 0x0010: 02 2b 72 bd 3d 95 e9 00 01 00 00 4a 37 0d 00 0e .+r.=......J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 3d 95 e9 00 00 04 ed d7 e8 ff ff 9f 0d 48 a4 E=............H.
USB > 0x0010: 10 3d 95 e9 2b 72 bd 06 01 00 00 4a 37 0d 00 0e .=..+r.....J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
2015-10-07 21:42:59.098380: LAN > C
USB < 0x0000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 3d 95 e9 00 00 04 ed d7 e8 ff ff 9f 0d 48 a4 E=............H.
USB > 0x0010: 10 3d 95 e9 2b 72 bd 06 01 00 00 4a 37 0d 00 0e .=..+r.....J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 04 ed d8 63 ff ff ae 0a 48 80 E+r......c....H.
USB > 0x0010: 02 2b 72 bd 3d 95 e9 00 01 00 00 4a 37 0d 00 0e .+r.=......J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
2015-10-07 21:42:59.162183: LAN > Y01,00,
USB < 0x0000: 59 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 ee 18 cf ff ff aa 0c 6b 86 E/#...........k.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 96 52 00 4a 37 0d 00 0e p/#......R.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 ef 76 5b ff ff 99 0c 57 86 E7.P....v[....W.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 00 4a 37 0d 00 0e p7.P.....d.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
2015-10-07 21:42:59.226252: LAN > Y02,00,
USB < 0x0000: 59 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 ef 76 5b ff ff 99 0c 57 86 E7.P....v[....W.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 00 4a 37 0d 00 0e p7.P.....d.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 f0 12 ad ff ff aa 0c 6c 86 E/#...........l.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 96 52 00 4a 37 0d 00 0e p/#......R.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
2015-10-07 21:42:59.290209: LAN > Y03,00,
USB < 0x0000: 59 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 f0 12 ad ff ff aa 0c 6c 86 E/#...........l.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 96 52 00 4a 37 0d 00 0e p/#......R.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 f1 ca 0e ff ff 98 0c 58 86 E7.P..........X.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 00 4a 37 0d 00 0e p7.P.....d.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
2015-10-07 21:42:59.354184: LAN > T1DA83243,04,00,00000000
USB < 0x0000: 54 1d a8 32 43 04 00 00 00 00 00 00 00 00 00 00 T..2C...........
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 f1 ca 0e ff ff 98 0c 58 86 E7.P..........X.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 00 4a 37 0d 00 0e p7.P.....d.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 f2 ce e1 ff ff a9 0c 6d 86 E/#...........m.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 96 52 00 4a 37 0d 00 0e p/#......R.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
2015-10-07 21:42:59.418273: LAN > S43D40320,00,00000000,01,43D40320,998112999999000000
USB < 0x0000: 53 43 d4 03 20 00 00 00 00 00 01 43 d4 03 20 09 SC.. ......C.. .
USB < 0x0010: 99 81 12 99 99 99 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 f5 52 71 ff ff a9 0c 6e 86 E/#.....Rq....n.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 96 52 00 4a 37 0d 00 0e p/#......R.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 f5 c9 7c ff ff 99 0c 5a 86 E7.P.....|....Z.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 00 4a 37 0d 00 0e p7.P.....d.J7...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 58ms!
USB > 0x0000: 45 37 8c 50 00 00 04 f5 c9 7c ff ff 99 0c 5a 86 E7.P.....|....Z.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 a8 2c 8d 0d 00 0e p7.P.....d.,....
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 04 f6 54 09 ff ff ae 0f 3b 94 E+r.....T.....;.
USB > 0x0010: 3f 2b 72 bd 00 00 00 02 04 1d a8 2c 8d 0d 00 0e ?+r........,....
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 f7 9d 5d ff ff a8 0c 6f 86 E/#......]....o.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 96 52 a8 2c 8d 0d 00 0e p/#......R.,....
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 f9 af a5 ff ff a7 0c 70 86 E/#...........p.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 95 52 a8 2c 8d 0d 00 0e p/#......R.,....
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 fa db 54 ff ff 9b 0c 5c 86 E7.P.....T....\.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 a8 2c 8d 0d 00 0e p7.P.....d.,....
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 fb 8a 42 ff ff a9 0c 71 86 E/#......B....q.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 95 53 a8 2c 8d 0d 00 0e p/#......S.,....
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 36 34 f9 00 00 04 fb d6 38 ff ff 9f 0d 25 a6 E64......8....%.
USB > 0x0010: 10 36 34 f9 2b 72 bd 06 01 00 00 2c 8d 0d 00 0e .64.+r.....,....
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 04 fb d6 b9 ff ff ae 11 25 a0 E+r...........%.
USB > 0x0010: 02 2b 72 bd 36 34 f9 04 42 47 00 00 47 11 00 0e .+r.64..BG..G...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 04 fb d7 b1 ff ff ae 0e 25 80 E+r...........%.
USB > 0x0010: 02 2b 72 bd 36 34 f9 00 ab a6 40 47 47 11 00 0e .+r.64....@GG...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 fd 0f c7 ff ff 96 0c 5d 86 E7.P..........].
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 40 47 47 11 00 0e p7.P.....d@GG...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 04 fe 26 3c ff ff a9 0c 72 86 E/#.....&<....r.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 95 53 40 47 47 11 00 0e p/#......S@GG...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 04 fe aa 51 ff ff af 11 7a a0 E+r......Q....z.
USB > 0x0010: 02 2b 72 bd 36 35 43 04 46 38 00 00 38 0e 00 0e .+r.65C.F8..8...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 04 fe ab 49 ff ff ae 0e 7a 80 E+r......I....z.
USB > 0x0010: 02 2b 72 bd 36 35 43 00 9c cd 57 14 38 0e 00 0e .+r.65C...W.8...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 04 ff 0b 96 ff ff 9a 0c 5e 86 E7.P..........^.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 57 14 38 0e 00 0e p7.P.....dW.8...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 05 00 89 92 ff ff a9 0c 73 86 E/#...........s.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 95 53 57 14 38 0e 00 0e p/#......SW.8...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 05 01 c9 bb ff ff 98 0c 5f 86 E7.P.........._.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 57 14 38 0e 00 0e p7.P.....dW.8...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 05 02 b5 3e ff ff a9 0c 74 86 E/#......>....t.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 95 53 57 14 38 0e 00 0e p/#......SW.8...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 05 04 a8 46 ff ff a9 0c 75 86 E/#......F....u.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 94 53 57 14 38 0e 00 0e p/#......SW.8...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 05 05 29 ab ff ff af 11 43 a0 E+r.....).....C.
USB > 0x0010: 02 2b 72 bd 36 35 36 04 72 32 00 00 32 0c 00 0e .+r.656.r2..2...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 36 35 69 00 00 05 05 b7 08 ff ff a3 0d 0d a6 E65i............
USB > 0x0010: 10 36 35 69 2b 72 bd 06 01 00 00 00 32 0c 00 0e .65i+r......2...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 05 05 b7 89 ff ff ae 11 0d a0 E+r.............
USB > 0x0010: 02 2b 72 bd 36 35 69 04 86 61 00 00 61 18 00 0e .+r.65i..a..a...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2b 72 bd 00 00 05 05 b8 81 ff ff ae 0e 0d 80 E+r.............
USB > 0x0010: 02 2b 72 bd 36 35 69 00 7f 4a 57 19 61 18 00 0e .+r.65i..JW.a...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 05 06 9c 19 ff ff 99 0c 61 86 E7.P..........a.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 57 19 61 18 00 0e p7.P.....dW.a...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 05 07 5c aa ff ff a9 0c 76 86 E/#.....\.....v.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 94 53 57 19 61 18 00 0e p/#......SW.a...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 05 09 d9 64 ff ff a9 0c 77 86 E/#......d....w.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 94 53 57 19 61 18 00 0e p/#......SW.a...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 37 8c 50 00 00 05 0a 8c e1 ff ff 9b 0c 63 86 E7.P..........c.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 57 19 61 18 00 0e p7.P.....dW.a...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 45 2f 23 f6 00 00 05 0c 1d 7a ff ff a9 0c 78 86 E/#......z....x.
USB > 0x0010: 70 2f 23 f6 00 00 00 00 94 53 57 19 61 18 00 0e p/#......SW.a...
USB > 0x0020: dc 00 18 00 30 01 01 00 00 00 00 00 00 00 00 00 ....0...........
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c4 0a 4c 45 H.HM-USB-IF...LE
USB > 0x0010: 51 31 35 31 37 33 34 31 34 f2 2a 00 00 00 05 0c Q15173414.*.....
USB > 0x0020: 4c 7f 00 00 00 01 01 00 00 00 00 00 00 00 00 00 L...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Rebooting in 86400 seconds due to old firmware (0.964)
2015-10-07 21:43:00.378292: LAN < HHM-USB-IF,03C4,LEQ1517341,34F22A,000000,050C4C7F,0000
2015-10-07 21:43:00.378578: LAN < E378C50,0000,000104D9,FF,FF98,368670378C5000000000E664
2015-10-07 21:43:00.378813: LAN < E2B72BD,0000,04EDCB13,FF,FFAE,4780022B72BD3D95E900
2015-10-07 21:43:00.379056: LAN < E3D95E9,0000,04EDD7E8,FF,FF9F,48A4103D95E92B72BD06010000
2015-10-07 21:43:00.379280: LAN < E3D95E9,0000,04EDD7E8,FF,FF9F,48A4103D95E92B72BD06010000
2015-10-07 21:43:00.379502: LAN < E2B72BD,0000,04EDD863,FF,FFAE,4880022B72BD3D95E900
2015-10-07 21:43:00.379727: LAN < E2F23F6,0000,04EE18CF,FF,FFAA,6B86702F23F6000000009652
2015-10-07 21:43:00.379953: LAN < E378C50,0000,04EF765B,FF,FF99,578670378C5000000000E564
2015-10-07 21:43:00.380185: LAN < E378C50,0000,04EF765B,FF,FF99,578670378C5000000000E564
2015-10-07 21:43:00.380412: LAN < E2F23F6,0000,04F012AD,FF,FFAA,6C86702F23F6000000009652
2015-10-07 21:43:00.380622: LAN < E2F23F6,0000,04F012AD,FF,FFAA,6C86702F23F6000000009652
2015-10-07 21:43:00.380834: LAN < E378C50,0000,04F1CA0E,FF,FF98,588670378C5000000000E564
2015-10-07 21:43:00.381043: LAN < E378C50,0000,04F1CA0E,FF,FF98,588670378C5000000000E564
2015-10-07 21:43:00.381247: LAN < E2F23F6,0000,04F2CEE1,FF,FFA9,6D86702F23F6000000009652
2015-10-07 21:43:00.381469: LAN < E2F23F6,0000,04F55271,FF,FFA9,6E86702F23F6000000009652
2015-10-07 21:43:00.381692: LAN < E378C50,0000,04F5C97C,FF,FF99,5A8670378C5000000000E564
2015-10-07 21:43:00.381908: LAN < E378C50,0000,04F5C97C,FF,FF99,5A8670378C5000000000E564
2015-10-07 21:43:00.382095: LAN < E2B72BD,0000,04F65409,FF,FFAE,3B943F2B72BD00000002041DA82C8D
2015-10-07 21:43:00.382237: LAN < E2F23F6,0000,04F79D5D,FF,FFA8,6F86702F23F6000000009652
2015-10-07 21:43:00.382364: LAN < E2F23F6,0000,04F9AFA5,FF,FFA7,7086702F23F6000000009552
2015-10-07 21:43:00.382487: LAN < E378C50,0000,04FADB54,FF,FF9B,5C8670378C5000000000E564
2015-10-07 21:43:00.382612: LAN < E2F23F6,0000,04FB8A42,FF,FFA9,7186702F23F6000000009553
2015-10-07 21:43:00.382743: LAN < E3634F9,0000,04FBD638,FF,FF9F,25A6103634F92B72BD06010000
2015-10-07 21:43:00.382866: LAN < E2B72BD,0000,04FBD6B9,FF,FFAE,25A0022B72BD3634F90442470000471100
2015-10-07 21:43:00.382994: LAN < E2B72BD,0000,04FBD7B1,FF,FFAE,2580022B72BD3634F900ABA64047
2015-10-07 21:43:00.383121: LAN < E378C50,0000,04FD0FC7,FF,FF96,5D8670378C5000000000E564
2015-10-07 21:43:00.383237: LAN < E2F23F6,0000,04FE263C,FF,FFA9,7286702F23F6000000009553
2015-10-07 21:43:00.383354: LAN < E2B72BD,0000,04FEAA51,FF,FFAF,7AA0022B72BD3635430446380000380E00
2015-10-07 21:43:00.383487: LAN < E2B72BD,0000,04FEAB49,FF,FFAE,7A80022B72BD363543009CCD5714
2015-10-07 21:43:00.383609: LAN < E378C50,0000,04FF0B96,FF,FF9A,5E8670378C5000000000E564
2015-10-07 21:43:00.383731: LAN < E2F23F6,0000,05008992,FF,FFA9,7386702F23F6000000009553
2015-10-07 21:43:00.383854: LAN < E378C50,0000,0501C9BB,FF,FF98,5F8670378C5000000000E564
2015-10-07 21:43:00.383983: LAN < E2F23F6,0000,0502B53E,FF,FFA9,7486702F23F6000000009553
2015-10-07 21:43:00.384103: LAN < E2F23F6,0000,0504A846,FF,FFA9,7586702F23F6000000009453
2015-10-07 21:43:00.384216: LAN < E2B72BD,0000,050529AB,FF,FFAF,43A0022B72BD3635360472320000320C00
2015-10-07 21:43:00.384342: LAN < E363569,0000,0505B708,FF,FFA3,0DA6103635692B72BD06010000
2015-10-07 21:43:00.384461: LAN < E2B72BD,0000,0505B789,FF,FFAE,0DA0022B72BD3635690486610000611800
2015-10-07 21:43:00.384589: LAN < E2B72BD,0000,0505B881,FF,FFAE,0D80022B72BD363569007F4A5719
2015-10-07 21:43:00.384711: LAN < E378C50,0000,05069C19,FF,FF99,618670378C5000000000E564
2015-10-07 21:43:00.384833: LAN < E2F23F6,0000,05075CAA,FF,FFA9,7686702F23F6000000009453
2015-10-07 21:43:00.384953: LAN < E2F23F6,0000,0509D964,FF,FFA9,7786702F23F6000000009453
2015-10-07 21:43:00.385075: LAN < E378C50,0000,050A8CE1,FF,FF9B,638670378C5000000000E564
2015-10-07 21:43:00.385203: LAN < E2F23F6,0000,050C1D7A,FF,FFA9,7886702F23F6000000009453
USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c4 0a 4c 45 I....USB-IF...LE
USB > 0x0010: 51 31 35 31 37 33 34 31 34 f2 2a 00 00 00 05 0c Q15173414.*.....
USB > 0x0020: 4c 7f 00 00 00 01 01 00 00 00 00 00 00 00 00 00 L...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:43:00.410500: LAN < I00,00,00,00
USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c4 0a 4c 45 I....USB-IF...LE
USB > 0x0010: 51 31 35 31 37 33 34 31 34 f2 2a 00 00 00 05 0c Q15173414.*.....
USB > 0x0020: 4c 7f 00 00 00 01 01 00 00 00 00 00 00 00 00 00 L...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:43:00.442516: LAN < I00,00,00,00
USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c4 0a 4c 45 I....USB-IF...LE
USB > 0x0010: 51 31 35 31 37 33 34 31 34 f2 2a 00 00 00 05 0c Q15173414.*.....
USB > 0x0020: 4c 7f 00 00 00 01 01 00 00 00 00 00 00 00 00 00 L...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:43:00.474435: LAN < I00,00,00,00
USB > 0x0000: 52 43 d4 03 20 00 02 00 00 00 00 ff 7f ff 09 99 RC.. ...........
USB > 0x0010: 81 12 99 99 99 00 00 00 34 f2 2a 00 00 00 05 0c ........4.*.....
USB > 0x0020: 4c 7f 00 00 00 01 01 00 00 00 00 00 00 00 00 00 L...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:43:00.506546: LAN < R43D40320,0002,00000000,FF,7FFF,998112999999000000
2015-10-07 21:43:24.045756: LAN > K
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 1ms!
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c4 0a 4c 45 H.HM-USB-IF...LE
USB > 0x0010: 51 31 35 31 37 33 34 31 34 f2 2a 00 00 00 05 0c Q15173414.*.....
USB > 0x0020: ae 1b 00 00 01 01 01 00 00 00 00 00 00 00 00 00 ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:43:24.057308: LAN < HHM-USB-IF,03C4,LEQ1517341,34F22A,000000,050CAE1B,0000
2015-10-07 21:43:49.070728: LAN > K
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 1ms!
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c4 0a 4c 45 H.HM-USB-IF...LE
USB > 0x0010: 51 31 35 31 37 33 34 31 34 f2 2a 00 00 00 05 0d Q15173414.*.....
USB > 0x0020: 0f dc 00 00 01 01 01 00 00 00 00 00 00 00 00 00 ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:43:49.084624: LAN < HHM-USB-IF,03C4,LEQ1517341,34F22A,000000,050D0FDC,0000
USB > 0x0000: 45 37 8c 50 00 00 05 0d 2a d0 ff ff 98 0c 64 86 E7.P....*.....d.
USB > 0x0010: 70 37 8c 50 00 00 00 00 e5 64 2a 00 00 00 05 0d p7.P.....d*.....
USB > 0x0020: 0f dc 00 00 01 01 01 00 00 00 00 00 00 00 00 00 ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:43:55.997569: LAN < E378C50,0000,050D2AD0,FF,FF98,648670378C5000000000E564
2015-10-07 21:44:14.087079: LAN > K
USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
usb-transfer took 1ms!
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c4 0a 4c 45 H.HM-USB-IF...LE
USB > 0x0010: 51 31 35 31 37 33 34 31 34 f2 2a 00 00 00 05 0d Q15173414.*.....
USB > 0x0020: 71 94 00 00 01 01 01 00 00 00 00 00 00 00 00 00 q...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2015-10-07 21:44:14.111882: LAN < HHM-USB-IF,03C4,LEQ1517341,34F22A,000000,050D7194,0000
Zitat von: Joker2002 am 07 Oktober 2015, 22:02:47Code Auswählenroot@raspberrypi:~/hmcfgusb# pf -ef | grep hmland
Asche auf mein Haupt... Immer diese schnell-schnell... Es heißt natürlich "ps", nicht "pf" :(
Zitatsieht so aus ;)
soweit hat alles mehr oder weniger funktioniert. Wo ich jetzt noch hänge ist die Script Datei zu erstellen.
ZitatNaja, die Hälfte von dem, was das Script macht, hast Du ja schon. Du brauchst nur noch Autostart. Kannst aber trotzdem machen, schaden tut es nicht
Du schreibst, ich soll eine Datei script.sh oder so erstellen und dann chmod a+x <datenname> ausführbar machen und als root ausführen.
ZitatNein, mit
Heist das ich muss dann die Datei im Root Verzeichnis des RPI erstellen oder wie ?
sudo su
wechselst Du den Benutzer (root ist der Administrator)Zitathm, wie erzeuge ich diese Datei eigentlich ?mache mal folgendes:
cd ~
nano script.sh
chmod a+x script.sh
sudo ./script.sh
Zitat von: Joker2002 am 07 Oktober 2015, 22:24:58'root' ist der Admin-Benutzer. Sein HomeVerzichnis ist /
Nur nochmal zum Verständnis "Root" heisst:
/home/pi
??
Zitat von: hexenmeister am 07 Oktober 2015, 22:28:33
'root' ist der Admin-Benutzer. Sein HomeVerzichnis ist /
Das ist der root (Wurzel) des Dateisystems.
sudo su -
pwd
exit
Zitat von: Ralf W. am 07 Oktober 2015, 22:32:01OK, Du hast Recht, aber das verwirrt einen Anfänger nur noch mehr ;)
Besser:Code Auswählensudo su -
pwd
exit
pwd zeigt das Homeverzeichnis von root, ist nicht immer /. Kann auch /root sein.
pi@raspberrypi ~ $ cd ~
pi@raspberrypi ~ $ nano script.sh
pi@raspberrypi ~ $ chmod a+x script.sh
pi@raspberrypi ~ $ sudo ./script.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
gcc is already the newest version.
git-core is already the newest version.
libusb-1.0-0-dev is already the newest version.
make is already the newest version.
The following packages were automatically installed and are no longer required:
bc cups-filters hplip-data libart-2.0-2 libcupscgi1 libcupsfilters1
libcupsmime1 libsane-hpaio libslp1 python-imaging python-pexpect
python-renderpm python-reportlab python-reportlab-accel ssl-cert
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
fatal: destination path 'hmcfgusb' already exists and is not an empty directory.
make: Nothing to be done for 'all'.
Zitat von: Joker2002 am 07 Oktober 2015, 22:41:55Ah, OK, dem git gefällt nicht, dass Du das schon einaml gemacht hast (die Dateien sind bereits da, git will sie nicht eigenmächtig überschreiben).
habe dann noch die script.sh Datei angelegt. Der Homatic bleibt jedoch noch disconnected :/
apt-get install build-essential libusb-1.0-0-dev make gcc git-core
git clone git://git.zerfleddert.de/hmcfgusb
2015.10.25 11:50:25 3: hmusb: Unknown code A14A4845E326EFF00000084A531002B0D022108E0FF::-70:hmusb, help me!
2015.10.25 11:50:29 3: hmusb: Unknown code A0C7186701CC9C9000000009256::-52:hmusb, help me!
2015.10.25 11:50:35 3: hmusb: Unknown code A0C57865A27120B000000B0E837::-63:hmusb, help me!
2015.10.25 11:50:41 3: hmusb: Unknown code A0FFE8610278C240000000A24B50D0040::-64:hmusb, help me!
2015.10.25 11:50:43 3: hmusb: Unknown code A0C42865A2711AF00000028BB41::-84:hmusb, help me!
2015.10.25 11:50:47 3: hmusb: Unknown code A0FA68610278B200000000A28BD0D0040::-83:hmusb, help me!
2015.10.25 11:50:47 3: hmusb: Unknown code A1457845E325D170000008035D800001E003908F3FF::-75:hmusb, help me!
2015.10.25 11:50:50 3: hmusb: Unknown code A0FB38610278B9B0000000A28C50D0040::-64:hmusb, help me!
2015.10.25 11:50:51 3: hmusb: Unknown code A142F845E24B05C000000803E9000000000000907FF::-73:hmusb, help me!
2015.10.25 11:50:55 3: hmusb: Unknown code A0C57847027120B00000000E837::-64:hmusb, help me!
2015.10.25 11:50:59 3: hmusb: Unknown code A0CA38670172CE900000000B943::-83:hmusb, help me!
ZitatUpdate der Firmware von OTA-fähigen Geräten
...kann folgendes Kommando benutzt werden (wichtig ist hierbei, dass hmland nicht parallel läuft):
Zitat von: kunze am 31 Oktober 2015, 16:59:41Ist meines Wissens nicht verboten, ist aber hier nicht gut zu finden. Besser in GitHub und Link dazu in FHEMWIKI.
Falls es erlaubt ist kann ich auch gerne die Pakete für diverse Architekturen hier anhängen.
Zitat von: hexenmeister am 11 August 2014, 16:28:16
oder mit dem Betriebsystem starten...
folgendes in eine script.sh schreiben, Rechte setzen (chmod a+x script.sh), (als root) ausführen, glücklich sein ;)Code Auswählen
#!/bin/sh
cd /opt/
apt-get install build-essential libusb-1.0-0-dev make gcc git-core
git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
make
cat > /etc/init.d/hmland <<"EOF"
#!/bin/sh
# simple init for hmland
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start hmland daemon at boot time
# Description: Provide Service to use HM-USB-CFG Adapter for FHEM.
### END INIT INFO
pidfile=/var/run/hmland.pid
port=1234
case "$1" in
start|"")
chrt 50 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
EOF
sudo chmod 755 /etc/init.d/hmland
sudo update-rc.d hmland defaults
sudo service hmland start
EDIT: Rechte und Präambel korrigiert.
sudo cat > /etc/init.d/hmland <<"EOF"
pi@FHEM ~ $ sudo chmod 755 /etc/init.d/hmland
chmod: Zugriff auf ,,/etc/init.d/hmland" nicht möglich: Datei oder Verzeichnis nicht gefunden
pi@FHEM ~ $ sudo cat > /etc/init.d/hmland <<"EOF"
> #!/bin/sh
> # simple init for hmland
> ### BEGIN INIT INFO
> # Provides: hmland
> # Required-Start: $network $local_fs $remote_fs
> # Required-Stop:: $network $local_fs $remote_fs
> # Should-Start: $all
> # Should-Stop: $all
> # Default-Start: 2 3 4 5
> # Default-Stop: 0 1 6
> # Short-Description: Start hmland daemon at boot time
> # Description: Provide Service to use HM-USB-CFG Adapter for FHEM.
> ### END INIT INFO
>
> pidfile=/var/run/hmland.pid
> port=1234
>
> case "$1" in
> start|"")
> chrt 50 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
> ;;
> restart|reload|force-reload)
> echo "Error: argument '$1' not supported" >&2
> exit 3
> ;;
> stop)
> killall hmland
> ;;
> status)
> if [ ! -e $pidfile ]; then
>
.asoundrc .fontconfig/ python_games/
.bash_history .gstreamer-0.10/ Templates/
.bash_logout .gtk-bookmarks .themes/
.bashrc .gtkrc-2.0 .thumbnails/
.cache/ .icons/ Videos/
.config/ .local/ .viminfo
.cpan/ .mozilla/ .vnc/
.dbus/ Music/ .WolframEngine/
Desktop/ .mysql_history .Xauthority
.dmrc perl5/ .XResources
Documents/ Pictures/ .xsession-errors
Downloads/ .profile .xsession-errors.old
fhem-5.7.deb Public/
> echo "No pid"
>
.asoundrc .fontconfig/ python_games/
.bash_history .gstreamer-0.10/ Templates/
.bash_logout .gtk-bookmarks .themes/
.bashrc .gtkrc-2.0 .thumbnails/
.cache/ .icons/ Videos/
.config/ .local/ .viminfo
.cpan/ .mozilla/ .vnc/
.dbus/ Music/ .WolframEngine/
Desktop/ .mysql_history .Xauthority
.dmrc perl5/ .XResources
Documents/ Pictures/ .xsession-errors
Downloads/ .profile .xsession-errors.old
fhem-5.7.deb Public/
> exit 1
> fi
> pid=`cat $pidfile`
> if kill -0 $pid &>1 > /dev/null; then
>
.asoundrc .fontconfig/ python_games/
.bash_history .gstreamer-0.10/ Templates/
.bash_logout .gtk-bookmarks .themes/
.bashrc .gtkrc-2.0 .thumbnails/
.cache/ .icons/ Videos/
.config/ .local/ .viminfo
.cpan/ .mozilla/ .vnc/
.dbus/ Music/ .WolframEngine/
Desktop/ .mysql_history .Xauthority
.dmrc perl5/ .XResources
Documents/ Pictures/ .xsession-errors
Downloads/ .profile .xsession-errors.old
fhem-5.7.deb Public/
> echo "Running"
>
.asoundrc .fontconfig/ python_games/
.bash_history .gstreamer-0.10/ Templates/
.bash_logout .gtk-bookmarks .themes/
.bashrc .gtkrc-2.0 .thumbnails/
.cache/ .icons/ Videos/
.config/ .local/ .viminfo
.cpan/ .mozilla/ .vnc/
.dbus/ Music/ .WolframEngine/
Desktop/ .mysql_history .Xauthority
.dmrc perl5/ .XResources
Documents/ Pictures/ .xsession-errors
Downloads/ .profile .xsession-errors.old
fhem-5.7.deb Public/
> exit 0
> else
>
.asoundrc .fontconfig/ python_games/
.bash_history .gstreamer-0.10/ Templates/
.bash_logout .gtk-bookmarks .themes/
.bashrc .gtkrc-2.0 .thumbnails/
.cache/ .icons/ Videos/
.config/ .local/ .viminfo
.cpan/ .mozilla/ .vnc/
.dbus/ Music/ .WolframEngine/
Desktop/ .mysql_history .Xauthority
.dmrc perl5/ .XResources
Documents/ Pictures/ .xsession-errors
Downloads/ .profile .xsession-errors.old
fhem-5.7.deb Public/
> rm $pidfile
>
.asoundrc .fontconfig/ python_games/
.bash_history .gstreamer-0.10/ Templates/
.bash_logout .gtk-bookmarks .themes/
.bashrc .gtkrc-2.0 .thumbnails/
.cache/ .icons/ Videos/
.config/ .local/ .viminfo
.cpan/ .mozilla/ .vnc/
.dbus/ Music/ .WolframEngine/
Desktop/ .mysql_history .Xauthority
.dmrc perl5/ .XResources
Documents/ Pictures/ .xsession-errors
Downloads/ .profile .xsession-errors.old
fhem-5.7.deb Public/
> echo "Not running"
>
.asoundrc .fontconfig/ python_games/
.bash_history .gstreamer-0.10/ Templates/
.bash_logout .gtk-bookmarks .themes/
.bashrc .gtkrc-2.0 .thumbnails/
.cache/ .icons/ Videos/
.config/ .local/ .viminfo
.cpan/ .mozilla/ .vnc/
.dbus/ Music/ .WolframEngine/
Desktop/ .mysql_history .Xauthority
.dmrc perl5/ .XResources
Documents/ Pictures/ .xsession-errors
Downloads/ .profile .xsession-errors.old
fhem-5.7.deb Public/
> exit 1
> fi
>
> ;;
> *)
> echo "Usage: hmland [start|stop|status]" >&2
> exit 3
> ;;
> esac
> EOF
bash: /etc/init.d/hmland: Keine Berechtigung
pi@FHEM ~ $ sudo chmod 755 /etc/init.d/hmland
chmod: Zugriff auf ,,/etc/init.d/hmland" nicht möglich: Datei oder Verzeichnis nicht gefunden
pi@FHEM ~ $
gmake
im Ordner hmcfgsub schlägt leider fehl:root@fhem:/home/fhem/apps/hmcfgusb # gmake
gcc -MMD -O2 -Wall -I/opt/local/include -g -c -o hmland.o hmland.c
hmland.c:41:31: warning: libusb-1.0/libusb.h: No such file or directory
In file included from hmland.c:45:
hmcfgusb.h:27: error: expected specifier-qualifier-list before 'libusb_device_handle'
hmland.c: In function 'comm':
hmland.c:516: error: 'struct hmcfgusb_dev' has no member named 'bootloader'
hmland.c:543: error: 'struct hmcfgusb_dev' has no member named 'opened_at'
hmland.c:608: error: 'struct hmcfgusb_dev' has no member named 'opened_at'
hmland.c:611: error: 'struct hmcfgusb_dev' has no member named 'opened_at'
<builtin>: recipe for target 'hmland.o' failed
gmake: *** [hmland.o] Error 1
hmcfgusb.c
und hmland.c
#include <libusb-1.0/libusb.h>
durch #include <libusb.h>
ersetzt und im Makefile die Zeilen CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g
LDFLAGS=-L/opt/local/lib
LDLIBS=-lusb-1.0 -lrt
durchCFLAGS=-MMD -O2 -Wall -I/usr/include -g
LDFLAGS=-L/usr/lib
LDLIBS=-libusb -lrt
root@fhem:/home/fhem/apps/hmcfgusb # gmake
gcc -MMD -O2 -Wall -I/usr/include -g -c -o hmland.o hmland.c
gcc -MMD -O2 -Wall -I/usr/include -g -c -o hmcfgusb.o hmcfgusb.c
gcc -MMD -O2 -Wall -I/usr/include -g -c -o util.o util.c
gcc -L/usr/lib hmland.o hmcfgusb.o util.o -libusb -lrt -o hmland
/usr/bin/ld: cannot find -libusb
<builtin>: recipe for target 'hmland' failed
gmake: *** [hmland] Error 1
root@fhem:/home/fhem/apps/hmcfgusb # gmake
gcc -L/usr/lib hmland.o hmcfgusb.o util.o -lrt -o hmland
hmcfgusb.o: In function `hmcfgusb_exit':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:600: undefined reference to `libusb_exit'
hmcfgusb.o: In function `hmcfgusb_close':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:580: undefined reference to `libusb_cancel_transfer'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:581: undefined reference to `libusb_handle_events'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:584: undefined reference to `libusb_release_interface'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:589: undefined reference to `libusb_close'
hmcfgusb.o: In function `hmcfgusb_poll':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:478: undefined reference to `libusb_get_next_timeout'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:523: undefined reference to `libusb_handle_events_timeout_completed'
hmcfgusb.o: In function `hmcfgusb_find':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:109: undefined reference to `libusb_get_device_list'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:118: undefined reference to `libusb_get_device_descriptor'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:125: undefined reference to `libusb_open'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:135: undefined reference to `libusb_get_string_descriptor_ascii'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:147: undefined reference to `libusb_close'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:174: undefined reference to `libusb_free_device_list'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:152: undefined reference to `libusb_detach_kernel_driver'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:155: undefined reference to `libusb_close'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:156: undefined reference to `libusb_free_device_list'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:160: undefined reference to `libusb_claim_interface'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:168: undefined reference to `libusb_free_device_list'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:128: undefined reference to `libusb_free_device_list'
hmcfgusb.o: In function `hmcfgusb_init':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:330: undefined reference to `libusb_init'
hmcfgusb.o: In function `hmcfgusb_prepare_int':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:244: undefined reference to `libusb_alloc_transfer'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:251: undefined reference to `libusb_fill_interrupt_transfer'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:256: undefined reference to `libusb_submit_transfer'
hmcfgusb.o: In function `hmcfgusb_init':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:400: undefined reference to `libusb_get_pollfds'
hmcfgusb.o: In function `hmcfgusb_prepare_int':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:259: undefined reference to `libusb_free_transfer'
hmcfgusb.o: In function `hmcfgusb_init':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:425: undefined reference to `libusb_close'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:358: undefined reference to `libusb_close'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:374: undefined reference to `libusb_close'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:421: undefined reference to `libusb_cancel_transfer'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:422: undefined reference to `libusb_handle_events'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:403: undefined reference to `libusb_cancel_transfer'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:404: undefined reference to `libusb_handle_events'
hmcfgusb.o: In function `hmcfgusb_interrupt':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:301: undefined reference to `libusb_submit_transfer'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:310: undefined reference to `libusb_free_transfer'
/home/fhem/apps/hmcfgusb/hmcfgusb.c:310: undefined reference to `libusb_free_transfer'
hmcfgusb.o: In function `hmcfgusb_send_null_frame':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:186: undefined reference to `libusb_interrupt_transfer'
hmcfgusb.o: In function `hmcfgusb_send':
/home/fhem/apps/hmcfgusb/hmcfgusb.c:208: undefined reference to `libusb_interrupt_transfer'
<builtin>: recipe for target 'hmland' failed
gmake: *** [hmland] Error 1
Zitat von: vbs am 13 Dezember 2015, 15:55:07
Der Parameter heißt "-l<libname>". Wenn ich mich jetzt nicht völlig vertue, dann hängt der Linker auch noch selbständig das Präfix "lib" davor. [...] dann muss der Linker-Parameter "-lusb" sein.
Zitatpi@raspberrypi /opt/hmcfgusb $ service hmland stopversuche es mal so:
Failed to stop hmland.service: Access denied
Zitat von: Afterburner am 04 Januar 2016, 15:32:50
versuche es mal so:
sudo service hmland stop
Zitat von: Afterburner am 04 Januar 2016, 16:13:47
Also laut dem Screenshot hast Du ja nur die Datei runter geladen und nichts weiter gemacht ?!??!
Zitat von: Depechem am 04 Januar 2016, 16:16:52
Ich komm mit der Anleitung aus dem ersten post irgendwie nicht klar
Zitat von: Mr. P am 21 Januar 2015, 00:39:24
Hej Reiner,Falls du sonst nichts gemacht hast, befürchte ich, das dein Stick das Zeitliche gesegnet hat. Machen die Dinger leider sehr gerne... Ganz besonders beim Modus-Wechsel vom 10k- in den 100k-Modus, wenn man bei irgendeinem Device ein Firmwareupdate durchführt.
Die gute Nachricht ist, dass der Fehler bei sämtlichen Händlern bekannt ist und anstandslos getauscht wird.
Zitat von: Bennemannc am 12 Februar 2016, 12:14:22Ja, klar. Wenn jemand im FHEM-Forum genau weiss, wie das fuer WLAN-Sticks funktioniert, dann nehme ich auch das als Antwort. Allerdings gehe ich davon aus, dass das eher jemand fuer den hmland weiss.
ich vermute über Hersteller und Typ. Jedes USB Gerät hat ja eine Kennung - und die kann man auswerten. Du könntest auch fragen wie die Netzwerkstreiber den WLAN USB-Stick erkennen, und vor allem dann auch noch den richtigen Treiber für das Teil laden.
lpi@odroid-w:~$ lsusb
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wi
reless Adapter [Realtek RTL8188CUS]
Bus 001 Device 003: ID 1b1f:c00f
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Zitat von: Bennemannc am 13 Februar 2016, 01:18:49Du verwechselst da etwas. Der HMLAND geht auf Hersteller und ID - wenn Du das Teil in einen Rpi einsteckst und lsusb machst, siehst Du ein Gerät, bei dem nicht dahinter steht - es ist für Linux unbekannt. Dieses Gerät ist der HM-CFG-USB. Da steht ein 4 Stelliger Hersteller Code und ein 4 Stelliger Produkt CodeSo etwas in der Art hatte ich befürchtet. Der HM-CFG-USB ist anhand Hersteller- und Produktcode schon eindeutig zu identifizieren (zumindest solange man nur einen dranhängen hat). In meinem Fall hängt da ein generischer USB/Seriell-Wandler dran, der noch einen RS485-Treiber draufgesetzt hat. An den Codes kann man das Teil daher nicht von anderen seriellen Schnittstellen, wie z.B. durch das Modul ECMD benutzt, unterscheiden.
ZitatDas Problem mit den Stick ist ein anderes. Hier kommt es darauf an, welcher Stick sich als erstes meldet. Aber auch da gibt es eine Lösung. Suche mal nach udev - da kann man über Rules anhand der ID festlegen, welches Gerät welche tty bekommt.Ich glaube, dass der Punkt einfacher zu lösen ist. Man kann einfach die Links in /dev/serial/by-id verwenden. Die Sticks sind da als sowas wie folgt eingetragen:
Zitat von: Bennemannc am 13 Februar 2016, 22:07:30Hi,
warum sol das nicht gehen ?
Zitat von: Bennemannc am 19 Februar 2016, 22:38:18
Hallo,
dann mach doch mal das, was da steht "getConfig" - für die Steckdose. Da das Meldungen aus HMInfo kommen - lese doch auch das Thermostat mit "getConfig" aus und speichere die Temperatureinstellungen mit set HMINFO temListG save. Dann werde die Werte gespeicher und beim Vergleich stimmen diese dann auch.
Gruß Christoph
2016.02.22 00:00:52 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 00:00:52 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 00:00:52 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 00:01:56 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 00:01:56 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 00:01:57 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 00:06:10 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 00:06:10 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 00:06:10 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 00:07:14 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 00:07:14 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 00:07:15 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 00:37:56 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 00:37:56 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 00:37:56 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 00:39:02 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 00:39:02 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 00:39:06 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 00:43:20 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 00:43:20 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 00:43:20 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 00:43:22 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 00:43:22 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 00:43:24 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 00:55:32 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 00:55:33 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 00:55:33 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 00:56:37 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 00:56:37 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 00:56:39 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 00:57:31 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 00:57:31 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 00:57:31 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 00:57:34 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 00:57:34 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 00:57:36 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 01:24:08 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 01:24:08 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:24:08 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:24:13 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:24:13 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:24:17 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 01:35:19 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 01:35:19 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:35:19 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:36:25 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:36:25 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:36:26 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 01:37:47 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 01:37:47 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:47 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:49 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:49 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:49 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:49 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:49 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:49 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:49 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:49 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:49 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:49 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:49 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:49 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:50 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:50 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:50 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:50 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:50 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:50 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:50 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:50 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:50 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:50 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:51 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:51 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:51 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:51 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:51 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:51 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:51 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:51 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:51 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:52 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:52 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:52 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:52 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:52 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:52 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:52 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:52 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:52 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:37:52 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:37:52 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:37:52 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:37:57 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 01:43:47 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 01:43:47 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:43:47 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:43:48 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:43:48 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:43:48 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:43:48 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:43:49 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:43:49 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:43:49 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:43:49 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:43:49 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:43:49 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:43:49 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:43:49 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:43:49 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:43:49 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:43:49 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:43:49 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:43:49 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:43:49 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:43:50 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:43:50 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:43:50 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:43:50 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:43:52 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 01:50:10 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 01:50:10 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:50:10 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:50:11 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:50:11 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:50:13 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 01:52:20 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 01:52:20 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 01:52:20 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 01:52:21 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 01:52:21 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 01:52:23 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 02:09:11 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 02:09:11 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 02:09:11 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 02:10:17 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 02:10:17 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 02:10:18 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 02:11:37 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 02:11:37 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 02:11:37 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 02:12:42 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 02:12:42 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 02:12:43 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 02:16:57 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 02:16:57 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 02:16:57 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 02:18:01 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 02:18:01 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 02:18:03 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 02:22:21 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 02:22:21 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 02:22:21 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 02:23:26 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 02:23:26 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 02:23:27 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 02:49:53 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 02:49:53 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 02:49:53 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 02:50:57 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 02:50:57 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 02:50:58 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
2016.02.22 02:54:21 1: HMLAN_Parse: HMUSBRaspGarage new condition timeout
2016.02.22 02:54:21 1: 192.168.178.238:1000 disconnected, waiting to reappear (HMUSBRaspGarage)
2016.02.22 02:54:21 1: HMLAN_Parse: HMUSBRaspGarage new condition disconnected
2016.02.22 02:55:25 1: 192.168.178.238:1000 reappeared (HMUSBRaspGarage)
2016.02.22 02:55:25 1: HMLAN_Parse: HMUSBRaspGarage new condition init
2016.02.22 02:55:25 1: HMLAN_Parse: HMUSBRaspGarage new condition ok
Zitat von: Pythonf am 28 Februar 2016, 14:03:16Finde ich auch nicht (mehr).
Kann es sein, dass ELV den HM-CFG-USB aus dem Programm genommen hat? Bei EQ-3 ist er noch auf der Website gelistet.
Zitat
wir müssen Ihnen in diesem Fall leider mitteilen, dass es sich bei dem genannten Artikel um ein Handelswarenprodukt handelt.
Dieser Artikel wurde leider vom Hersteller abgekündigt.
Wir empfehlen Ihnen die HomeMatic CCU2 Zentrale zu verwenden.
Link: http://www.elv.de/homematic-zentrale-ccu-2.html
root@NUC:/home/fabian# /opt/hmcfgusb/hmland -p 1234
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
ZitatMeint ihr man kann den HM-CFG-USB noch irgendwie retten?er hat hier auf dem nuc also schon funktioniert.
ZitatKönnte es sich hierbei um den HM-CFG-USB handeln?
root@NUC:/home/fabian/Downloads# lsusb
Bus 003 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0480:a00c Toshiba America Info. Systems, Inc.
Bus 002 Device 002: ID 0bc2:ab24 Seagate RSS LLC
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0b05:17dc ASUSTek Computer, Inc.
Bus 001 Device 008: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 006: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 002: ID 2109:2812
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
BUS=002
DEV=002
VID=1b1f
PID=c00f
CLS=00
SCL=00
SPEED='full'
VER='1.1'
MANU='eQ-3'
PROD='HM-CFG-USB'
SNUM='KEQ1111271'
ISOC=0
INUM=1
ICLS1=03
ISCL1=00
Zitat von: hexenmeister am 11 August 2014, 16:28:16
oder mit dem Betriebsystem starten...
folgendes in eine script.sh schreiben, Rechte setzen (chmod a+x script.sh), (als root) ausführen, glücklich sein ;)
Wed May 11 09:26:44 2016: [hmland] chrt: failed to set pid 0's policy: Das Argument ist ungültig
Zitat von: Ralli am 27 Mai 2016, 07:49:23
Es hat jemand aber auch schon geschafft das kleine Funkmodul HM-MOD-RPI-PCB auf einem RPi als HM-LAN-GW zum Laufen zu bringen
Zitat von: betateilchen am 30 Mai 2016, 12:08:50
Wohin kann man spenden, um das zu unterstützen?
Zitat von: Ralli am 30 Mai 2016, 14:23:44
1) Analyse des Quellcodes von Homegear in Sachen Unterstützung des HM-MOD-RPI-PCB und in Zusammenhang mit dem hamlangw aus dem Thread vom Homematic-Forum einen (besseren) Dämon bauen - prädistiniert wären Sathya Laufer (Homegear) oder/und mgernoth (hmland)
2) Integration des HM-LAN-GW (und des emulierten HM-LAN-GW) in fhem - das kann m.E. sinnvollerweise nur Martin machen
Zitat von: mgernoth am 30 Mai 2016, 17:37:50
Die Frage ist eher: Was kann man spenden?
Und die Antwort ist: Zeit
Davon hab ich nämlich gerade keine...
Zitat von: betateilchen am 01 Juni 2016, 14:33:09
Wenn es mal etwas anderes gibt, wie man die Weiterentwicklung unterstützen kann, lass es uns wissen. Zeit läßt sich ziemlich schwierig verschicken.
Zitat
Aktuell habe ich persönlich noch keine Handlungsnot, ich habe noch fünf originalverpackte HM-USB auf Vorrat und in der Zeit, seit ich die Teile nutze, ist noch keines in einem Produktivsystem ausgefallen.
Zitat von: Fuchs am 01 Juni 2016, 15:05:57
Ich versuche 2 HM-CFG-USB-2 an einem System zum Laufen zu bringen. (Ausfallsicherheit an vccu )
Hat das schon mal jemand gemacht bzw hat Tips wie / ob das überhaupt funktioniert ?
Zitat von: mgernoth am 01 Juni 2016, 15:56:43
Das einzige was mir einfallen würde, habe ich aber schon rumfliegen: Einen RPi mit dem Aufsteckmodul
Zitat
Ja, funktioniert.
Du musst bei beiden hmlands die Option -S benutzen.
Viele Grüße
Michael
#!/bin/sh
# description: Start or stop the fhem server
# Added by Alex Peuchert
### BEGIN INIT INFO
# Provides: fhem.pl
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FHEM server
### END INIT INFO
set -e
cd /opt/fhem
port=7072
if test "$2" != "noaptmark"; then
apt-mark hold fhem > /dev/null
fi
case "$1" in
'start')cd
echo "Starting fhem..."
# if you need to start hmland for use with
# Homematic, please start the hmland daemon
# like this (please use correct path and port,
# depending on your installation!)
#
/opt/hmcfgusb/hmland -d -p 1234 -r 0
#
perl fhem.pl fhem.cfg
# if you want to use configDB for configuration,
# use this command to start fhem:
#
# perl fhem.pl configDB
#
# and remove/comment the above line including fhem.cfg
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
# if you want to stop hmland during fhem stop:
cd . pkill hmland
pkill -U fhem perl
RETVAL=$?
;;
'status')
cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "fhem is not running"
else
echo "fhem is running"
fi
;;
*)
echo "Usage: $0 { start | stop | status }"
RETVAL=1
;;
esac
exit $RETVAL
E: Unable to locate package fhem
E: No packages found
Zitat von: fast-eddy am 02 Juni 2016, 11:48:15
jetzt wo es den HM-CFG-USB wohl nicht mehr zu kaufen gibt.......
Zitat von: birdy am 02 Juni 2016, 23:15:41
Also ich habe mir Heute einen bestellt ;)
Zitat von: kumue am 02 Juni 2016, 23:19:26
Schreibst du auch wo ?
Habe bei ELV und Amazon nichts gefunden..
Thx
Zitat von: Ralli am 02 Juni 2016, 07:11:38
Und so wie ich Dich kennengelernt habe, braucht es jetzt nur mal einen richtigen Moment und schon hast Du an einem Tag eine erste Version fertig 8).
raspberrypi [~/hmcfgusb]> ./reset-hmmoduart.sh
raspberrypi [~/hmcfgusb]> ./hmsniff -U /dev/ttyAMA0
HM-MOD-UART opened!
LL NR FL CM sender recvr payload
2016-06-03 19:15:58.627: 1C 80 A4 40 1C0714 1F031B 0248 (Remote)
2016-06-03 19:15:58.758: 35 80 A0 02 1F031B 1C0714 04F3806E764B8B02 (AESrequest)
2016-06-03 19:15:58.892: 1D 80 A0 03 1C0714 1F031B 80E9FEE701D397448D3ABA0335D92FF2 (AESreply)
2016-06-03 19:15:59.010: 37 80 80 02 1F031B 1C0714 0101C8002E6CFA54D1 (ACKinfo)
^C
raspberrypi [~/hmcfgusb]> ./flash-ota -U /dev/ttyAMA0 -f HM-ES-PMSw1-Pl_update_V2_5_0009_150217.eq3 -C 68EA14 -D 38B631 -K 01:...
HomeMatic OTA flasher version 0.102-git
Reading firmware from HM-ES-PMSw1-Pl_update_V2_5_0009_150217.eq3...
Firmware with 389 blocks successfully read.
HM-MOD-UART firmware version: 1.2.3, used credits: 0%
HM-MOD-UART opened
Setting AES-key
Entering 10k-mode
Adding HMID
Sending device with hmid 38b631 to bootloader
Waiting for device with HMID 38b631
Device with serial MEQ0170806 (HMID: 38b631) entered firmware-update-mode
Adding HMID
Initiating remote switch to 100k
Entering 100k-mode
Has the device switched?
Yes!
Flashing 389 blocks: 0389/0389 -
Entering 10k-mode
Waiting for device to reboot
Device rebooted
Zitat... ich wußte es :)du weisst auch, wie man richtig motiviert. ;)
Zitat von: kumue am 02 Juni 2016, 23:19:26
Schreibst du auch wo ?
Habe bei ELV und Amazon nichts gefunden..
Thx
Zitat von: mgernoth am 03 Juni 2016, 20:20:15
Bisher geht nur Sniffen und OTA-Updates. Die Integration in Fhem ist noch mal ein (groesseres) Kapitel fuer sich.
Zitat von: kumue am 02 Juni 2016, 23:19:26
Schreibst du auch wo ?
Habe bei ELV und Amazon nichts gefunden..
Thx
Zitat von: Ralli am 04 Juni 2016, 13:11:58
Es interessiert mich einfach nur, welchen Weg er einschlagen möchte.
Zitat von: Ralli am 05 Juni 2016, 17:13:40
Das wäre sozusagen das "vollumfängliche" Gesamtpaket, die eierlegende Wollmilchsau ;D.
Zitat
Toll! Und danke - wenn Du einen Tester brauchst ... ;)
Zitat von: mgernoth am 07 Juni 2016, 22:49:44
https://github.com/stargo/HMUARTLGW (war zu faul bei mir ein eigenes temporaeres Repo einzurichten)
Zitat
Noch sehr in den Kinderschuhen, geht aber irgendwie.
Zitat von: berlineraxel am 08 Juni 2016, 00:11:17Was ist denn eigentlich der Vorteil gegenüber einem HMLAN? Macht es Sinn umzusteigen?machs wie ich: nix auswechseln, gemeinsam über ne vccu nutzen. quasi als gegenseitiges backupsystem, "reichweitenerhöhung", blaaa. findest hier ja genug drüber zu lesen
Zitat von: mgernoth am 07 Juni 2016, 22:49:44
https://github.com/stargo/HMUARTLGW (war zu faul bei mir ein eigenes temporaeres Repo einzurichten)
Noch sehr in den Kinderschuhen, geht aber irgendwie.
define <name> HMUARTLGW /path/to/port
Zitat von: Ralli am 10 Juni 2016, 13:57:22Code Auswählen
define <name> HMUARTLGW /path/to/port
Zitat10_CUL_HM.pm.diffnoch in die 110_CUL_HM.pm von Martin übernommen ?
Zitat von: mgernoth am 07 Juni 2016, 22:49:44
Noch sehr in den Kinderschuhen, geht aber irgendwie.
Zitat von: Ralli am 01 Juli 2015, 21:18:20Hallo Ralli,
... und hier bereits die für die Fritzboxen kompilierte Version ;)
Edit:
Vielleicht ist bei mir auch das absolut unerklärliche Verhalten mit zwei Rolladen-Aktoren damit behoben :). Die zwei funktionierten mit einem HM-USB zunächst tadellos und wollten dann irgendwann für wenige Stunden trotz guter RSSI nicht mehr - sie blieben immer bei dem Key-Request hängen. Irgendwann ging's dann wieder. Mit einem HM-LAN haben die direkt wieder zusammen gespielt.
Zitat von: Ralli am 02 Juli 2016, 23:13:07merci.
Bitteschön - aktuelle Version von gerade.
Zitat von: Ralli am 02 Juli 2016, 23:13:07Ich schließe mich dem Danke an!
Bitteschön - aktuelle Version von gerade.
Zitat von: Kautz8953 am 15 August 2016, 22:47:12Den kannst Du hier (https://forum.fhem.de/index.php/topic,56448.0.html) los werden, wenn Du magst? :-\
Leider ist bei mir mittlerweile einer der Sticks defekt, ich hoffe das Ihr länger Spaß damit habt .
Zitat von: Kautz8953 am 15 August 2016, 22:47:12
Ich habe mit dem Stick mittlerweile 3 systeme am Laufen. Eins mit:
2x HomeMatic 103020 Funk-Dimmaktor 1fach
1x HomeMatic 103038 Funk-Rollladenaktor
2x HomeMatic 091836 Funk-Schaltaktor 4fach
Das zweite:
1x HomeMatic 076794 Funk-Schaltaktor 2fach
1x HomeMatic 076793 Unterputzschalter, 1fach
2x HomeMatic 105155 Funk-Heizkörperthermostat
Das dritte:
4x HomeMatic 076794 Funk-Schaltaktor 2fach
14x HomeMatic 076793 Unterputzschalter, 1fach
8x HomeMatic 105155 Funk-Heizkörperthermostat
10x HomeMatic 103038 Funk-Rollladenaktor
Wenn die Aktoren mit Anlaufstrombegrenzern versehen sind alles super!
Als Fhem eingerichtet war habe ich es so gemacht:
SSH Zugriff mittels Putty auf den Raspberry, nach erfolgreicher anmeldung:
1. Installation
cd /opt/
sudo apt-get install build-essential libusb-1.0-0-dev make gcc git-core
sudo git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
sudo make
2. Berechtigungen setzen
sudo cp /opt/hmcfgusb/hmcfgusb.rules /etc/udev/rules.d/
3. Start befehl mittels Fhem Start script erteilen
sudo nano /etc/init.d/fhem
dort findet ihr
# /opt/hmcfgusb/hmland -d -p 1234 -r 0
# pkill hmland
bei beiden die # entfernen, mit STRG+O speichern, Enter zum bestätigen danach STRG+X und sudo reboot.
Sobald das system wieder hochgefahren ist könnt ihr unter FHEM mittels:
define <Name> HMLAN 127.0.0.1:1234
Dann sollte das Device angelegt sein, wollt ihr eure eigene ID verwenden könnt ihr alternativ noch mit dem Befehl:
attr <Name> hmid xxxxxx
Somit hat es bei mir auf anhieb reibungslos Funktioniert.
Leider ist bei mir mittlerweile einer der Sticks defekt, ich hoffe das Ihr länger Spaß damit habt .
Zitat von: Kautz8953 am 15 August 2016, 22:47:12
Ich habe mit dem Stick mittlerweile 3 systeme am Laufen. Eins mit:
2x HomeMatic 103020 Funk-Dimmaktor 1fach
1x HomeMatic 103038 Funk-Rollladenaktor
2x HomeMatic 091836 Funk-Schaltaktor 4fach
Das zweite:
1x HomeMatic 076794 Funk-Schaltaktor 2fach
1x HomeMatic 076793 Unterputzschalter, 1fach
2x HomeMatic 105155 Funk-Heizkörperthermostat
Das dritte:
4x HomeMatic 076794 Funk-Schaltaktor 2fach
14x HomeMatic 076793 Unterputzschalter, 1fach
8x HomeMatic 105155 Funk-Heizkörperthermostat
10x HomeMatic 103038 Funk-Rollladenaktor
Wenn die Aktoren mit Anlaufstrombegrenzern versehen sind alles super!
Als Fhem eingerichtet war habe ich es so gemacht:
SSH Zugriff mittels Putty auf den Raspberry, nach erfolgreicher anmeldung:
1. Installation
cd /opt/
sudo apt-get install build-essential libusb-1.0-0-dev make gcc git-core
sudo git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
sudo make
2. Berechtigungen setzen
sudo cp /opt/hmcfgusb/hmcfgusb.rules /etc/udev/rules.d/
3. Start befehl mittels Fhem Start script erteilen
sudo nano /etc/init.d/fhem
dort findet ihr
# /opt/hmcfgusb/hmland -d -p 1234 -r 0
# pkill hmland
bei beiden die # entfernen, mit STRG+O speichern, Enter zum bestätigen danach STRG+X und sudo reboot.
Sobald das system wieder hochgefahren ist könnt ihr unter FHEM mittels:
define <Name> HMLAN 127.0.0.1:1234
Dann sollte das Device angelegt sein, wollt ihr eure eigene ID verwenden könnt ihr alternativ noch mit dem Befehl:
attr <Name> hmid xxxxxx
Somit hat es bei mir auf anhieb reibungslos Funktioniert.
Leider ist bei mir mittlerweile einer der Sticks defekt, ich hoffe das Ihr länger Spaß damit habt .
root@proxmox:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 003: ID 046d:c05b Logitech, Inc. M-U0004 810-001317 [B110 Optical USB Mouse]
Bus 001 Device 007: ID 1b1f:c00f
Bus 001 Device 006: ID 0557:2419 ATEN International Co., Ltd
Bus 001 Device 005: ID 0557:7000 ATEN International Co., Ltd Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@proxmox:~# lsusb -D /dev/bus/usb/001/007
Device: ID 1b1f:c00f
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1b1f
idProduct 0xc00f
bcdDevice 9.67
iManufacturer 4 eQ-3
iProduct 14 HM-CFG-USB
iSerial 36 KEQ1111302
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 41
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 58 HID
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 33
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 32
Device Status: 0x0000
(Bus Powered)
root@proxmox:~#
root@proxmox:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 5: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 6: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 6: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 14: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
# rmmod cdc_acm
# modprobe cdc_acm
root@proxmox:~# dmesg
[ 1592.026372] usb 1-4: USB disconnect, device number 2
[ 1957.926172] usbcore: registered new interface driver usbserial
[ 1957.926182] usbcore: registered new interface driver usbserial_generic
[ 1957.926190] usbserial: USB Serial support registered for generic
[ 2295.673970] usbcore: registered new interface driver cdc_acm
[ 2295.673972] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 2304.268879] usb 1-4: new full-speed USB device number 7 using xhci_hcd
[ 2304.398852] usb 1-4: New USB device found, idVendor=1b1f, idProduct=c00f
[ 2304.398868] usb 1-4: New USB device strings: Mfr=4, Product=14, SerialNumber=36
[ 2304.398870] usb 1-4: Product: HM-CFG-USB
[ 2304.398871] usb 1-4: Manufacturer: eQ-3
[ 2304.398872] usb 1-4: SerialNumber: KEQ1111302
[ 2304.401183] hid-generic 0003:1B1F:C00F.0007: hiddev0,hidraw0: USB HID v1.10 Device [eQ-3 HM-CFG-USB] on usb-0000:00:14.0-4/input0
root@proxmox:~# ls /lib/modules/`uname -r`/kernel/drivers/usb/serial
aircable.ko io_ti.ko mxuport.ko ssu100.ko
ark3116.ko ipaq.ko navman.ko symbolserial.ko
belkin_sa.ko ipw.ko omninet.ko ti_usb_3410_5052.ko
ch341.ko ir-usb.ko opticon.ko usb_debug.ko
cp210x.ko iuu_phoenix.ko option.ko usbserial.ko
cyberjack.ko keyspan.ko oti6858.ko usb-serial-simple.ko
cypress_m8.ko keyspan_pda.ko pl2303.ko usb_wwan.ko
digi_acceleport.ko kl5kusb105.ko qcaux.ko visor.ko
empeg.ko kobil_sct.ko qcserial.ko whiteheat.ko
f81232.ko mct_u232.ko quatech2.ko wishbone-serial.ko
ftdi_sio.ko metro-usb.ko safe_serial.ko xsens_mt.ko
garmin_gps.ko mos7720.ko sierra.ko
io_edgeport.ko mos7840.ko spcp8x5.ko
root@proxmox:~# ls /lib/modules/`uname -r`/kernel/drivers/usb/class
cdc-acm.ko cdc-wdm.ko usblp.ko usbtmc.ko
2016.11.01 12:46:24 1: Including fhem.cfg
2016.11.01 12:46:24 3: telnetPort: port 7072 opened
2016.11.01 12:46:24 3: WEB: port 8083 opened
2016.11.01 12:46:24 3: WEBphone: port 8084 opened
2016.11.01 12:46:24 3: WEBtablet: port 8085 opened
2016.11.01 12:46:24 2: eventTypes: loaded 220 events from ./log/eventTypes.txt
2016.11.01 12:46:24 1: HMLAN_Parse: HMUSB new condition disconnected
2016.11.01 12:46:24 3: Opening HMUSB device 127.0.0.1:1234
2016.11.01 12:46:24 3: HMUSB device opened
2016.11.01 12:46:24 1: HMLAN_Parse: HMUSB new condition init
2016.11.01 12:46:24 3: Opening CUL0 device /dev/ttyACM0
2016.11.01 12:46:24 3: Can't open /dev/ttyACM0: No such file or directory
2016.11.01 12:46:24 2: Switched CUL0 rfmode to HomeMatic
2016.11.01 12:46:24 1: Including ./log/fhem.save
2016.11.01 12:46:24 3: Device HM_3D944E added to ActionDetector with 000:10 time
2016.11.01 12:46:24 3: Device HM_3D9466 added to ActionDetector with 000:10 time
2016.11.01 12:46:24 3: Device HM_3D9490 added to ActionDetector with 000:10 time
2016.11.01 12:46:24 3: Device HM_47D5B1 added to ActionDetector with 000:10 time
2016.11.01 12:46:24 3: Device HM_47FEC3 added to ActionDetector with 000:10 time
2016.11.01 12:46:24 3: Device HM_4A706E added to ActionDetector with 000:10 time
2016.11.01 12:46:24 3: Device HM_4A75C5 added to ActionDetector with 000:10 time
2016.11.01 12:46:24 1: usb create starting
2016.11.01 12:46:24 1: usb create end
2016.11.01 12:46:24 0: Featurelevel: 5.7
2016.11.01 12:46:24 0: Server started with 69 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 1164)
2016.11.01 12:46:24 1: HMLAN_Parse: HMUSB new condition ok
root@proxmox:/etc/udev/rules.d# nano 61-persistent-CUL868.rules
KERNEL=="ttyACM*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1f", ATTRS{idProduct}=="c00f", SYMLINK+="cul868", MODE="0666"
Zitat von: hoppel118 am 01 November 2016, 13:37:40
Allerdings fehlt mir das "/dev/ttyACM0".
ZitatCode Auswählenroot@proxmox:~# lsusb
Bus 001 Device 007: ID 1b1f:c00f
Bus 001 Device 007: ID 1b1f:c00f ist der CUL.
Zitat
Ist es normal das hier keine Hersteller-Bezeichnung angezeigt wird?
Zitat
|__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M ist der CUL. Ist es normal, dass hier usbhid als Treiber geladen wird?
Zitat
So sieht das FHEM-Logfile nach einem Bootvorgang aus:Code Auswählen2016.11.01 12:46:24 1: Including fhem.cfg
2016.11.01 12:46:24 1: HMLAN_Parse: HMUSB new condition disconnected
2016.11.01 12:46:24 3: Opening HMUSB device 127.0.0.1:1234
2016.11.01 12:46:24 3: HMUSB device opened
2016.11.01 12:46:24 1: HMLAN_Parse: HMUSB new condition init
ZitatCode Auswählen
2016.11.01 12:46:24 3: Opening CUL0 device /dev/ttyACM0
2016.11.01 12:46:24 3: Can't open /dev/ttyACM0: No such file or directory
2016.11.01 12:46:24 2: Switched CUL0 rfmode to HomeMatic
Zitat
Habt Ihr eine Idee, wie ich diesen TTY-Eintrag erhalte? Ohne den brauche ich mit der vCCU ja gar nicht weitermachen.
Zitat von: -Helge- am 21 Dezember 2016, 21:36:59
ich nutze einen alten Adapter (den mit Antenne) an einer Synology DS 212j mit DSM 6.0. FHEM Version ist die 5.7-mfr-20160330, hmland die 0.101-3. Der Adapter kommuniziert auf Port 4242, synousbmodem ist wegkopiert.
Der Adapter hängt sich permanent auf.
Zitat von: mgernoth am 22 Dezember 2016, 11:58:24Der HM-CFG-USB ist kein serielles Geraet und erzeugt kein /dev/ttyACM0.
Wo hast Du das mit dem Devicefile her, da gabs schon mehrere Leute, die das dachten? Irgendwo muss da im Internet eine Falschinformation stehen...
Zitat von: mgernoth am 22 Dezember 2016, 11:58:24Nein, das ist der HM-CFG-USB.
Zitat von: mgernoth am 22 Dezember 2016, 11:58:24Nein, das ist der HM-CFG-USB, und ja HID ist normal.
Zitat von: mgernoth am 22 Dezember 2016, 11:58:24Sieht doch gut aus.
Zitat von: mgernoth am 22 Dezember 2016, 11:58:24Was versuchst Du hier eigentlich zu tun? Wieso willst Du unbedingt ein zweites IO-Geraet mit /dev/ttyACM0 einbinden? Wenn ich das richtig sehe, hast Du doch nur einen Stick, und zwar einen HM-CFG-USB und keinen zusaetzlichen CUL?
Zitat von: mgernoth am 22 Dezember 2016, 11:58:24Der HM-CFG-USB ist kein CUL und erzeugt kein ttyACM*. Das hat aber mit einer VCCU nichts zu tun, die funktioniert trotzdem.
attr global userattr cmdIcon devStateIcon devStateStyle icon sortby webCmd widgetOverride
attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global motd none
attr global statefile ./log/fhem.save
attr global updateInBackground 1
attr global verbose 3
define telnetPort telnet 7072 global
attr telnetPort password xxxxxxxxxxx
define WEB FHEMWEB 8083 global
attr WEB group Thermostate
attr WEB sortRooms Bad Büro Flur Küche Schlafzimmer Wohnzimmer
define WEBphone FHEMWEB 8084 global
attr WEBphone hiddenroom CUL_HM,Unsorted
attr WEBphone stylesheetPrefix smallscreen
define WEBtablet FHEMWEB 8085 global
attr WEBtablet hiddenroom CUL_HM,Unsorted
attr WEBtablet stylesheetPrefix touchpad
# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log
define eventTypes eventTypes ./log/eventTypes.txt
# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create
#HM-Gateway
define HMUSB HMLAN 127.0.0.1:1234
attr HMUSB hmId 242424
attr HMUSB hmLanQlen 1_min
attr HMUSB loadLevel 0:low,40:batchLevel,90:high,99:suspended
define HM_47FEC3 CUL_HM 47FEC3
attr HM_47FEC3 IODev HMUSB
attr HM_47FEC3 actCycle 000:10
attr HM_47FEC3 actStatus unknown
attr HM_47FEC3 alias büro_thermostat
attr HM_47FEC3 autoReadReg 4_reqStatus
attr HM_47FEC3 expert 2_full
attr HM_47FEC3 firmware 1.4
attr HM_47FEC3 group Thermostate
attr HM_47FEC3 model HM-CC-RT-DN
attr HM_47FEC3 room Büro
attr HM_47FEC3 serialNr NEQ0313241
attr HM_47FEC3 subType thermostat
attr HM_47FEC3 webCmd getConfig:clear msgEvents:burstXmit
define FileLog_HM_47FEC3 FileLog ./log/HM_47FEC3-%Y.log HM_47FEC3
attr FileLog_HM_47FEC3 logtype text
attr FileLog_HM_47FEC3 room CUL_HM
define HM_47FEC3_Weather CUL_HM 47FEC301
attr HM_47FEC3_Weather model HM-CC-RT-DN
attr HM_47FEC3_Weather peerIDs 00000000,
define HM_47FEC3_Climate CUL_HM 47FEC302
attr HM_47FEC3_Climate model HM-CC-RT-DN
attr HM_47FEC3_Climate peerIDs 00000000,
define HM_47FEC3_WindowRec CUL_HM 47FEC303
attr HM_47FEC3_WindowRec model HM-CC-RT-DN
attr HM_47FEC3_WindowRec peerIDs 00000000,
attr HM_47FEC3_WindowRec stateFormat last:trigLast
define HM_47FEC3_Clima CUL_HM 47FEC304
attr HM_47FEC3_Clima model HM-CC-RT-DN
attr HM_47FEC3_Clima peerIDs 00000000,
define HM_47FEC3_ClimaTeam CUL_HM 47FEC305
attr HM_47FEC3_ClimaTeam model HM-CC-RT-DN
attr HM_47FEC3_ClimaTeam peerIDs 00000000,
define HM_47FEC3_remote CUL_HM 47FEC306
attr HM_47FEC3_remote model HM-CC-RT-DN
attr HM_47FEC3_remote peerIDs 00000000,
define ActionDetector CUL_HM 000000
attr ActionDetector event-on-change-reading .*
attr ActionDetector model ActionDetector
2016.12.22 18:59:03 0: Server shutdown
2016.12.22 18:59:20 1: Including fhem.cfg
2016.12.22 18:59:20 3: telnetPort: port 7072 opened
2016.12.22 18:59:20 3: WEB: port 8083 opened
2016.12.22 18:59:20 3: WEBphone: port 8084 opened
2016.12.22 18:59:20 3: WEBtablet: port 8085 opened
2016.12.22 18:59:20 2: eventTypes: loaded 205 events from ./log/eventTypes.txt
2016.12.22 18:59:20 1: HMLAN_Parse: HMUSB new condition disconnected
2016.12.22 18:59:20 3: Opening HMUSB device 127.0.0.1:1234
2016.12.22 18:59:20 3: HMUSB device opened
2016.12.22 18:59:20 1: HMLAN_Parse: HMUSB new condition init
2016.12.22 18:59:20 1: Including ./log/fhem.save
2016.12.22 18:59:20 3: Device HM_3D944E added to ActionDetector with 000:10 time
2016.12.22 18:59:20 3: Device HM_3D9466 added to ActionDetector with 000:10 time
2016.12.22 18:59:20 3: Device HM_3D9490 added to ActionDetector with 000:10 time
2016.12.22 18:59:20 3: Device HM_47D5B1 added to ActionDetector with 000:10 time
2016.12.22 18:59:20 3: Device HM_47FEC3 added to ActionDetector with 000:10 time
2016.12.22 18:59:20 3: Device HM_4A706E added to ActionDetector with 000:10 time
2016.12.22 18:59:20 3: Device HM_4A75C5 added to ActionDetector with 000:10 time
2016.12.22 18:59:20 1: usb create starting
2016.12.22 18:59:20 1: usb create end
2016.12.22 18:59:20 0: Featurelevel: 5.7
2016.12.22 18:59:20 0: Server started with 67 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 672)
2016.12.22 18:59:21 1: HMLAN_Parse: HMUSB new condition ok
Zitat von: mgernoth am 22 Dezember 2016, 11:58:24
Wie lautet die dazugehoerige Ausgabe des hmland?
Zitat von: hoppel118 am 22 Dezember 2016, 18:36:55
Nachdem ich die Anleitung abgearbeitet hatte und meine 7 Thermostate verbunden waren, war ich erstmal glücklich. Dann habe ich allerdings herausgefunden, dass ich auch eine VCCU benötige. Dafür habe ich hier im Wiki folgende Anleitung durchgearbeitet:
https://wiki.fhem.de/wiki/Virtueller_Controller_VCCU
define VCCU CUL_HM 242424
attr VCCU IOList HMUSB
attr VCCU model CCU-FHEM
attr VCCU subType virtual
attr VCCU webCmd virtual:update
Zitat von: -Helge- am 22 Dezember 2016, 21:07:13
Hmm. Richtig viel sagt er nicht:
2016-12-21 21:29:43.084314: Connection to 127.0.0.1 closed!
2016-12-21 21:29:44.098951: Client 127.0.0.1 connected!
Zitat von: mgernoth am 23 Dezember 2016, 11:11:00
Ah, ok. Du brauchst nicht unbedingt eine VCCU, aber sie ist sehr zu empfehlen.
In dem Beispiel gibt es zwei IOs einen HMLAN und einen CUL. Da Du nur einen HM-CFG-USB hast, kannst Du den CUL-Eintrag ignorieren.
Einfach nur die VCCU definieren und im Attribut IOList nur HMUSB angeben, also:Code Auswählen
define VCCU CUL_HM 242424
attr VCCU IOList HMUSB
attr VCCU model CCU-FHEM
attr VCCU subType virtual
attr VCCU webCmd virtual:update
Falls Du später mal zusätzliche IOs hast, dann dieses Attribut erweitern.
Zitat von: mgernoth am 23 Dezember 2016, 11:11:00
Hmm, welche Optionen hast Du angegeben? Kannst Du da bitte noch ein -D (für Debug) hinzufügen?
Als welcher Benutzer läuft der hmland? Taucht der Stick in lsusb auf, passen die Berechtigungen auf dem entsprechenden Gerät in /dev/bus/usb/...?
Viele Grüße
Michael
[0480:d010:20121223085135]
guid_0 = 201212230851350
interface_0 = sdq
[05dc:a833:AA88QC9NQJSG9639]
guid_0 = AA88QC9NQJSG96390
interface_0 = sdr
2017-01-02 00:53:51.407739: LAN < E2EA83D,0000,510231AA,FF,FFD3,07845E2EA83D000000B2A45F001B3A019C091E03
2017-01-02 00:53:51.407918: LAN < E2398B4,0000,5102C1B5,FF,FFCF,C286702398B400000000C031
2017-01-02 00:53:51.439477: LAN < I00,00,00,00
2017-01-02 00:53:51.439828: LAN > Y02,00,
2017-01-02 00:53:51.502220: LAN < I00,00,00,00
2017-01-02 00:53:51.502872: LAN > Y03,00,
2017-01-02 00:53:51.566210: LAN < I00,00,00,00
2017-01-02 00:53:51.566874: LAN > T1FFC44FF,04,00,00000000
2017-01-02 00:53:51.630937: LAN > S5C74205E,00,00000000,01,5C74205E,998112F10A16000000
2017-01-02 00:53:51.694216: LAN < R5C74205E,0002,00000000,FF,7FFF,998112F10A16000000
2017-01-02 00:54:16.081795: LAN > K
2017-01-02 00:54:16.142490: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,5103AA3D,0000
2017-01-02 00:54:41.091649: LAN > K
2017-01-02 00:54:41.134714: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51040BDF,0000
2017-01-02 00:55:06.121979: LAN > K
2017-01-02 00:55:06.159026: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51046DA0,0000
2017-01-02 00:55:20.751244: LAN < E2EA83D,0000,5104A69B,FF,FFD3,08845E2EA83D000000B2A47E001B4B019D091A03
2017-01-02 00:55:25.615271: LAN < E2398B4,0000,5104B9A6,FF,FFCF,C386702398B400000000C031
2017-01-02 00:55:31.132191: LAN > K
2017-01-02 00:55:31.183288: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,5104CF61,0000
2017-01-02 00:55:56.190854: LAN > K
2017-01-02 00:55:56.239643: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51053142,0000
2017-01-02 00:56:21.204102: LAN > K
2017-01-02 00:56:21.263806: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51059303,0000
2017-01-02 00:56:46.232707: LAN > K
2017-01-02 00:56:46.287910: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,5105F4C5,0000
2017-01-02 00:57:11.262937: LAN > K
2017-01-02 00:57:11.312147: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51065686,0000
2017-01-02 00:57:36.283213: LAN > K
2017-01-02 00:57:36.336299: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,5106B847,0000
2017-01-02 00:57:47.248409: LAN < E2EA83D,0000,5106E2E5,FF,FFD3,09845E2EA83D000000B2A49B001B5E01A5091A03
2017-01-02 00:58:01.303243: LAN > K
2017-01-02 00:58:01.360422: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51071A08,0000
2017-01-02 00:58:24.112696: LAN < E2398B4,0000,510772F4,FF,FFCF,C486702398B400000000C031
2017-01-02 00:58:26.313402: LAN > K
2017-01-02 00:58:26.352632: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51077BA9,0000
2017-01-02 00:58:51.343789: LAN > K
2017-01-02 00:58:51.376832: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,5107DD6A,0000
Zitat2017-01-02 00:55:06.159026: LAN < HHM-USB-IF,03BC,IEQ0435373,1781E7,F10A16,51046DA0,0000mit fw 0.967 sollte da 03C7 stehen. du hast also fw 0.956
Zitat von: hoppel118 am 31 Dezember 2016, 14:55:03
.........
LXC hatte diese Timing-Probleme bei mir nicht. LXC hat aber auch direkten Zugriff auf die Hardware. In der Config-Datei für den LXC-Container musste ich damals irgendwas konfigurieren, damit FHEM Zugriff auf den HM-CFG-USB bekommt. Kann ich aber gerade nicht mehr nachvollziehen, da ich den Container irgendwann gelöscht habe. Folgender Link hat mich zum Ziel geführt:
.............
Zitat von: NilsB am 10 Januar 2017, 23:39:35
Puh, extrem ärgerlich - danke für die unkomplizierte, prompte Antwort.
Ist denn aktuell irgendein sinnvolles Gateway erhältlich, was ich in meinem kleinen Anflug von Panik bestellen und horten kann?
Grüße
root@fhem:~# date
Sun Feb 26 11:44:13 CET 2017
2017.02.26 10:34:52 0: Server shutdown
2017.02.26 10:34:59 1: Including fhem.cfg
2017.02.26 10:34:59 3: telnetPort: port 7072 opened
2017.02.26 10:34:59 3: WEB: port 8083 opened
2017.02.26 10:34:59 3: WEBphone: port 8084 opened
2017.02.26 10:34:59 3: WEBtablet: port 8085 opened
2017.02.26 10:34:59 2: eventTypes: loaded 213 events from ./log/eventTypes.txt
2017.02.26 10:34:59 1: HMLAN_Parse: HMUSB new condition disconnected
2017.02.26 10:34:59 3: Opening HMUSB device 127.0.0.1:1234
2017.02.26 10:34:59 3: HMUSB device opened
2017.02.26 10:34:59 1: HMLAN_Parse: HMUSB new condition init
2017.02.26 10:34:59 1: Including ./log/fhem.save
2017.02.26 10:34:59 3: Device HM_3D944E added to ActionDetector with 000:10 time
2017.02.26 10:34:59 3: Device HM_3D9466 added to ActionDetector with 000:10 time
2017.02.26 10:34:59 3: Device HM_3D9490 added to ActionDetector with 000:10 time
2017.02.26 10:34:59 3: Device HM_47D5B1 added to ActionDetector with 000:10 time
2017.02.26 10:34:59 3: Device HM_47FEC3 added to ActionDetector with 000:10 time
2017.02.26 10:34:59 3: Device HM_4A706E added to ActionDetector with 000:10 time
2017.02.26 10:34:59 3: Device HM_4A75C5 added to ActionDetector with 000:10 time
2017.02.26 10:34:59 1: usb create starting
2017.02.26 10:34:59 1: usb create end
2017.02.26 10:34:59 0: Featurelevel: 5.7
2017.02.26 10:34:59 0: Server started with 68 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 904)
2017.02.26 10:35:00 1: HMLAN_Parse: HMUSB new condition ok
2017.02.26 10:43:38 3: CUL_HM set HM_3D944E sysTime
2017.02.26 10:44:24 3: CUL_HM set HM_3D9466 sysTime
2017.02.26 10:44:44 3: CUL_HM set HM_3D9490 sysTime
2017.02.26 10:45:19 3: CUL_HM set HM_47D5B1 sysTime
2017.02.26 10:45:36 3: CUL_HM set HM_47FEC3 sysTime
2017.02.26 10:45:54 3: CUL_HM set HM_4A706E sysTime
2017.02.26 10:46:07 3: CUL_HM set HM_4A75C5 sysTime
/opt/hmcfgusb/
/opt/hm/hmcfgusb/
Zitat von: Alchemi am 06 März 2017, 21:55:00
auch wenn die HM-CFG-USB's so langsam aussterben, aber bei der hmland 0.103-git ist ein kleiner Typo in Zeile 20
in der /opt/hmcfgusb/debian/hmland.init (wenn man nach WIKI vorgeht):
DAEMON=/opt/hm/hmcfgusb/$NAME # Introduce the server's location here
usb-transfer took more than 100ms (125ms), this may lead to timing problems!
Zitat von: heyphan am 08 August 2017, 11:04:23
Ich kenne in der Tat weder LXC
ZitatLinux Containers (LXC)
Ab Version 4.0 lösen Linux Containers (LXC) die bisher verwendeten OpenVZ-Container (bis Proxmox VE 3.4) ab. Bei einem Upgrade eines Proxmox-Clusters können die OpenVZ-Container zu LXC konvertiert werden.[3]
Mit dem Wechsel auf LXC kann Proxmox jetzt die aktuellen Linux-Kernels nutzen. Die komplette Integration von LXC in das Proxmox VE-Framework erlaubt ab Proxmox VE 4.x die Verwendung von LXC mit fast allen modernen Storage-Plugins wie Ceph, ZFS (Dateisystem), NFS (Network File System), DRBD9 oder lokalem Speicher.
ZitatEs soll möglich sein, so eine VM in Zukunft 1:1 auf eine neue Kiste zu übernehmen, ohne gross Arbeit reinzustecken.Und damit hast du natürlich den Nagel auf den Kopf getroffen, denn dies war auch mein Unterfangen :D ;)
ZitatAlso, viel Erfolg! Berichtet doch mal für welchen Weg ihr euch entschieden habt.
Zitat von: kennerblick am 23 Oktober 2017, 07:39:08Code Auswählen
root@raspi:~# strace -f /opt/hmcfgusb/hmland -p 1234 -D
...
bind(3, {sa_family=AF_INET, sin_port=htons(1234), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(3, 1) = 0
accept(3,
Zitat von: hanzoh am 16 November 2017, 06:54:53
hat schon jemand den neuen USB Stick für Homematic IP getestet?
Zitat
Der ist ja bereits vor einigen Monaten in Logs und Zulassungsunterlagen bei eq3 aufgetaucht,
Zitat
aber hier habe ich den jetzt zum ersten Mal zum kaufen gefunden:
https://www.smarthome.de/geraete/eq3-smarthome-funkstick-fuer-homematic-ip
Zitat von: mgernoth am 16 November 2017, 08:50:29
Hallo,
Soweit ich weiss, nicht. Hast Du einen? Als welches Gerät meldet es sich?
Mit viel Gück ist es ein HMUARTLGW hinter einem USB-Serialkonverter.
Hast Du hier Links dazu?
Na dann mal schauen, was die mir liefern...
Viele Grüße
Michael
Zitat von: moonsorrox am 16 November 2017, 08:54:35
Da es ja den älteren nicht mehr gibt wäre das eine Alternative..? Ich dachte immer Homematic IP Geräte kann man nicht einsetzen mit Fhem. Hat sich das geändert..?
Zitat von: hanzoh am 16 November 2017, 09:27:02
Bislang setze ich nur Z-Wave Geräte ein, bin aber sehr an einem Fenstergriffsensor interessiert:
https://www.amazon.de/dp/B01KPM3OJG/
Zitat
https://github.com/jens-maus/RaspberryMatic/commit/43e8e05de7b36e52bc85fa7ddf45bad85e472df7#diff-54a6737e1396a2733303c06f0aad9805
Zitat
Heute morgen habe ich zufällig noch einmal danach gesucht und ihn in dem Telekom Shop gefunden.
Zitat von: mgernoth am 16 November 2017, 09:44:06
Danke auf jeden Fall für die Links. Ich melde mich, wenn meiner geliefert wird und ob er nutzbar ist.
Zitat von: mgernoth am 18 November 2017, 11:00:16Hallo Michael
Hallo,
schlechte Nachrichten: Der Stick unterstützt _nur_ HmIP und lässt sich auch nicht mit der Firmware des HM-MOD-UART flashen (der Bootloader lehnt die neue Firmware ab) :-(
Viele Grüße
Michael
Zitat von: pc1246 am 19 November 2017, 14:47:30
Heisst das denn, dass HM-IP jetzt ein Stueck naeher an fhem gerueckt ist?
Zitat von: K-MEL am 26 Dezember 2017, 15:35:21
Gibt es hier schon was neues zum Thema HMIP Stick?
Lässt sich über diesen ein HM IP Gerät in FHEM einbinden?
Zitat von: mgernoth am 18 November 2017, 11:00:16Hallo Michael,
schlechte Nachrichten: Der Stick unterstützt _nur_ HmIP und lässt sich auch nicht mit der Firmware des HM-MOD-UART flashen (der Bootloader lehnt die neue Firmware ab) :-(
Zitat von: tom44 am 03 Januar 2018, 14:58:18
Hallo Michael,
Hast Du den weißen Stick der Telekom zerlegt? Ist das Foto dieser Stick?
Zitat
Der sieht aus, als ob es der "ELV Homematic Komplettbausatz Funkmodul für Raspberry Pi
https://www.elv.at/homematic-funkmodul-fuer-raspberry-pi-bausatz.html (https://www.elv.at/homematic-funkmodul-fuer-raspberry-pi-bausatz.html)
mit angelötetem USB- Anschluss?
Zitat
Kannst Du denn damit wenigstens die "alten" Homematic Dinge schalten oder hast Du das Geld damit zum Fenster rausgeschmissen?
Zitat von: Alchemi am 06 März 2017, 21:55:00Bin gerade selber über diese Falle gestolpert und habe dann hier die Lösung gefunden. Danke!
Hallo,
auch wenn die HM-CFG-USB's so langsam aussterben, aberbei der hmland 0.103-git ist ein kleiner Typo in Zeile 20wenn man der Anleitung des WIKI folgt, kompilliert man unter:
in der /opt/hmcfgusb/debian/hmland.init (wenn man nach WIKI vorgeht):Code Auswählen/opt/hmcfgusb/
Das zu kopierende init-Script /opt/hmcfgusb/debian/hmland.init erwartet den "Dienst" hmland in Zeile 20 aber unter:Code Auswählen/opt/hm/hmcfgusb/
Den Grund für letzters hat mgernoth in Antwort #1004 genannt.
Also einen(!) der Pfade entsprechend anpassen und alles klappt, wie beschrieben. :D
Gruß
Alchemi
2018-05-03 23:23:15.878818: Client 192.168.2.201 connected!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
2018-05-03 23:23:15.878914: Connection to 192.168.2.201 closed!
2018-05-03 23:23:16.879564: Client 192.168.2.201 connected!
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
2018-05-03 23:23:16.879664: Connection to 192.168.2.201 closed!
Zitat von: birdy am 07 Januar 2017, 17:48:23
Ich habe inzwischen meine FHEM Installation auf LXC Container umgestellt und das Timing-Problem ist damit behoben. Die Zeiten liegen damit zwischen 40 – 50ms und der HM-CFG-USB läuft somit wieder ohne Probleme. :)
lxc.mount.entry = /dev/usb dev/usb none bind,optional,create=dir
lxc.mount.entry = /dev/hidraw0 dev/hidraw0 none bind,optional,create=file
lxc.cgroup.devices.allow = c 238:* rwm
Zitat von: hoppel118 am 31 Dezember 2016, 14:55:03
LXC hatte diese Timing-Probleme bei mir nicht. LXC hat aber auch direkten Zugriff auf die Hardware. In der Config-Datei für den LXC-Container musste ich damals irgendwas konfigurieren, damit FHEM Zugriff auf den HM-CFG-USB bekommt. Kann ich aber gerade nicht mehr nachvollziehen, da ich den Container irgendwann gelöscht habe. Folgender Link hat mich zum Ziel geführt:
http://askubuntu.com/questions/545359/lxc-usb-device-passthrough
Zitat von: Spezialtrick am 31 Mai 2018, 22:15:15Wie hast du es implementiert, Hoppel118?
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/001 dev/bus/usb/001 none bind,optional,create=dir
# $Id: fhem.service 16001 2018-01-26 11:54:41Z betateilchen $
[Unit]
Description=FHEM Home Automation
Wants=network.target
After=network.target
[Service]
Type=forking
User=fhem
Group=dialout
WorkingDirectory=/opt/fhem
ExecStart=/usr/bin/perl fhem.pl fhem.cfg
#ExecStart=/usr/bin/perl fhem.pl configDB
Restart=always
[Install]
WantedBy=multi-user.target
# $Id: hmland.service 00001 2018-11-07 15:29:41Z jar $
[Unit]
Description=FHEM Home Automation hmland
Wants=network.target
Before=fhem.service
BindsTo=fhem.service
[Service]
Type=forking
User=fhem
Group=dialout
WorkingDirectory=/opt/fhem
ExecStart=/opt/hmcfgusb/hmland -d -p 1000
Restart=always
[Install]
WantedBy=multi-user.target
sudo chmod 775 hmland.service
$ sudo systemctl start hmland.service
$ sudo systemctl status hmland.service
● hmland.service - hmland
Loaded: loaded (/etc/systemd/system/hmland.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Wed 2018-11-07 21:15:51 CET; 35s ago
Process: 851 ExecStart=/opt/hmcfgusb/hmland -d -p 1000 (code=exited, status=0/SUCCESS)
Main PID: 835 (code=exited, status=1/FAILURE)
Nov 07 21:15:51 UJ1-Zentrale systemd[1]: Started hmland.
Nov 07 21:15:51 UJ1-Zentrale systemd[1]: hmland.service: Service hold-off time over, scheduling restart.
Nov 07 21:15:51 UJ1-Zentrale systemd[1]: Stopped hmland.
Nov 07 21:15:51 UJ1-Zentrale systemd[1]: hmland.service: Start request repeated too quickly.
Nov 07 21:15:51 UJ1-Zentrale systemd[1]: Failed to start hmland.
Nov 07 21:15:51 UJ1-Zentrale systemd[1]: hmland.service: Unit entered failed state.
Nov 07 21:15:51 UJ1-Zentrale systemd[1]: hmland.service: Failed with result 'start-limit-hit'.
2018.11.10 13:17:55 0: Server shutdown
2018.11.10 13:18:05 1: Including fhem.cfg
2018.11.10 13:18:06 2: eventTypes: loaded 2415 events from ./log/eventTypes.txt
2018.11.10 13:18:06 3: Opening CUL1 device /dev/ttyACM0
2018.11.10 13:18:06 3: Setting CUL1 serial parameters to 9600,8,N,1
2018.11.10 13:18:06 3: CUL1: Possible commands: ABbCeFGhiKkLlMmNRTtUuVWXxYZ
2018.11.10 13:18:06 3: CUL1 device opened
2018.11.10 13:18:06 1: HMLAN_Parse: hmusb new condition disconnected
2018.11.10 13:18:06 3: Opening hmusb device 127.0.0.1:1000
[b]2018.11.10 13:18:06 1: hmusb: Can't connect to 127.0.0.1:1000: Connection refused[/b]
2018.11.10 13:18:07 3: Opening myJeeLink device /dev/ttyUSB0
2018.11.10 13:18:07 3: Setting myJeeLink serial parameters to 57600,8,N,1
2018.11.10 13:18:08 3: myJeeLink device opened
2018.11.10 13:18:08 1: Including ./FHEM/it_devices.cfg
2018.11.10 13:18:08 1: Including ./FHEM/hm_unknown.cfg
2018.11.10 13:18:08 3: WEB: port 8083 opened
pi@fhemsrv:~ $
root@fhemsrv:/home/pi# /opt/hmcfgusb/hmland -p 1000 -D
2018-11-10 13:27:15.633952: Client 127.0.0.1 connected!
cd /etc/systemd/system
sudo vi hmland.service
# in diese Datei den folgenden Code kopieren:
[Unit]
Description=Homematic LAN Adapter service
After=network.target
[Service]
ExecStart=/opt/hmcfgusb/hmland -p 1000
[Install]
WantedBy=multi-user.target
Zitat von: ujaudio am 10 November 2018, 14:33:11
Hinweis 2: Ab FHEM-Version 5.9 gibt es die Datei /etc/init.d/fhem nicht mehr. Stattdessen muss im Raspberry ein "service" installiert werden:
Zitat von: marvin78 am 14 November 2018, 09:15:41
Wie kommst du denn darauf, dass das irgendwas mit fhem und der Version zu tun hat?
Zitathmusb: Unknown code A0F30861064E8790000000A8CAE111900::-99:hmusb, help me!
Zitat von: Aerics am 21 November 2018, 20:04:08
Seit ein paar Tagen bekomme ich folgende Meldung immer mal wieder über den Tag verteilt:
Ist immer der gleiche Code.
Habe eigentlich nichts geändert. Jemand ne Idee was der Auslöser sein könnte bzw. wie ich dies beheben kann?
Zitat
Messages collected while initializing FHEM:
configfile: HMLAN2: unknown attribute hmId. Type 'attr HMLAN2 ?' for a detailed list.
Autosave deactivated
Zitat von: holzwurm83 am 10 Januar 2019, 23:32:08Moin
Hallo zusammen, ich habe schon eine ganze Weile zwei Aktoren am laufen. Vor zwei Wochen hatte ich einen Stromausfall und danach waren die Peerings weg. Habe nichts weiter dabei gedacht und sie wieder eingerichtet.
Heute war wieder kurz der Strom weg und jetzt sind wieder die Peerings weg!
Hat jemand eine Ahnung warum?
root@homeserver:~# usb-devices
T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=1b1f ProdID=c00f Rev=09.67
S: Manufacturer=eQ-3
S: Product=HM-CFG-USB
S: SerialNumber=MEQxxxxxx
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
2019.10.12 17:22:18.422 1: 127.0.0.1:1000 disconnected, waiting to reappear (OG.ze.SE.HomematicRF)
2019.10.12 17:22:18.525 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition disconnected
2019.10.12 17:22:21.087 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2019.10.12 17:22:21.439 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
2019.10.12 17:22:23.398 1: 127.0.0.1:1000 disconnected, waiting to reappear (OG.ze.SE.HomematicRF)
2019.10.12 17:22:23.516 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition disconnected
2019.10.12 17:22:24.606 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2019.10.12 17:22:24.778 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
2019.10.12 17:22:26.768 1: 127.0.0.1:1000 disconnected, waiting to reappear (OG.ze.SE.HomematicRF)
2019.10.12 17:22:26.859 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition disconnected
2019.10.12 17:22:28.008 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2019.10.12 17:22:28.190 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
2019.10.12 17:22:28.552 1: 127.0.0.1:1000 disconnected, waiting to reappear (OG.ze.SE.HomematicRF)
2019.10.12 17:22:28.643 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition disconnected
2019.10.12 17:22:29.279 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2019.10.12 17:22:29.424 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
2019.10.12 17:22:30.131 1: 127.0.0.1:1000 disconnected, waiting to reappear (OG.ze.SE.HomematicRF)
2019.10.12 17:22:30.247 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition disconnected
2019.10.12 17:22:33.239 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2019.10.12 17:22:33.413 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
2019.10.12 17:22:34.678 1: 127.0.0.1:1000 disconnected, waiting to reappear (OG.ze.SE.HomematicRF)
2019.10.12 17:22:34.908 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition disconnected
2019.10.12 17:22:36.936 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2019.10.12 17:22:37.321 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
2019.10.12 17:22:37.993 1: 127.0.0.1:1000 disconnected, waiting to reappear (OG.ze.SE.HomematicRF)
2019.10.12 17:22:38.234 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition disconnected
2019.10.12 17:22:42.056 1: HMLAN_Parse: OG.ze.SE.HomematicRF new condition init
2019.10.12 17:22:42.234 1: 127.0.0.1:1000 reappeared (OG.ze.SE.HomematicRF)
Sun Oct 13 21:22:32 2019: [hmland] Can't find/open HM-CFG-USB!
Sun Oct 13 21:22:32 2019: [hmland] Can't initialize HM-CFG-USB!
Sun Oct 13 21:22:35 2019: [hmland] Can't find/open HM-CFG-USB!
Sun Oct 13 21:22:35 2019: [hmland] Can't initialize HM-CFG-USB!
Sun Oct 13 21:22:36 2019: [hmland] Can't find/open HM-CFG-USB!
Sun Oct 13 21:22:36 2019: [hmland] Can't initialize HM-CFG-USB!
Sun Oct 13 21:22:37 2019: [hmland] Can't find/open HM-CFG-USB!
Sun Oct 13 21:22:37 2019: [hmland] Can't initialize HM-CFG-USB!
Sun Oct 13 21:22:40 2019: [hmland] Can't find/open HM-CFG-USB!
Sun Oct 13 21:22:40 2019: [hmland] Can't initialize HM-CFG-USB!
Zitat von: Bartimaus am 13 Oktober 2019, 22:05:16Meinst du mich? Ich verstehe den Zusammenhang gerade nicht...
Moin,
guggst Du mal:
https://wiki.fhem.de/wiki/Benutzer:Benheim/Startscript_systemd
https://forum.fhem.de/index.php/topic,54271.msg596902.html#msg596902
Zitat von: volschin am 14 Oktober 2019, 09:09:05Nein, ich habe am Netzwerk nichts geändert, hatte aber den Netzwerkstecker einer SqueezeBox kurz gezogen, womit FHEM aus irgendeinem Grund nicht klar kam. Änderungen gab es aber keine...
Bevor Du uns rumrätseln lässt. Du hast Änderungen am Netzwerk gemacht. Danach geht was nicht mehr. Schlussfolgerung: es liegt vermutlich an Deinen Änderungen. Aber wenn Du nicht beschreibst, was Du geändert hast, wird Dir vermutlich niemand helfen können.
ps -elf |grep hmland
Zitat von: volschin am 08 Dezember 2019, 17:44:04
Ja, eine VCCU kannst Du so einrichten. Die Kommuniziert deshalb aber noch nicht mit Deinen HMIP Devices. Darüber lassen sich lediglich z.B. Mehrere HMUSB zusammenschalten und die Kommunikation der Geräte hat ein Failover oder kommuniziert mit dem HMUSB mit der besten Verbindung.
ZitatZur Einbindung von Geräten, die HM-IP verwenden, ist derzeit (Stand Januar 2019) noch zwingend eine (ggf. virtualisierte) CCU2 oder neuer erforderlich.
Zitat von: volschin am 08 Dezember 2019, 18:50:56
Eine VCCU ist aber keine virtualisierte CCU2. Dazu brauchst Du schon noch einen RaspberryMatic oder vergleichbares als Docker Image.
ZitatEine Virtuelle CCU, auch VCCU genannt, ist eine Zentrale für HomeMatic-Geräte.
Zitat von: Andy_C am 06 Juni 2020, 00:30:21
Nach update von meiner Uralt-Version von hmland zeigt er mir den Stick wenn ich ihn abstecke (Simulation offline, da habe ich ein Notify mit Mail an mich drauf) immer wechselnd als online/offline an. In der Hmlog versucht hmland den Stick mit der entsprechenden Serial xxx zu finden. Ist das so gewollt, habe ich da was falsch konfiguriert oder lässt sich das durch die Suche nach dem USB vom hmland-Dämon nicht ändern?
* hmland.service - Homematic LAN Adapter service
Loaded: loaded (/etc/systemd/system/hmland.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-07-01 21:06:27 CEST; 17min ago
Main PID: 106 (hmland)
Tasks: 2 (limit: 4915)
Memory: 1012.0K
CGroup: /system.slice/hmland.service
`-106 /opt/hmcfgusb/hmland -p 1234
Jul 01 21:24:00 FHEM hmland[106]: Can't find/open HM-CFG-USB!
Jul 01 21:24:00 FHEM hmland[106]: Can't initialize HM-CFG-USB!
Jul 01 21:24:01 FHEM hmland[106]: Can't find/open HM-CFG-USB!
Jul 01 21:24:01 FHEM hmland[106]: Can't initialize HM-CFG-USB!
Jul 01 21:24:02 FHEM hmland[106]: Can't find/open HM-CFG-USB!
Jul 01 21:24:02 FHEM hmland[106]: Can't initialize HM-CFG-USB!
Jul 01 21:24:03 FHEM hmland[106]: Can't find/open HM-CFG-USB!
Jul 01 21:24:03 FHEM hmland[106]: Can't initialize HM-CFG-USB!
Jul 01 21:24:04 FHEM hmland[106]: Can't find/open HM-CFG-USB!
Jul 01 21:24:04 FHEM hmland[106]: Can't initialize HM-CFG-USB!
Bus 002 Device 002: ID 8087:8001 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:0a2a Intel Corp.
Bus 001 Device 004: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 003: ID 1b1f:c00f eQ-3 Entwicklung GmbH HM-CFG-USB/HM-CFG-USB-2 [HomeMatic Configuration adapter]
Bus 001 Device 002: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Internals:
DEF 127.0.0.1:1234
DeviceName 127.0.0.1:1234
FD 98
FUUID 5d0d514e-f33f-f4b3-0e67-0cc2dc7c048bb8ea
NAME hmusb
NR 99
NTFY_ORDER 50-hmusb
PARTIAL
STATE opened
TYPE HMLAN
XmitOpen 0
assignedIDsCnt 9 report:0
msgKeepAlive dlyMax:0 bufferMin:28
msgLoadCurrent 0
owner
owner_CCU VCCU
READINGS:
2021-05-24 20:48:46 D-HMIdAssigned 170272
2021-05-24 20:48:46 D-HMIdOriginal 3730F3
2021-05-24 20:48:46 D-firmware 0.967
2021-05-24 20:48:46 D-serialNr MEQ0231843
2021-07-01 22:08:26 Xmit-Events disconnected:2699 init:2699
2021-07-01 22:08:26 cond init
2021-06-20 23:15:59 loadLvl low
2017-01-09 00:13:19 prot_ERROR-Overload last
2017-01-19 22:58:36 prot_Warning-HighLoad last
2021-07-01 22:08:26 prot_disconnected last
2021-07-01 22:08:26 prot_init last
2021-05-24 20:48:46 prot_ok last
2021-07-01 22:08:26 state opened
helper:
assIdCnt 9
assIdRep 0
setTime 49596
cnd:
253 2699
255 2699
ids:
0E4487:
cfg +0E4487,00,01,00
name HM_0E4487
15958E:
cfg +15958E,00,01,00
name HM_15958E
1BBD52:
cfg +1BBD52,00,01,00
name HM_1BBD52
30634D:
cfg +30634D,01,01,00
name HM_30634D
3A8ED3:
cfg +3A8ED3,01,01,0E
name HM_FM_Sensor
40A3B0:
cfg +40A3B0,00,01,00
name HM_40A3B0
46A583:
cfg +46A583,01,01,02
name RauchSireneAusloeser
4EB293:
cfg +4EB293,00,01,00
name HM_4EB293
4F0507:
cfg +4F0507,00,01,00
name LED_Strahler
k:
BufMin 28
DlyMax 0
Next 1625170131.12577
Start 1625170106.12577
loadLvl:
bl 40
a:
99
90
40
0
h:
0 low
40 batchLevel
90 high
99 suspended
log:
all 0
sys 0
ids:
ARRAY(0x558227cec570)
q:
HMcndN 255
answerPend 0
hmLanQlen 1
keepAliveRec 1
keepAliveRpt 0
loadLastMax 0
loadNo 0
scnt 9
ald:
0
0
0
0
0
0
0
0
0
0
0
0
apIDs:
Attributes:
event-on-change-reading .*
hmId 170272
hmLanQlen 1_min
loadLevel 0:low,40:batchLevel,90:high,99:suspended
room CUL_HM
Bus 002 Device 011: ID 1b1f:c00f eQ-3 Entwicklung GmbH HM-CFG-USB/HM-CFG-USB-2 [HomeMatic Configuration adapter]
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/002/011 dev/bus/usb/002/011 none bind,optional,create=file
Can't open device: Input/output error
Can't find/open HM-CFG-USB!
Can't initialize HM-CFG-USB!
lxc.cgroup.devices.allow= c 189:* rwm
lxc.mount.entry= /dev/bus/usb/002/011 dev/bus/usb/002/011 none bind,optional,create=file
lxc.cgroup.devices.allow: c 189:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
Zitat von: tndx am 20 Oktober 2022, 19:40:28
Doch, aber nicht mit FHEM.
Das käme in Frage:
https://wiki.fhem.de/wiki/HM-MOD-RPI-PCB_HomeMatic_Funkmodul_f%C3%BCr_Raspberry_Pi#Anbindung_mit_USB-Adapter (https://wiki.fhem.de/wiki/HM-MOD-RPI-PCB_HomeMatic_Funkmodul_f%C3%BCr_Raspberry_Pi#Anbindung_mit_USB-Adapter)
HMLAND brauchst du dann auch nicht mehr, die Neueinrichtung mit VCCU ist schnell gemacht.
Zitat von: FHEMAN am 21 Oktober 2022, 10:20:36von wem denn?
Bekomme ich den "HM-MOD-RPI-PCB mit USB Adapter" auch ohne Fhem zum Laufen, auf Basis eines Debian Linux? Und dann via Netzwerk ansprechbar?
Zitat von: frank am 21 Oktober 2022, 13:24:52Von der Fhem Instanz, die irgendwo im Netzwerk hängt. Ich möchte wieder 2 Gateways parallel betreiben - 1 direkt, 1 im LAN. Ottos beschriebene 3. Variante ser2net scheint die Lösung zu sein.
von wem denn?
Zitat von: Otto123 am 21 Oktober 2022, 12:07:50Diese Variante läuft jetzt bei mir.
Du kannst die genannte USB Kombi an jeden beliebigen Linux PC stecken und die Verbindung über ser2net zum FHEM PC machen.
Es stehen aber alle diese Varianten exakt erklärt in dem Wiki Artikel?
ls /dev/serial/by-id
4000:raw:0:/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:115200 NONE 1STOPBIT 8DATABITS HANGUP_WHEN_DONE
Zitat von: blackbite am 07 November 2023, 13:51:23mit dem Script vom Hexenmeister in Post #449 (https://forum.fhem.de/index.php?topic=13071.msg190887#msg190887) verwenden kannDas war 2014 :) wie alt ist Dein Betriebssystem?
Zitat von: Otto123 am 07 November 2023, 18:01:16;) Sehr alt und ich will bald mal alles auf aktuellen Stand bringen. Im Moment fehlt mir aber die Zeit (3 kleine Kinder + Vater Pflegefall...). Ich bin also tatsächlich noch mit init.d unterwegs und wäre sehr dankbar, wenn jemand sich trotzdem erbarmt, die ein oder zwei Codezeilen im alten Script für mich kommentieren kann.Zitat von: blackbite am 07 November 2023, 13:51:23mit dem Script vom Hexenmeister in Post #449 (https://forum.fhem.de/index.php?topic=13071.msg190887#msg190887) verwenden kannDas war 2014 :) wie alt ist Dein Betriebssystem?
#!/bin/sh
# simple init for hmland
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start hmland daemon at boot time
# Description: Provide Service to use HM-USB-CFG Adapter for FHEM.
### END INIT INFO
pidfile=/var/run/hmland.pid
port1=1234
port2=4321
case "$1" in
start|"")
chrt 30 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port1 -S MEQXXXXXX1 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland1.log &
chrt 30 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port2 -S MEQXXXXXX2 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland2.log &
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
EOF
sudo chmod 755 /etc/init.d/hmland
sudo update-rc.d hmland defaults
sudo service hmland start
Zitat von: blackbite am 08 November 2023, 12:05:04Sehr altDann als erstes welche Version?:
/opt/hmcfgusb/hmland -V
Hat der die Option -S denn schon?/opt/hmcfgusb/hmland -h
Zitat von: Otto123 am 08 November 2023, 14:47:19Zitat von: blackbite am 08 November 2023, 12:05:04Sehr altDann als erstes welche Version?:Code Auswählen/opt/hmcfgusb/hmland -V
--> 0.103-git
Hat der die Option -S denn schon?Code Auswählen/opt/hmcfgusb/hmland -h
--> ja, hab mir die aktuelle Version extra deswegen kompiliert
port1=1234
port2=4321
/opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port1 -S MEQXXXXXX1
/opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port2 -S MEQXXXXXX2