jperkin / node-openzwave

node.js interface to libopenzwave
Other
110 stars 55 forks source link

Failed to start driver #27

Closed jdevelvis closed 10 years ago

jdevelvis commented 10 years ago

I'm attempting to get a new board up and running, and be able to use openzwave on it. I'm using the Aeon Labs z-stick, and it works as expected on my Raspberry Pi using the SD card image from The Thing System.

However, when I try to run the test.js sample provided I get "failed to start driver" - since it currently works on the RPi, I'm guessing it's a dependency issue. Any chance you have a list of deps/reqs that I can use to make sure I have what I need to get it working on the new board? Thanks!

jperkin commented 10 years ago

First thing I'd check is the device path, it may be incorrect on the new board. It's also worth using the by-id /dev paths too as e.g. /dev/ttyUSB0 can change depending on boot probe order.

jdevelvis commented 10 years ago

Sorry for the long delay in responding, didn't get a chance to test it out for quite awhile. Looks like the new board didn't have the proper USB to Serial drivers, which is why the z-stick wasn't being exposed and was giving me that message. Thanks for your response, it pointed me directly to the problem!

zimler commented 9 years ago

I know this an old thread, but any chance you know which driver you then used? I don't know that I have a driver issue, test.js works, but TTS doesn't pull in any of the z-wave devices and I'm trying anything. 1.10 RPI image.

jdevelvis commented 9 years ago

How long do you give it? TTS takes a long time to load z-wave devices for me.

Or, check your config file, if you have excluded z-wave (or excluded everything and not explicitly included it) then it won't load. What does your console say for the z-wave devices?

Jason

On Nov 13, 2014, at 10:30 AM, zimler notifications@github.com wrote:

I know this an old thread, but any chance you know which driver you then used? I don't know that I have a driver issue, test.js works, but TTS doesn't pull in any of the z-wave devices and I'm trying anything. 1.10 RPI image.

— Reply to this email directly or view it on GitHub https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62907364.

zimler commented 9 years ago

Thanks for the reply. I'm trying to locate the steward config file where I would identify which port the Z-Stick is plugged into. I think that is where I am missing something.

On Thu, Nov 13, 2014 at 12:11 PM, Jason DeVelvis notifications@github.com wrote:

How long do you give it? TTS takes a long time to load z-wave devices for me.

Or, check your config file, if you have excluded z-wave (or excluded everything and not explicitly included it) then it won't load. What does your console say for the z-wave devices?

Jason

On Nov 13, 2014, at 10:30 AM, zimler notifications@github.com wrote:

I know this an old thread, but any chance you know which driver you then used? I don't know that I have a driver issue, test.js works, but TTS doesn't pull in any of the z-wave devices and I'm trying anything. 1.10 RPI image.

— Reply to this email directly or view it on GitHub https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62907364.

— Reply to this email directly or view it on GitHub https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62938619 .

jdevelvis commented 9 years ago

I believe it's in the database directory.

Jason

Sent from my iPhone

On Nov 13, 2014, at 6:58 PM, zimler notifications@github.com wrote:

Thanks for the reply. I'm trying to locate the steward config file where I would identify which port the Z-Stick is plugged into. I think that is where I am missing something.

On Thu, Nov 13, 2014 at 12:11 PM, Jason DeVelvis notifications@github.com wrote:

How long do you give it? TTS takes a long time to load z-wave devices for me.

Or, check your config file, if you have excluded z-wave (or excluded everything and not explicitly included it) then it won't load. What does your console say for the z-wave devices?

Jason

On Nov 13, 2014, at 10:30 AM, zimler notifications@github.com wrote:

I know this an old thread, but any chance you know which driver you then used? I don't know that I have a driver issue, test.js works, but TTS doesn't pull in any of the z-wave devices and I'm trying anything. 1.10 RPI image.

— Reply to this email directly or view it on GitHub https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62907364.

— Reply to this email directly or view it on GitHub https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62938619 .

— Reply to this email directly or view it on GitHub.

zimler commented 9 years ago

the config or config example file?

On Thu, Nov 13, 2014 at 6:32 PM, Jason DeVelvis notifications@github.com wrote:

I believe it's in the database directory.

Jason

Sent from my iPhone

On Nov 13, 2014, at 6:58 PM, zimler notifications@github.com wrote:

Thanks for the reply. I'm trying to locate the steward config file where I would identify which port the Z-Stick is plugged into. I think that is where I am missing something.

On Thu, Nov 13, 2014 at 12:11 PM, Jason DeVelvis < notifications@github.com> wrote:

How long do you give it? TTS takes a long time to load z-wave devices for me.

Or, check your config file, if you have excluded z-wave (or excluded everything and not explicitly included it) then it won't load. What does your console say for the z-wave devices?

Jason

On Nov 13, 2014, at 10:30 AM, zimler notifications@github.com wrote:

I know this an old thread, but any chance you know which driver you then used? I don't know that I have a driver issue, test.js works, but TTS doesn't pull in any of the z-wave devices and I'm trying anything. 1.10 RPI image.

— Reply to this email directly or view it on GitHub < https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62907364>.

— Reply to this email directly or view it on GitHub < https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62938619>

.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62992251 .

jdevelvis commented 9 years ago

It's been awhile, but I believe the config example file has a line in it that enabled the zwave search for me. Use it for reference, but the example file is exactly that - an example. You have to overwrite (or create) the regular config file for TTS to use it

Jason

On Thursday, November 13, 2014, zimler notifications@github.com wrote:

the config or config example file?

On Thu, Nov 13, 2014 at 6:32 PM, Jason DeVelvis <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

I believe it's in the database directory.

Jason

Sent from my iPhone

On Nov 13, 2014, at 6:58 PM, zimler <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Thanks for the reply. I'm trying to locate the steward config file where I would identify which port the Z-Stick is plugged into. I think that is where I am missing something.

On Thu, Nov 13, 2014 at 12:11 PM, Jason DeVelvis < notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

How long do you give it? TTS takes a long time to load z-wave devices for me.

Or, check your config file, if you have excluded z-wave (or excluded everything and not explicitly included it) then it won't load. What does your console say for the z-wave devices?

Jason

On Nov 13, 2014, at 10:30 AM, zimler <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

I know this an old thread, but any chance you know which driver you then used? I don't know that I have a driver issue, test.js works, but TTS doesn't pull in any of the z-wave devices and I'm trying anything. 1.10 RPI image.

— Reply to this email directly or view it on GitHub <

https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62907364>.

— Reply to this email directly or view it on GitHub <

https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62938619>

.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62992251>

.

— Reply to this email directly or view it on GitHub https://github.com/jperkin/node-openzwave/issues/27#issuecomment-62993830 .

zimler commented 9 years ago

That makes sense, I'm unsure of where I should locate the actual config file. Thanks again.

zimler commented 9 years ago

I was digging through a couple of files and based on this from the utility.js file, I'm going to throw a config file right in the db directory and see what happens.

try {
    exports.configuration = JSON.parse(fs.readFileSync(__dirname + '/../db/configuration.json', { encoding: 'utf8' }));
  } catch(ex) {
    if (ex.code !== 'ENOENT') exports.logger('steward').error('utility', { diagnostic: ex.message });
  }
WissalB commented 8 years ago

Hello,

I have also the problem of Failed to start driver and I have already changed the device path but I still have the same message. It's my first time using the openzwave library so I cannot locate the origin of the problem. Please if you have any idea help me!

Thanks in advance, Wissal

japita-se commented 7 years ago

Same problem here. "Failed to start driver", Raspberry 3, Aeon Z-Wave dongle

japita-se commented 7 years ago

Problem solved, by checking group permission of /dev/ttyACM0

sidalidev commented 5 years ago

It could be the name of your usb stick, check it with this command ls -al /dev/tty*