# I2C from wm\_bus to adl\_bus

**URL:** <https://forum.sierrawireless.com/t/i2c-from-wm-bus-to-adl-bus/751>\
**Category:** General\
**Created:** [October 5, 2006, 7:39am UTC](https://forum.sierrawireless.com/t/i2c-from-wm-bus-to-adl-bus/751 "2006-10-05T07:39:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@andreas](https://forum.sierrawireless.com/u/andreas)\
**Post date:** [October 5, 2006, 7:39am UTC](https://forum.sierrawireless.com/t/i2c-from-wm-bus-to-adl-bus/751/1 "2006-10-05T07:39:41Z")

</div>

Hello all

I’m moving my code from 6.41 to 6.55 and because of this I need to move the I2C bus from wm\_bus to adl\_bus. But I get write errors.  
This is the subscribtion:

```
if (PCA9555Caddress < 0x25) PCA9555Caddress++;
else PCA9555Caddress = 0x22;

C9555_handle = adl_busSubscribe ( ADL_BUS_TYPE_I2C_SOFT | PCA9555Caddress, ADL_IO_ID_U32_TO_U16(ADL_IO_Q24X6_GPIO_4)	|(ADL_IO_ID_U32_TO_U16(ADL_IO_Q24X6_GPIO_0)<<16));

```

And the Write command:  
sReturn = adl\_busWrite( C9555\_handle, NULL, WriteBuffer.DataLen, (void\*)WriteBuffer.Data);

I get sReturn = -1  
The only explenation for error code -1 I can find is in the Basic Development Guide where it says WM\_BUS\_MODE\_UNKNOWN\_TYPE.

Does anybody have an idea what I’m doing wrong?

Thanks
