Date: Wed, 19 Feb 2020 11:27:09 +0200 From: Nick Kostirya <nikolay.kostirya@i11.co> To: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: gpioiic and APDS9960 sensors Message-ID: <20200219112709.3d895f58@i11.co> In-Reply-To: <20200214141531.5bb948e5@i11.co> References: <20200214141531.5bb948e5@i11.co>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Feb 2020 14:15:31 +0200 Nick Kostirya via freebsd-arm <freebsd-arm@freebsd.org> wrote: > Hello. > I use iicbus over gpioiic on NanoPi NEO. > All my sensors work fine, except for APDS9960 sensors. > I have two APDS9960 sensors and and both give an error: > > > > i2c -f /dev/iic0 -s > Scanning I2C devices on /dev/iic0: 39 > > > ktrace -t+ i2c -f /dev/iic0 -a 0x39 -d r -o 0 -c 1 > > 1654 i2c CALL ioctl(0x3,I2CSTART,0xbfbfebf0) > 1654 i2c RET ioctl 0 > 1654 i2c CALL ioctl(0x3,I2CWRITE,0xbfbfebf0) > 1654 i2c RET ioctl -1 errno 2 No such file or directory > 1654 i2c CALL ioctl(0x3,I2CSTOP,0x20056010) > 1654 i2c RET ioctl 0 > > > > ktrace -t+ i2c -f /dev/iic0 -a 0x39 -d r -o 0 -c 1 -m tr > > 1657 i2c CALL ioctl(0x3,I2CRDWR,0xbfbfebd8) > 1657 i2c RET ioctl -1 errno 2 No such file or directory Maybe it is IIC_ENOACK from iicbb_ack function in iicbb.c file? IIC_ENOACK is also 2. Maybe sensors is very slow for iicbb?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200219112709.3d895f58>