# ed\_SendData by UDP problem

**URL:** <https://forum.sierrawireless.com/t/ed-senddata-by-udp-problem/306>\
**Category:** Open AT\
**Created:** [February 22, 2006, 1:48pm UTC](https://forum.sierrawireless.com/t/ed-senddata-by-udp-problem/306 "2006-02-22T13:48:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezzer](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@dezzer](https://forum.sierrawireless.com/u/dezzer)\
**Post date:** [February 22, 2006, 1:48pm UTC](https://forum.sierrawireless.com/t/ed-senddata-by-udp-problem/306/1 "2006-02-22T13:48:28Z")

</div>

Hello, all.  
I’ve just started to create applications using OpenAT and faced the following problem:  
I’m trying to send data over UDP. I successfully attached GPRS and created UDP socket. But then I’m trying to send more then 14 bytes of data, socket seemed to hang up.  
This is my socket related code:

```auto
void UdpRsp_Handler(s32 code, TeDHandle id)
{
}

u16 UdpData_Handler(u16 length, u8 *data, TeDHandle id)
{
	return length;
}

void UdpData_Request(u16 MaxLen, TeDHandle id)
{
        ascii message[19] = "somelongdatastring";
	ed_SendData(message, sizeof(message), TRUE);
}
```

When sending less then 14 bytes all works fine: data transmits and finally UdpRsp\_Handler receives ED\_OK\_UDP\_CLOSED message. But then data size is 15 or greater traces stopped at [fcmSendData] Send new Data. After that socket is “disappeared”, but no visible messages or events occured.  
i’m using OpenAT 3.02, Q2501B module and RTE with VS .NET.  
I’d gladly appreciate any help since this weird behaviour totally confused me.  
Best regards, Serguei.

---

<div class="post-metadata">

**Author:** ![jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jan](https://forum.sierrawireless.com/u/jan)\
**Post date:** [February 22, 2006, 2:05pm UTC](https://forum.sierrawireless.com/t/ed-senddata-by-udp-problem/306/2 "2006-02-22T14:05:33Z")

</div>

Hi Serguei,

I haven’t used UDP service… I don’t know what the problem is, but I would try to compile and run the program in target mode. So you can make sure that it isn’t caused by the RTE (or the timing of the RTE application)…

Best Regards,  
Jan

---

<div class="post-metadata">

**Author:** ![dezzer](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@dezzer](https://forum.sierrawireless.com/u/dezzer)\
**Post date:** [February 26, 2006, 9:47am UTC](https://forum.sierrawireless.com/t/ed-senddata-by-udp-problem/306/3 "2006-02-26T09:47:47Z")

</div>

Thanks, Jan. It really was RTE problem. Or problem with my understanding of RTE 🙂
