russtheaerialist-retired-projects / node-spi

A NodeJS interface to the SPI bus on embedded linux machines
ISC License
95 stars 32 forks source link

TypeError: Unable to set SPI_IOC_WR_MODE #24

Open Maksims opened 8 years ago

Maksims commented 8 years ago

Getting error TypeError: Unable to set SPI_IOC_WR_MODE on Raspberry Pi 2B, using node v4.2.1, and spi v0.2.0. Running test.js, with added spi.open(); line.

Trying to communicate with spidev1.1. Test from end of this page, verifies that port is actually in working condition.

I've struggled with serialport library which just closes silently, and looking for any node library that will be able to talk to that SPI port.

bradjc commented 8 years ago

Any chance you are using the option: chipSelect: SPI.CS['none']? I've found that removing that makes this error go away on the Intel Edison.