Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
appdevelopement_india
Posts: 5
Registered: ‎09-02-2009
My Device: Not Specified

Datagram Packet send on Airtel Network

Hi,

 

I am developing an application which creates a Datagram connection and tries to send a packet. The .send API gets executed without any issues, but not receiving any packet on the other side. Here is the code:

 

dg =(DatagramConnection)Connector.open("udp://xx.xx.xx.xx:<host port>;9878/blackberry.net");

 

Datagram reply;

String data = "Test Datagram\n";
reply = dg.newDatagram(data.getBytes(), data.length());

 

dg.send(reply);

 

I have Airtel BIS connection, BB 9000. Can anybody help how it can work on Airtel network.

 

If I use wifi, then it works properly.

 

Thanks

 

 

 

 

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Datagram Packet send on Airtel Network

The "blackberry.net" APN does not usually provide direct access to the Internet. This is the APN for accessing RIM network infrastructure (BES/BIS).
Please use plain text.
New Developer
appdevelopement_india
Posts: 5
Registered: ‎09-02-2009
My Device: Not Specified

Re: Datagram Packet send on Airtel Network

Hi,

 

If blackberry.net is not the correct APN settings for accessing direct internet for sending datagram packet, please let me know what APN should be used. As If I use "airtelgprs.com", then the datagram connection does not work and it throws an exception while opening tunnel itself.

 

Thanks

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Datagram Packet send on Airtel Network

I suggest you contact your cellular carrier and ask them which APNs your account can/should access. You may also want to double-check whether they allow UDP on via those APNs.
Please use plain text.
Contributor
shadow257
Posts: 13
Registered: ‎01-07-2013
My Device: 8310

Re: Datagram Packet send on Airtel Network

Do you could solve the problem? How did you do?

Please use plain text.