intel / intel-iot-services-orchestration-layer

The total solution that provides visual graphical programming for developing IoT applications.
80 stars 61 forks source link

在使用SerialPort时候,出现错误提示 Error Resource temporarily unavailable Cannot lock port #25

Closed imcort closed 8 years ago

imcort commented 8 years ago

刚刚更新了2.0.2版iot-sol,

在终端中使用echo “example” > /dev/ttyUSB0 是可以输出的,但是使用iot-sol的nodered里的serial out时,一启动程序,终端里就报错:Serial.errors.error { port: '/dev/ttyUSB0', error: 'Error: Error Resource temporarily unavailable Cannot lock port' },不知为什么

jiangzidong commented 8 years ago

1, 你是不是同时有其他程序也在使用串口. 请详细描述一下你的使用场景 2, 需要root权限

imcort commented 8 years ago

edison板登录时是使用的root账户,板子上只装了iot-sol,串口即使在点击运行的时候有报错,有时也能正常使用。我需要使用串口和arduino板子通信,edison上的usb host端口接入了一个pl2303芯片

imcort commented 8 years ago

@jiangzidong 我试着在Mac上使用serial in和serial out这个service,依旧报同样的错

jiangzidong commented 8 years ago

是的, 我们发现了里面的bug, 已经修复并上传了, 请用最新版本试试. 非常感谢!

imcort commented 8 years ago

更新版本后问题已解决,非常感谢!