I want to communicate with xbee dongble(HA , ember).

I have xbee s2 , shield v3 , arduino uno, zigbee dongle(HA , ember)

I want to use xbee as an end device.

dongle is coordinator

xbee wants to join dongble.

How can I connect xbee and dongble?

Xbee is trying to join the dongle.

XBee setting
ZS 2
AP 1
AO 3
EE 1
EO 2
KY 0x5A6967426565416C6C69616E63653039

Do you have sample code?

No Digi does not offer sample code for this. This is something you need to figure out and set your Ember device to the proper settings.