Communicate multiple DA14681 via I2C

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
mahmed106
Offline
Last seen:1 month 3 weeks 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:2 days 16 hours 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:2 days 16 hours 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