Message Boards Message Boards

Sync sensor readings with an I2C "general call" using MMA on Raspberry Pi?

I'm using a general call on the I2C bus of my Raspberry Pi 3 to synchronize data acquisition at all connected sensors. A general call is a call to device "0", which is received by all I2C devices on the bus. I use it to generate an interrupt at the sensors to take measurement readings simultaneously. With WiringPi I can do this with the call: wiringPiI2CWrite(wiringPiI2CSetup(0x00),1). It is a very useful operation that I would want to use in Mathematica. However I can't seem to generate a "general call". DeviceOpen["I2C", 0] generates an error message: "DeviceOpen::noAddress: No device found with address 0 on I2C bus". How to generate a general call to all I2C devices in Mathematica?

Thanks.

POSTED BY: Tony Paijens
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract