From a61a9844cba5b45761076c8eeb1d73e86b4e1a3c Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Thu, 4 Jul 2024 15:46:22 +0200 Subject: [PATCH 1/3] coms --- .../CoreRFIDReader/include/CoreRFIDReaderCR95HF.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h b/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h index 2ee33ddb7b..097b5206bc 100644 --- a/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h +++ b/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h @@ -38,16 +38,16 @@ namespace rfid::cr95hf { namespace idle_tag_detection { inline constexpr auto tag_detection_command = uint8_t {0x07}; - inline constexpr auto wu_source = uint8_t {0x0A}; + inline constexpr auto wu_source = uint8_t {0x0A}; // remove IRQ_IN inline constexpr auto length = uint8_t {0x0E}; inline constexpr auto enter_control = std::to_array({0x21, 0x00}); inline constexpr auto wu_control = std::to_array({0x79, 0x01}); inline constexpr auto leave_control = std::to_array({0x18, 0x00}); - inline constexpr auto wu_periode = uint8_t {0x20}; - inline constexpr auto oscillator_start = uint8_t {0x60}; - inline constexpr auto digital_to_analog_start = uint8_t {0x60}; - inline constexpr auto digital_to_analog_data = std::to_array({0x70, 0x80}); - inline constexpr auto swing_count = uint8_t {0x3F}; + inline constexpr auto wu_periode = uint8_t {0x20}; // Duration beteen two burst + inline constexpr auto oscillator_start = uint8_t {0x60}; // HFO to stabilize + inline constexpr auto digital_to_analog_start = uint8_t {0x60}; // DAC to stabilize + inline constexpr auto digital_to_analog_data = std::to_array({0x70, 0x80}); // lower and higer value for tag detection + inline constexpr auto swing_count = uint8_t {0x3F}; // pay attention to inline constexpr auto max_sleep = uint8_t {0x08}; } // namespace idle_tag_detection From b8b843cf1d5374d0eacb7aa814ef4333b3a29770 Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Thu, 4 Jul 2024 15:53:43 +0200 Subject: [PATCH 2/3] Update CoreRFIDReaderCR95HF.h --- .../CoreRFIDReader/include/CoreRFIDReaderCR95HF.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h b/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h index 097b5206bc..04dac3849e 100644 --- a/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h +++ b/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h @@ -38,17 +38,18 @@ namespace rfid::cr95hf { namespace idle_tag_detection { inline constexpr auto tag_detection_command = uint8_t {0x07}; - inline constexpr auto wu_source = uint8_t {0x0A}; // remove IRQ_IN + inline constexpr auto wu_source = uint8_t {0x0A}; // remove IRQ_IN, update LFO inline constexpr auto length = uint8_t {0x0E}; inline constexpr auto enter_control = std::to_array({0x21, 0x00}); inline constexpr auto wu_control = std::to_array({0x79, 0x01}); inline constexpr auto leave_control = std::to_array({0x18, 0x00}); - inline constexpr auto wu_periode = uint8_t {0x20}; // Duration beteen two burst - inline constexpr auto oscillator_start = uint8_t {0x60}; // HFO to stabilize - inline constexpr auto digital_to_analog_start = uint8_t {0x60}; // DAC to stabilize - inline constexpr auto digital_to_analog_data = std::to_array({0x70, 0x80}); // lower and higer value for tag detection - inline constexpr auto swing_count = uint8_t {0x3F}; // pay attention to - inline constexpr auto max_sleep = uint8_t {0x08}; + inline constexpr auto wu_periode = uint8_t {0x20}; // Duration beteen two burst + inline constexpr auto oscillator_start = uint8_t {0x60}; // HFO to stabilize + inline constexpr auto digital_to_analog_start = uint8_t {0x60}; // DAC to stabilize + inline constexpr auto digital_to_analog_data = + std::to_array({0x70, 0x80}); // lower and higer value for tag detection + inline constexpr auto swing_count = uint8_t {0x3F}; // pay attention to + inline constexpr auto max_sleep = uint8_t {0x08}; } // namespace idle_tag_detection From 84d7b1f80078858c4f74975e9e4d17082824c795 Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Fri, 5 Jul 2024 16:52:49 +0200 Subject: [PATCH 3/3] update values --- drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h b/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h index 04dac3849e..e6b6816f2b 100644 --- a/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h +++ b/drivers/CoreRFIDReader/include/CoreRFIDReaderCR95HF.h @@ -43,7 +43,7 @@ namespace rfid::cr95hf { inline constexpr auto enter_control = std::to_array({0x21, 0x00}); inline constexpr auto wu_control = std::to_array({0x79, 0x01}); inline constexpr auto leave_control = std::to_array({0x18, 0x00}); - inline constexpr auto wu_periode = uint8_t {0x20}; // Duration beteen two burst + inline constexpr auto wu_periode = uint8_t {0x28}; // Duration beteen two burst inline constexpr auto oscillator_start = uint8_t {0x60}; // HFO to stabilize inline constexpr auto digital_to_analog_start = uint8_t {0x60}; // DAC to stabilize inline constexpr auto digital_to_analog_data =