Solved

Sending Username and Password with TC45

Posted on 2003-10-28
4
745 Views
Last Modified: 2013-12-09
Hi!

I am currently programming a Siemens TC45 using the integrated Java environment (J2ME).

The APN I am connecting to requires the IPCP fields password and username to be filled in (the GGSN is rejecting any pdp-context request without these fields set).

As I want to use more than one simultaneously pdp-context I can not only use the at^sjnet command to specify the APN, username and password.

Consequently, I was hoping that the

at+cgdcont=1,"ip","myapn"
at+cgdata="ppp",1

would provide me with the possibility to negotiate PPP between the Java code and the TC45 GSM stack.

When I issue the at+cgdata command from the Java program it hangs until the command returns

CONNECT
~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }
'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~
 }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'
}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~
}#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}
"}(}"}%}&aóEo}#}%Â#}%Å~~ }#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~~ }
#À!}!}#} }9}"}&} }*} } }'}"}(}"}%}&aóEo}#}%Â#}%Å~
NO CARRIER

Could anyone please help me to establish a pdp-context using the at+cgdata from the Java code on the TC45?

Best Regards
Leif Einar
0
Comment
Question by:einaraune
4 Comments
 

Author Comment

by:einaraune
ID: 9656165
According to Siemens the only GPRS connection that is supported from Java is using the AT^sjnet command.

So, when using J2ME on the TC45 you can only utilise one of the three PDP-contexts the terminal supports. (Of course you may use the other pdp-contexts by using an external entity connecting via the RS232 port, but then the whole point about embedded Java seems to be gone ;-)

What a pitty.

Leif Einar
0
 
LVL 4

Expert Comment

by:SimonTay
ID: 10774718
http://www.tdc.co.uk/gprs/tc45.htm has a program : externalcommands.jar which provides a modified dial command which may well do what you want.

Simon
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 11167427
PAQed - no points refunded (of 50)

Computer101
E-E Admin
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Coaxial cable bending There are several factors that govern the selection of coaxial cable for your Machine to Machine (M2M) application: the location of cable runs, either indoor or outdoor, inside or outside an enclosure, maximum bending and the…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now