• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Toothbrush integration

Scheduled Pinned Locked Moved Requests
34 Posts 5 Posters 28.3k Views 8 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    SvenSommer
    last edited by SvenSommer Jan 27, 2017, 12:48 PM Jan 27, 2017, 12:48 PM

    For the Bug Hunt Post I reduced the code of the MM-scripts to a absolute minmum.
    That’s the reason the module is always showing ‘SEARCHING…’ right now.

    If the scripts would work as exspected the console output would show scanning was started. Everything is working fine. all the time the MM² is started.
    Thats all I’m hoping to see right now.

    Looking for some building inspiration?
    Check out my large, thin and metal framed mirror on robstechlog.com.

    Modules released:
    MMM-GoogleAnalytics
    MMM-GrafanaChart
    MMM-GrafanaGauges

    1 Reply Last reply Reply Quote 0
    • D Offline
      dfuerst
      last edited by Jan 27, 2017, 1:57 PM

      ok. i understand. full reply on monday

      1 Reply Last reply Reply Quote 0
      • D Offline
        dfuerst
        last edited by Jan 30, 2017, 4:06 PM

        RPi3
        NODE : v6.9.2
        NPM: 3.10.9
        MagicMirror@2.0.0

        1 Reply Last reply Reply Quote 0
        • D Offline
          dfuerst
          last edited by Jan 30, 2017, 4:21 PM

          scenario 1:

          scanning started…
          Toothbrush connection ALIVE atMon Jan 30 2017 17:12:15 GMT+0100 (CET)
          Toothbrush is running
          0:1
          0:2
          Toothbrush connection LOST at Mon Jan 30 2017 17:12:17 GMT+0100 (CET) was alive since Mon Jan 30 2017 17:12:15 GMT+0100 (CET)
          two input in less than 3 sec! (2 sec) => ignoring input!
          0:3
          0:4
          0:5
          endless counting

          scenario 2:

          scanning started…
          noble: unknown peripheral e0e5cffc4d8c connected!
          noble: unknown peripheral e0e5cffc4d8c disconnected!
          Toothbrush connection ALIVE atMon Jan 30 2017 17:14:25 GMT+0100 (CET)
          Toothbrush is running
          0:1
          0:2
          Toothbrush connection LOST at Mon Jan 30 2017 17:14:28 GMT+0100 (CET) was alive since Mon Jan 30 2017 17:14:25 GMT+0100 (CET)
          two input in less than 3 sec! (2 sec) => ignoring input!
          0:3
          0:4
          0:5
          0:6
          endless counting

          scenario 3:

          same result as in scenario1

          scenario 4:

          same result as in scenario1

          S 1 Reply Last reply Jan 31, 2017, 3:33 PM Reply Quote 1
          • D Offline
            dfuerst
            last edited by Jan 30, 2017, 4:25 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • D Offline
              dfuerst
              last edited by dfuerst Jan 30, 2017, 7:18 PM Jan 30, 2017, 6:00 PM

              in MM:
              scanning was started. Everything is working fine.
              noble warning: unknown handle 64 disconnected!
              , in MagicMirror

              1 Reply Last reply Reply Quote 0
              • S Offline
                SvenSommer @dfuerst
                last edited by Jan 31, 2017, 3:33 PM

                @dfuerst

                Behavior of brushTimer.js script

                According to results of the tested scenarios your brush has a different behavior than mine.
                I was expecting a reconnect when you power off your brush.
                This is very bad.

                Maybe we can find another person to test the characteristics of this behavior?
                @Shifty or @onetwankyfive: Are you able to give the testscript a run with the postet scenarios to help us out here?

                Behavior of the module within the MM-framework

                With th help of @aschulz90 I finally solved to run noble within the MM²-framework. See here for details.

                I noticed the noble warning: unknown handle 64 disconnected!- warning. It’s nothing that should bother.

                Looking for some building inspiration?
                Check out my large, thin and metal framed mirror on robstechlog.com.

                Modules released:
                MMM-GoogleAnalytics
                MMM-GrafanaChart
                MMM-GrafanaGauges

                O D 2 Replies Last reply Jan 31, 2017, 4:39 PM Reply Quote 0
                • O Offline
                  onetwankyfive @SvenSommer
                  last edited by Jan 31, 2017, 4:39 PM

                  @SvenSommer I have a brush that is compatible and can help… are the instructions posted 5 days ago the correct ones? I can give it a whirl tonight / tomorrow morning if they are.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dfuerst @SvenSommer
                    last edited by dfuerst Jan 31, 2017, 6:33 PM Jan 31, 2017, 6:33 PM

                    @SvenSommer
                    Ok, as proven during the scenarios:
                    my brush does a connect followed by another reconnect after 3sec, which happens without user interaction.
                    so i land again at ‘hcitool con’, can your script be modified easiely to operate as intended at the very beginning (scanning for BLE brush macaddrr. every few seconds and stopping upon not finding it anymore, vanishing+resetting after a defined time period) of this topic?

                    btw i use the:
                    Oral-B Pro 6500 Smart Series Electric Toothbrush with Bluetooth Technology Powered by Braun

                    @onetwankyfive
                    i appreciate your help testing the script, please provide us with the model no/type of your brush

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      SvenSommer
                      last edited by SvenSommer Jan 31, 2017, 7:14 PM Jan 31, 2017, 7:13 PM

                      @onetwankyfive
                      Thanks four your help! Yes, please follow these instructions of the eight steps to get the testscript running.

                      For clarification, please provide us with the output from the four scenarios:

                      1. Start the Brush; wait like 10 seconds and stop.
                      2. Start and stop within 3 seconds.
                      3. Start, wait like 10 seconds and stop. Start again within the next 10 seconds for like 5 seconds.
                      4. Start, wait like 10 seconds and stop. Start again after 40 seconds and stop whenever you like.

                      And as @dfuerst mentioned the model seems to differ in their behavior. I’m using a a Braun Oral-B PRO 6000. Do you know yours?

                      @dfuerst
                      I don’t get your point in using hcitool.
                      Do you get a reconnect after you have stopped your brush with hcitool?
                      Or is your brush connected via hcitool as long as it’s running?

                      To answer your question: If you want to use hcitool, its easier to adapt to MMM-Networkscanner by @ianperrin like you did in your first attempt.
                      But as I already mentioned, I’m sure this is even more unreliable and unaccurate.
                      But if you wanna try, I’m willing to help you.

                      Looking for some building inspiration?
                      Check out my large, thin and metal framed mirror on robstechlog.com.

                      Modules released:
                      MMM-GoogleAnalytics
                      MMM-GrafanaChart
                      MMM-GrafanaGauges

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        28/34
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy