GPRS by means of SIM Toolkit

HiI'm trying to develop an applet that would establish the connection between SIM and some server over the BIP via GPRS. The problem is to build proactive command OPEN_CHANNEL. Can anybody show an example of how to build it?Thanks in advance,Viktoria
[279 byte] By [Vikusa] at [2007-10-3 0:49:43]
# 1

Hi Victoria,

i face the same problem..did you find something ? i get all the time a 0x36 response which means that there is some missing parameters..and i can't find what is missing in my code... ):

find my code below... i config the APN via the in the ME settings...and this is the default APN...as far as i know i don't need to define the apn in addition...

/* Init command:

type - the command type - 0x40 OPEN CHANNEL

qualifier - the command qualifier 0x01 = immediate link establishment

Device - the destination device - DEV_ID_ME

*/

proHdlr.init( (byte) 0x40, (byte) 0x01, DEV_ID_ME);

/**Bearer description - Mandatory **/

/*appendTLV : 12.52 Bearer description

Bearer tag = 0x32

Bearer Type coding : GPRS = '02'

Bearer parameters for GPRS : '02' = IP (Internet Protocol, IETF STD 5)

*/

proHdlr.appendTLV( (byte) 0x32, (byte) 0x02, (byte) 0x02);

/**Buffer size - Mandatory **/

/*appendTLV : 12.55 Buffer size

Buffer size tag = 0x39

Buffer size value = 0x00, 0xFF

(12.55 requires two byte length for the value

*/

proHdlr.appendTLV( (byte) 0x39, (byte) 0x00, (byte) 0xFF);

amirSTKa at 2007-7-14 17:44:47 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
i found good example to the required open_channel command: http://web.it.kth.se/~matsbror/exjobb/msc_theses/claesrosenberg.pdfpage 69
amirSTKa at 2007-7-14 17:44:47 > top of Java-index,Java Mobility Forums,Consumer and Commerce...