00_HMUARTLGW.pm: disable CSMA/CA by default

git-svn-id: https://svn.fhem.de/fhem/trunk@12112 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgernoth
2016-09-03 20:13:20 +00:00
parent e616f47798
commit 095341d88f

View File

@@ -145,7 +145,7 @@ sub HMUARTLGW_Initialize($)
"lgwPw " . "lgwPw " .
"hmKey hmKey2 hmKey3 " . "hmKey hmKey2 hmKey3 " .
"dutyCycle:1,0 " . "dutyCycle:1,0 " .
"csmaCa:1,0 " . "csmaCa:0,1 " .
"qLen " . "qLen " .
"logIDs ". "logIDs ".
$readingFnAttributes; $readingFnAttributes;
@@ -757,7 +757,7 @@ sub HMUARTLGW_GetSetParameterReq($) {
HMUARTLGW_send($hash, HMUARTLGW_OS_NORMAL_MODE, HMUARTLGW_DST_OS); HMUARTLGW_send($hash, HMUARTLGW_OS_NORMAL_MODE, HMUARTLGW_DST_OS);
} elsif ($hash->{DevState} == HMUARTLGW_STATE_ENABLE_CSMACA) { } elsif ($hash->{DevState} == HMUARTLGW_STATE_ENABLE_CSMACA) {
my $csma_ca = AttrVal($name, "csmaCa", 1); my $csma_ca = AttrVal($name, "csmaCa", 0);
HMUARTLGW_send($hash, HMUARTLGW_OS_ENABLE_CSMACA . sprintf("%02x", $csma_ca), HMUARTLGW_DST_OS); HMUARTLGW_send($hash, HMUARTLGW_OS_ENABLE_CSMACA . sprintf("%02x", $csma_ca), HMUARTLGW_DST_OS);
@@ -2328,10 +2328,8 @@ sub HMUARTLGW_getVerbLvl($$$$) {
<ul> <ul>
<li>csmaCa<br> <li>csmaCa<br>
Enable or disable CSMA/CA (Carrier sense multiple access with collision Enable or disable CSMA/CA (Carrier sense multiple access with collision
avoidance), also known as listen-before-talk. avoidance), also known as listen-before-talk.<br>
Disabling this might be illegal in your country, please check with local Default: 0 (disabled)
regulations!<br>
Default: 1 (enabled)
</li> </li>
<li>dutyCycle<br> <li>dutyCycle<br>
Enable or disable the duty-cycle check (1% rule) performed by the Enable or disable the duty-cycle check (1% rule) performed by the