Coder Social home page Coder Social logo

Local development about ruuvicollector HOT 2 CLOSED

scrin avatar scrin commented on June 27, 2024
Local development

from ruuvicollector.

Comments (2)

Scrin avatar Scrin commented on June 27, 2024

When I'm doing development on one of my Linux machines, I use hcitool and hcidump directly as it's by default. When I happen to do development on my Windows machine, I have initially enabled WSL on the machine, generated a SSH key and added that key to other Linux machines (and raspberry pi's). This should probably work with some command-line windows ssh client too, but I use WSL for other reasons too so it was the easiest choice.

Then finally I have this in my collector config:

command.dump=bash -c "ssh [email protected] hcidump --raw"

which effectively runs hcidump over ssh from another Linux computer/rpi through WSL. Before this I used to have a text file containing a dump gathered from another machine and then as the dump command I just read the file (command.dump=cmd /c "type hcidump.txt"), but it became a bit cumbersome as it all pops all the data instantly and it's the same data over and over again.

I have also put an empty command.scan= to disable the scan command, and instead run hcitool lescan --duplicates --passive manually on the device where hcidump actually runs on, as this allows me to simulate situations where there's a pause in the data flow by stopping the hcitool command and starting it again, although it could be done over ssh the same way as the dump.

I don't have any macs, but the same hcidump-over-ssh trick should work equally fine on macs

from ruuvicollector.

matthewgardner avatar matthewgardner commented on June 27, 2024

Awesome - thanks :)

from ruuvicollector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.