willhey / mcp23017chip

Node-red mcp23017chip
MIT License
6 stars 7 forks source link

remote IO error #5

Open creativeng opened 5 years ago

creativeng commented 5 years ago

sometimes we get a

[error] [mcp23017chip:dcadd7bf.89fdc8] Error: , Remote I/O error

followed by a series of

[mcp23017output:7ebba611.d7cbb8] TypeError: Cannot read property 'setBit' of null

for each one of the configured ports.. it seems randomic, sometimes it leads to a node red crash due to uncaught exception...

which could be the problem?

thanks

willhey commented 5 years ago

I suspect it is caused by intermittent i2c wiring or interference. Indeed the uncaught exception makes it worse. I am using this node on 7 Raspberry PIs with no issues. Feel free to clone and improve

creativeng commented 5 years ago

ok we will further test, in your application you use more that one module in chain? we actually use more than 5..... that could make it also worse

willhey commented 5 years ago

The most I have is 5 modules (a mix of different chips) but all local to the PI (less than 300mm of cabling)

creativeng commented 5 years ago

ok no we have longer cabling 5 units 9M Din....about 1000 mm