Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install BitCatcher on Linux #69

Closed
ebaauw opened this issue Jul 29, 2017 · 5 comments
Closed

How to install BitCatcher on Linux #69

ebaauw opened this issue Jul 29, 2017 · 5 comments

Comments

@ebaauw
Copy link
Collaborator

ebaauw commented Jul 29, 2017

Any help on installing BitCatcher on Linux is greatly appreciated.

I got a ConBee USB stick and a new RaspBerry Pi 3. I successfully flashed the ConBee with BitCatcher_Firmware_V2_07_03.GCF using the GCFFlasher_internal that comes with deCONZ. I downloaded BitCatcher from https://digital.luxoft.com/bitcatcher/ and try to install it by running

$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
$ java -jar Downloads/Sniffer_1.0.1_public/pc/BitCatcher_Setup_1.0.0.jar

The installation fails with an error popup:

Error executing
/bin/chmod a+x /home/pi/Luxoft/BitCatcher/sniffer

The error is to be expected, as the mentioned file doesn't exist. The installer did create the path and a bunch of other files. Running the installer with sudo installs to /usr/local/Luxoft instead, but reports the same error.

@manup
Copy link
Member

manup commented Jul 30, 2017

Not sure if BitCatcher runs on ARM, I'm using it on Arch Linux (x64) and Win7.

After installation in Linux it can be started with sudo ./sniffer, I have installed it as normal user in ~/opt/BitCatcher.

@ebaauw
Copy link
Collaborator Author

ebaauw commented Jul 30, 2017

Ok, thanks, I'll try an Arch Linux VM...

Do I need to install a driver for the ConBee or should it be recognised spontaneously?

@manup
Copy link
Member

manup commented Jul 30, 2017

Ubuntu should work too, extra drivers are not needed but I think the /dev/ttyUSB0 should be put in the group of the user to get permission to it.

@ebaauw
Copy link
Collaborator Author

ebaauw commented Jul 30, 2017

Ubuntu does work ;-) I copied the network key from deCONZ and see a whole load of packages. I don't suppose there's a tutorial somewhere?

I tried a filter on the messages sent by the Trådfri remote, based on nwkHeader->srcShortAddr. This still results in half a dozen to a dozen messages per button event. I see the Remote sends a unicast to the light (router) it's connected to (green line in deCONZ GUI). Then the light broadcasts the message, and that broadcast is repeated by other routers. I tried also filtering on macHeader->srcShortAddr, but then a lot of messages aren't captured.

@ebaauw ebaauw closed this as completed Jul 30, 2017
@ebaauw
Copy link
Collaborator Author

ebaauw commented Jul 30, 2017

For those who want to try, here's the steps I took:

  • Create a new Ubuntu VM under Parallels for mac - just selected the predefined Ubuntu config;
  • Connect the ConBee (flashed with the BitCatcher firmware) to the VM.
  • Install Parallels Tools (prompted automatically);
  • Install Java: sudo apt-get install default-jre;
  • Install BitCatcher: sudo java -jar BitCatcher_Setup_1.0.0.jar;
  • Add user to /dev/ttyUSB0 group: sudo adduser parallels dialout;
  • Run BitCatcher: /usr/local/Luxoft/BitCatcher/sniffer;
  • In BitCatcher, add a device DE Sniffer with port /dev/ttyUSB0 and default communication settings;
  • Connect the device (little icon next to the select device dropdown);
  • Select the ZigBee channel deCONZ is using;
  • Under Preferences (gear icon), select Core Security and add the network key deCONZ is using.
  • Start sniffing (play icon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants