SAndroidEOfficial / framework

SAndroidE - Sensors for Android Embedded. A free framework allowing external devices to be easily managed in Android
http://es3.unibs.it/SAndroidE
Other
7 stars 1 forks source link

[raspi3B] test script doesn't work! #37

Closed RedsAnDev closed 7 years ago

RedsAnDev commented 7 years ago

Hi guys, I test bash script in pi's home of Raspi-SAndroidE-Image. But, everytime I try command ./test start I get this kind of message

pi@raspberrypi:~ $ ./test start
Starting gpio-peripheral.js
gpio - new Gpio n: 1, real gpio: 1
direction is: in
gpio - new Gpio n: 2, real gpio: 2
direction is: in
gpio - new Gpio n: 3, real gpio: 3
direction is: in

fs.js:537
  return binding.write(fd, buffer, offset, length, position);
                 ^
Error: EBUSY, resource busy or locked
    at Object.fs.writeSync (fs.js:537:18)
    at Object.fs.writeFileSync (fs.js:984:21)
    at new Gpio (/home/pi/node_modules/onoff/onoff.js:89:8)
    at new GPIO (/home/pi/BT_peripheral/gpio.js:94:12)
    at Object.<anonymous> (/home/pi/BT_peripheral/gpio-peripheral.js:48:36)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

Where is my mistake?

drkangel commented 7 years ago

Try to run the command with sudo

giowild commented 7 years ago

News on this? Does it work now?

RedsAnDev commented 7 years ago

ASAP

giowild commented 7 years ago

Please open this again if the issue is still not solved.