Skip to content

EnOcean USB 300 DC never recognized #2

@thenaturalist

Description

@thenaturalist

Hi there,

I tried getting your Quickstart example to work without success and after making several changes.
Setup:

  • EnOcean USB 300 DC attached at /dev/ttyUSB0, BAUD rate of 57600
    The stick is set up and working as expected with FHEM.
  • Raspberry Pi running Raspian Buster
  1. Running the quickstart code with enocean.startMonitor({'path':'/dev/ttyUSB0'}).then(... results in
Error: No USB gateway was found.
    at tryConnect (/home/foo/node_modules/node-enocean-utils/lib/node-enocean-utils-gateway.js:134:20)
    at SerialPort.<anonymous> (/home/foo/node_modules/node-enocean-utils/lib/node-enocean-utils-gateway.js:196:7)
    at binding.close.then.closing (/home/foo/node_modules/@serialport/stream/lib/index.js:440:18)
  1. Adding the explicit configuration to node-enocean-utils-gateway.js under com_info:
    Same error.

  2. Running the EnOceanPi Example, adjusting the path to /dev/ttyUSB0 or adding the full configuration dictionary:
    Same error.

  3. Running either learn.js or analyze.js with explicit arguments:
    Same error.

The gateway is never found.

Am I making an obvious mistake?
Any advice would be greatly appreciated.

Thanks and kind regards

Edit:
Node version: 12.14.1
Serialport version: 8.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions