Communicate multiple DA14681 via I2C

Learn MoreFAQsTutorials

3 posts / 0 new
Last post
mahmed106
Offline
Last seen:1 month 1 week ago
加入:2019-05-03 17:28
Communicate multiple DA14681 via I2C

Hi dialog

I am working on a DA14681 based board. I want to communicate between two DA14681 via I2C. One in Master mode other in slave mode. But i couldnt find documentaton or example in sdk regarding this.

Can you help me in this regard?

Device:
PM_Dialog
Offline
Last seen:6 hours 57 min ago
Staff
加入:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

Let me check it and I’ll get back to you.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:6 hours 57 min ago
Staff
加入:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

As you mentioned correctly, there is no example code for configuring the DA1468x as a slave device. You could define the dg_configI2C_ADAPTER_SLAVE_SUPPORT macro in your configuration file and try to use the ad_i2c_start_slave() API. There is a reference code in the comment of the aforementioned API. Please also see some previous forum threads:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-slave-using-adapter-pending

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-adapter-async-write-pending

Thanks, PM_Dialog