54 Commits

Author SHA1 Message Date
mgernoth
cc53df1c24 00_HMUARTLGW.pm: fix dummy, delay init and improve re-connect behaviour
git-svn-id: https://svn.fhem.de/fhem/trunk@18838 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2019-03-09 20:40:14 +00:00
mgernoth
0e8fa22250 00_HMUARTLGW.pm: explicitly call Digest::MD5::md5 when setting hmKey
Probably fixes forum #84339


git-svn-id: https://svn.fhem.de/fhem/trunk@16166 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2018-02-13 19:52:08 +00:00
mgernoth
e2b290c02d 00_HMUARTLGW.pm: minimize keepAlive sub-device
git-svn-id: https://svn.fhem.de/fhem/trunk@15596 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-12-12 14:05:48 +00:00
mgernoth
fc32a83abe 00_HMUARTLGW.pm: move Clients and MatchList from module to device-hash
The keepAlive-device should never be assigned as an IO, so put the
related attributes only in the device-hash of real IOs and not the
global hash of this module.


git-svn-id: https://svn.fhem.de/fhem/trunk@15595 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-12-12 13:43:01 +00:00
mgernoth
98cf490dfd 00_HMUARTLGW.pm: increase default log-level of removal-failed messages
This is needed because r15366 seems to unconditionally remove peers from
IOs.


git-svn-id: https://svn.fhem.de/fhem/trunk@15383 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-11-03 08:11:29 +00:00
mgernoth
3ed38ac5ec 00_HMUARTLGW.pm: add loadEvents attr and fix usage of InternalTimer
git-svn-id: https://svn.fhem.de/fhem/trunk@15268 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-10-16 16:08:20 +00:00
mgernoth
72fbadc428 00_HMUARTLGW.pm: check if LastSendLen is defined before using it
git-svn-id: https://svn.fhem.de/fhem/trunk@14899 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-08-14 16:49:04 +00:00
mgernoth
1056285f4c 00_HMUARTLGW.pm: fix errors on rename, add model
git-svn-id: https://svn.fhem.de/fhem/trunk@14875 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-08-11 09:53:02 +00:00
mgernoth
e5e6ee9bb3 00_HMUARTLGW.pm: check if FD is defined before using it
git-svn-id: https://svn.fhem.de/fhem/trunk@14240 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-05-10 09:27:09 +00:00
mgernoth
5da9bffee6 00_HMUARTLGW.pm: close device even if it is only in the readylist
git-svn-id: https://svn.fhem.de/fhem/trunk@14239 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-05-10 07:04:49 +00:00
mgernoth
0c13874954 00_HMUARTLGW.pm: change qLen default, update documentation
git-svn-id: https://svn.fhem.de/fhem/trunk@13655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-03-09 09:24:29 +00:00
mgernoth
dfce24b7d2 00_HMUARTLGW.pm: change log-level for message caused by firmware quirk
git-svn-id: https://svn.fhem.de/fhem/trunk@13654 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-03-09 09:13:15 +00:00
mgernoth
1354308564 00_HMUARTLGW.pm: check for outdated firmware
git-svn-id: https://svn.fhem.de/fhem/trunk@13641 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-03-08 16:10:09 +00:00
mgernoth
938b7fe863 00_HMUARTLGW.pm: send IO to bootloader on shutdown
This prevents the IO from answering requests from devices (AES/ACK)
if Fhem is shutdown.


git-svn-id: https://svn.fhem.de/fhem/trunk@13573 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-03-02 09:18:47 +00:00
mgernoth
8be901471b 00_HMUARTLGW.pm: add minimal support for DualCoPro-firmware
This only allows flashing back from the unsupported DualCoPro-firmware
to the supported HM-only firmware. The DualCoPro-firmware needs a
patched serial-driver in the kernel to meet HM timing requirements
so support for this version is unlikely.


git-svn-id: https://svn.fhem.de/fhem/trunk@13367 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-02-08 23:13:31 +00:00
mgernoth
c8dc84ec8d 00_HMUARTLGW.pm: use "state"-reading instead of $hash->{STATE}
git-svn-id: https://svn.fhem.de/fhem/trunk@13312 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-02-02 21:37:19 +00:00
mgernoth
7c33fcb76c 00_HMUARTLGW.pm: deactivate firmware on close/dummy
git-svn-id: https://svn.fhem.de/fhem/trunk@13148 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-01-19 23:07:43 +00:00
mgernoth
a617157f3b 00_HMUARTLGW.pm: add german documentation
git-svn-id: https://svn.fhem.de/fhem/trunk@13130 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-01-17 22:54:54 +00:00
mgernoth
1e3e7f2c7f 00_HMUARTLGW.pm: hide crypto state from list (to keep it in binary)
git-svn-id: https://svn.fhem.de/fhem/trunk@13129 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-01-17 21:55:44 +00:00
mgernoth
709fcecd68 00_HMUARTLGW.pm: don't hide key-id in log
git-svn-id: https://svn.fhem.de/fhem/trunk@12868 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-12-23 11:51:19 +00:00
mgernoth
f8f70044dc 00_HMUARTLGW.pm: fix wrong format in log message
git-svn-id: https://svn.fhem.de/fhem/trunk@12867 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-12-23 10:16:30 +00:00
mgernoth
5cae76aadc 00_HMUARTLGW.pm: cleanup assigned peer handling, fix XmitOpen on reopen
git-svn-id: https://svn.fhem.de/fhem/trunk@12832 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-12-19 17:51:23 +00:00
mgernoth
dce548dfe4 00_HMUARTLGW.pm: don't try to send when device is not initialized
git-svn-id: https://svn.fhem.de/fhem/trunk@12664 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-11-26 19:48:44 +00:00
mgernoth
dad76ceb7d 00_HMUARTLGW.pm: remove dutyCycle-warning for now
git-svn-id: https://svn.fhem.de/fhem/trunk@12638 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-11-23 17:29:07 +00:00
mgernoth
e0e92e6fa0 00_HMUARTLGW.pm: correctly add peer on send, add dutyCycle-warning
git-svn-id: https://svn.fhem.de/fhem/trunk@12636 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-11-23 12:50:57 +00:00
mgernoth
21e2f35bff 00_HMUARTLGW.pm: more log improvements
git-svn-id: https://svn.fhem.de/fhem/trunk@12606 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-11-20 10:41:00 +00:00
mgernoth
cc7d6302fd 00_HMUARTLGW.pm: improve logging a bit
git-svn-id: https://svn.fhem.de/fhem/trunk@12605 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-11-20 10:30:41 +00:00
mgernoth
a08b6a162e 00_HMUARTLGW.pm: improve support for old perl versions
git-svn-id: https://svn.fhem.de/fhem/trunk@12433 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-26 08:36:40 +00:00
mgernoth
635992b2e2 00_HMUARTLGW.pm: add dummy attribute
git-svn-id: https://svn.fhem.de/fhem/trunk@12359 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-17 08:46:50 +00:00
mgernoth
fc7cef4bf2 00_HMUARTLGW: resend cleanup
git-svn-id: https://svn.fhem.de/fhem/trunk@12271 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-04 10:07:03 +00:00
mgernoth
daa773baf8 00_HMUARTLGW.pm: fix resend
git-svn-id: https://svn.fhem.de/fhem/trunk@12270 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-04 07:01:20 +00:00
mgernoth
7820cc438f 00_HMUARTLGW.pm: try resending some commands if device does not ack
git-svn-id: https://svn.fhem.de/fhem/trunk@12269 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-03 21:00:16 +00:00
mgernoth
00d5fab76c 00_HMUARTLGW: fix peer handling
git-svn-id: https://svn.fhem.de/fhem/trunk@12253 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-03 10:53:35 +00:00
mgernoth
7a4168b8e8 00_HMUARTLGW: reboot module on connect, simplify peer handling
git-svn-id: https://svn.fhem.de/fhem/trunk@12252 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-03 10:39:06 +00:00
mgernoth
b8ce23d203 00_HMUARTLGW.pm: do not log secret key when logging raw messages
git-svn-id: https://svn.fhem.de/fhem/trunk@12227 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-10-01 13:46:40 +00:00
mgernoth
5e2881e63e 00_HMUARTLGW.pm: clarify error-messages
git-svn-id: https://svn.fhem.de/fhem/trunk@12186 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-20 14:12:20 +00:00
mgernoth
712991462c 00_HMUARTLGW.pm: fix string comparison
git-svn-id: https://svn.fhem.de/fhem/trunk@12185 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-20 13:57:00 +00:00
mgernoth
f828abd792 00_HMUARTLGW.pm: propagate verbose attribute to keepAlive-device
git-svn-id: https://svn.fhem.de/fhem/trunk@12177 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-19 18:53:04 +00:00
mgernoth
fb9f24045e 00_HMUARTLGW.pm: warn when LGW KeepAlive is delayed, add "set" hints for web
git-svn-id: https://svn.fhem.de/fhem/trunk@12175 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-19 08:19:57 +00:00
mgernoth
e383e174bc 00_HMUARTLGW.pm: resolve names in logIDs
git-svn-id: https://svn.fhem.de/fhem/trunk@12119 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-05 08:04:05 +00:00
mgernoth
926b14a9c8 00_HMUARTLGW.pm: cleanup retry-handling, reduce delay when IO is busy
git-svn-id: https://svn.fhem.de/fhem/trunk@12116 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-04 12:40:25 +00:00
mgernoth
b75899b351 00_HMUARTLGW.pm: disable CSMA/CA by default
git-svn-id: https://svn.fhem.de/fhem/trunk@12112 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-03 20:13:20 +00:00
mgernoth
45b1ae73de 00_HMUARTLGW.pm: only trigger VCCU when condition changed
git-svn-id: https://svn.fhem.de/fhem/trunk@12109 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-09-02 07:39:47 +00:00
mgernoth
7f103d9a54 00_HMUARTLGW.pm: Implement updating the coprocessor-firmware
git-svn-id: https://svn.fhem.de/fhem/trunk@12100 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-08-31 18:17:22 +00:00
mgernoth
04c87aaa40 00_HMUARTLGW.pm: fix non-blocking connect, thanks Ralf9 (forum: msg483514)
git-svn-id: https://svn.fhem.de/fhem/trunk@12031 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-08-21 12:25:40 +00:00
mgernoth
009f605cc5 00_HMUARTLGW.pm: add description, improve timing
git-svn-id: https://svn.fhem.de/fhem/trunk@12005 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-08-20 09:14:47 +00:00
mgernoth
bbeb17b8f5 00_HMUARTLGW.pm: delay reconnect when remote disconnects immediately
git-svn-id: https://svn.fhem.de/fhem/trunk@11981 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-08-17 21:05:13 +00:00
mgernoth
d5a37052a2 00_HMUARTLGW.pm: add support for HM-MOD-UART behind a tcp-serial bridge
git-svn-id: https://svn.fhem.de/fhem/trunk@11934 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-08-09 20:02:16 +00:00
martinp876
7c4fc0e7c3 HMUARTLGW: revert changes
git-svn-id: https://svn.fhem.de/fhem/trunk@11906 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-08-06 12:38:41 +00:00
martinp876
ca3a2a476f CUL_HM:setzen von peerNeedsBurst
git-svn-id: https://svn.fhem.de/fhem/trunk@11905 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-08-06 12:10:09 +00:00