# Digimesh Coordinator SPI\_ATTN

**URL:** <https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417>\
**Category:** XBee - DigiMesh\
**Created:** [January 11, 2023, 1:44pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417 "2023-01-11T13:44:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [January 11, 2023, 1:44pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/1 "2023-01-11T13:44:20Z")

</div>

Hello  
I have network that contains 1 Coordinator and 20 routers with digimesh firmware and API mode , in my network I send broadcast data to all router , I initiate FRAME ID to zero value for not receive response from our routers  
But when I monitor spi\_attn pin , it falling one time and when I use function to receive xbee data with spi , it hasn’t any data  
Please help thank you

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 13, 2023, 1:55pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/2 "2023-01-13T13:55:25Z")

</div>

Are you trying to communicate via the UART or SPI port?

Have you checked your API frame with XCTU’s API generator to make sure it is correct?

---

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [January 17, 2023, 10:41am UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/3 "2023-01-17T10:41:35Z")

</div>

I’m using SPI port to connect my xbee  
In the Router when I monitor spi\_attn pin and reset xbee module, spi\_attn has falling edge and xbee module send to mcu Modem Status (0x8A) frame and I receive this frame and waiting for another frame from coordinator by spi\_attn monitoring…  
But in the Coordinator when I do the same way by monitoring spi\_attn pin, when I reset xbee module, spi\_attn has falling edge but it doesn’t send to mcu any frame  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 19, 2023, 2:51pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/4 "2023-01-19T14:51:22Z")

</div>

What are you doing to receive the frames?

---

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [May 4, 2023, 1:20pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/5 "2023-05-04T13:20:20Z")

</div>

Hello again , excuse me for my delay, I was in hard sickness for long time  
I connected spi\_attn pin to mcu gpio that is sensitive to falling edge , in mcu code when I have falling edge from xbee module, I read spi xbee buffer until is equal to 0x7E (Start delimiter) then I read length bytes (2 bytes) and then Frame ID and depends on Frame ID, I readother bytes until checksum

---

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [May 8, 2023, 11:05am UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/6 "2023-05-08T11:05:48Z")

</div>

Hello  
Can you help me ?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 8, 2023, 12:32pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/7 "2023-05-08T12:32:24Z")

</div>

GPIO pins are not SPI pins. You really need to connect a SPI slave to a SPI Master.

---

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [May 8, 2023, 1:06pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/8 "2023-05-08T13:06:56Z")

</div>

My Microcontroller is SPI Master & my xbee module is SPI Slave , aren’t they ??

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 8, 2023, 1:27pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/9 "2023-05-08T13:27:47Z")

</div>

That would depend of if your processor has a SPI port or just GPIO lines.

Are you sending 0xFF’s to the XBee’s SPI port?

---

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [May 8, 2023, 1:55pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/10 "2023-05-08T13:55:32Z")

</div>

My mcu is Stm32f407vet6 and it has SPI port and my xbee module is configured as coordinator, and depends on DIGI document when spi\_attn has falling edge it means that xbee module has data and mcu should receive that , my problem is when I monitor spi\_attn pin , it has falling edge one time and when I use function to receive xbee data with spi , it hasn’t any data!

thank so much

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 8, 2023, 2:45pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/11 "2023-05-08T14:45:42Z")

</div>

What I would suggest is submitting a Case to Digi Support. Make sure you include exactly what you are sending on both ends and what it is you are seeing.

---

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [May 15, 2023, 1:13pm UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/12 "2023-05-15T13:13:22Z")

</div>

Hello ,  
OK thanks a lot

---

<div class="post-metadata">

**Author:** ![mettiblack72](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mettiblack72](https://forums.digi.com/u/mettiblack72)\
**Post date:** [June 14, 2023, 8:40am UTC](https://forums.digi.com/t/digimesh-coordinator-spi-attn/23417/13 "2023-06-14T08:40:27Z")

</div>

Hello  
I solved my problem  
spi speed of MCU that is connected tp Router was 2Mbps and MCU that is connected to Coordinator was 250Kbps  
I increase the spi speed of MCU that is connected to Coordinator and it receive correctly all frames
