And, what do you recommend me?

Is there a way to configure UDP broadcast that I'm not using?

On Saturday, July 7, 2012 2:15:40 AM UTC+2, Harri Smått wrote:
>
> Are you sure 255.255.255.255 is the correct broadcast address you want to 
> use? It might be a good idea to give other private IP broadcast addresses a 
> go too. This won't fix your problem with packet "bundling" though.
>
> --
> H
>
>> I'm developing an Android 3.1 Tablet application. I'm going to use this 
>> app to listen to UDP packets send by a device which is sending UDP packets 
>> to 255.255.255.255:8001 every 5 seconds.
>>
>> Using desktop program Docklight scripting v1.9, I see that this device 
>> sends a 11 bytes packet every 5 seconds, by my app doesn't receive every 
>> packet: sometimes it receives one, and sometimes it receives 5 or 6 packets 
>> at the same time. 
>>
>> This is my Activity: http://pastebin.com/5knkgWkT
>>
>> UDP Listener Thread: http://pastebin.com/vggdhV9D
>>
>> AndroidManifest.xml: http://pastebin.com/iM29NBCE
>>
>> If I send a UDP packet to Tablet's IP, e.g. UDP:192.168.1.135:8001, 
>> sometimes it receives the packet. And sometimes it receives three or four 
>> at the same time.
>>
>> But if I send direct UDP packet to an *HTC Desire 2.2.2 *it receives all 
>> of them, but my HTC doesn't receive broadcast packets. And I'm using the 
>> same code.
>>
>> This how I am receiving UDP broadcast packets (look at the time):
>> 07-06 12:08:56.580: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:08:59.655: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:02.410: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:03.230: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:03.435: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:03.745: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:03.945: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:04.460: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:04.770: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:04.975: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:09:46.855: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:06.005: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:06.310: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:06.515: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:06.825: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:07.335: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:07.640: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:07.845: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:10.415: V/UDServerThread(6449): Mensaje recibido.
>> 07-06 12:10:17.065: V/UDServerThread(6449): Mensaje recibido.
>>
>> What am I doing wrong? Maybe I need some custom configuration.
>>
>> By the way, I am testing it on a Samsung Galaxy Tab 7.7 with Android 3.1.
>> *
>> * 
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to