Skip to content

Default to 2Mbaud for Sonoffs? #101

@XenoKovah

Description

@XenoKovah

If auto-detection for baud is currently supposed to work, then this is a bug report that it doesn't.

But I think it's not supposed to, due to it being mentioned on past tickets that differentiating the slow vs. fast devices is difficult or possibly impossible. But my request would be that we default to assuming that everyone can get the fast version of the chip these days, and that the slow version was just an anomaly from supply chain shortages during the pandemic. So my request is that sniffle_hw.py is updated to default to 2000000 for Sonoffs and let people with the slow version do the override, rather than people with the fast version.

diff --git a/python_cli/sniffle/sniffle_hw.py b/python_cli/sniffle/sniffle_hw.py
index 102b669..4474372 100644
--- a/python_cli/sniffle/sniffle_hw.py
+++ b/python_cli/sniffle/sniffle_hw.py
@@ -115,7 +115,8 @@ class SniffleHW:
                 else:
                     baud = 921600
         elif is_cp2102(serport):
-            baud = 921600
+#            baud = 921600
+            baud = 2000000

I say this just because it'd be nice if I didn't have to override the baud at all and could just have students use no-diffs Sniffle in our upcoming OST2 BLE class...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions