From 5f2228fc4b667c70854f437b23ec6d168c647ed2 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 20 Jun 2013 12:15:37 +0200 Subject: [PATCH 1/1] always send a short (10ms) preamble, fixes more lost-packet problems --- culfw/culfw-asksin-fix.diff | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/culfw/culfw-asksin-fix.diff b/culfw/culfw-asksin-fix.diff index e63b87f..c2d7101 100644 --- a/culfw/culfw-asksin-fix.diff +++ b/culfw/culfw-asksin-fix.diff @@ -128,7 +128,7 @@ Index: clib/rf_asksin.c enc[0] = dec[0]; enc[1] = (~dec[1]) ^ 0x89; -@@ -195,6 +171,13 @@ +@@ -195,6 +171,15 @@ enc[l] = dec[l] ^ dec[2]; @@ -137,12 +137,14 @@ Index: clib/rf_asksin.c + // According to ELV, devices get activated every 300ms, so send burst for 360ms + for(l = 0; l < 3; l++) + my_delay_ms(120); // arg is uint_8, so loop ++ } else { ++ my_delay_ms(10); + } + // send CC1100_ASSERT; cc1100_sendbyte(CC1100_WRITE_BURST | CC1100_TXFIFO); -@@ -205,12 +188,10 @@ +@@ -205,12 +190,10 @@ CC1100_DEASSERT; -- 2.39.5