This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issues while reading data from multiple sensors through TWI

Hi,

I am using nrf52832 custom board with s132 to read data from 4 sensors using twi. i have 2 separate TWI with two different sensors on each bus. i am using nrf_drv_twi
driver for reading the data.

I am facing some issues while reading from both sensors on same bus. when i try to read from the second sensor, it stops working ie .. it is not able to read the data from sensors.

i am using two separate TWI instances for each twi buses.

The sampling rate of the sensors is 

1st sensor = 50 sampleas/ second

2nd sensor = 1 sample in every 5 seconds.

I am also sending around 50 bytes of data per second  through a custom service, for that i kept the connection interval very hgh 40 mS.

All the 4 sensors are working individually if i disable the the sharing sensors.

What could be the issue? Using app_twi drivers will do any good?

Related