Are there anybody use the siemens tc45?

if anyone have used the tc45,i'd like to ask him following question:
1,in tc45 at command manual ,i did'nt see any command to create tcp or udp connection,so how do i use the tc45 to create tcp or udp connetion?And where could i find more detailed documents with tc45?Can you give me the url or send me the documents to my email address:hjf424@qq.com,thank you!
2,Does tc45 support http protocol?if it do,how could i use the http with at command?And how to use it with the http protocol?And anyone use http to send mms successfully?Because i know mms could sent over http.
hjf424Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SimonTayConnect With a Mentor Commented:
TC45 can connect to HTTP, no problem, use something like :

String url = "http://www.tdc.co.uk/index.htm";
try {

c = (HttpConnection)Connector.open( url );
 

That makes the HTTP request!

The TC45 SDK should have enough detailed information, code examples etc.

Some more information and a simple UDP socket connection program (externalcommands.jar) is available at http://www.tdc.co.uk/gprs/tc45.htm                           
0
 
SimonTayCommented:
Did this help?
0
 
hjf424Author Commented:
simontay:
   Thank you!But i have any questions as following:
1,how can i create tcp connection?and could you give me some samples?
2,when i use tcp connection,whether i should define pdp context use at command such as cgdcont command or not?
if do ,could you give me some samples?
0
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
SimonTayCommented:
The externalcommands program at the link above will create a tcp connection using the TC45 modem, you will still set the context using the cgdcont command.
0
 
hjf424Author Commented:
thank you
 from the tc45_java_usersguide ,i found the interfaces httpconnection,datagramconnection,streamconnection.
so if i could use the streamconnection to create a tcp connection other than use the externalcommands program?
And using the interface streamconnection and using the externalcommands program have any differences?could you give me two examples use above interfaces?
0
 
SimonTayCommented:
     try {
            // open a StreamConnection to the defined socket
            socket=(StreamConnection)Connector.open(sock,Connector.READ_WRITE);
            //System.out.println( "Socket: " +  socket);
                               
            // Create a OutputStream and a PrintStream
            OutputStream outGPRS = socket.openOutputStream();
            InputStream inGPRS = socket.openInputStream();
           
            respond("CONNECT\n\r");
 
Does this help?
0
 
hjf424Author Commented:
thank you! could you give me your email,so if i have any question i could send email to you.my eamil is hjf424@163.net .
sincerely!
0
 
SimonTayCommented:
Please ask questions via EE.  The only way I answer questions by email is for my company's customers.

Regards,

Simon

www.tdc.co.uk
0
 
SimonTayCommented:
Did this answer your original question though?
0
 
SimonTayCommented:
Why have you not allocated the points?  :-(
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.