Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Are there anybody use the siemens tc45?

Posted on 2004-03-22
12
Medium Priority
?
421 Views
Last Modified: 2013-12-09
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.
0
Comment
Question by:hjf424
  • 7
  • 3
12 Comments
 
LVL 4

Accepted Solution

by:
SimonTay earned 200 total points
ID: 10676676
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
 
LVL 4

Expert Comment

by:SimonTay
ID: 10767322
Did this help?
0
 

Author Comment

by:hjf424
ID: 10771990
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
WatchGuard Case Study: NCR

With business operations for thousands of customers largely depending on the internal systems they support, NCR can’t afford to waste time or money on security products that are anything less than exceptional. That’s why they chose WatchGuard.

 
LVL 4

Expert Comment

by:SimonTay
ID: 10773220
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
 

Author Comment

by:hjf424
ID: 10775395
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
 
LVL 4

Expert Comment

by:SimonTay
ID: 10775722
     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
 

Author Comment

by:hjf424
ID: 10781793
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
 
LVL 4

Expert Comment

by:SimonTay
ID: 10781814
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
 
LVL 4

Expert Comment

by:SimonTay
ID: 10784305
Did this answer your original question though?
0
 
LVL 4

Expert Comment

by:SimonTay
ID: 11060423
Why have you not allocated the points?  :-(
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With the purchase of CloudCommand by Comcast customers are left in a bind as subscriptions expire and render the AP's disabled. The following will explain how to flash your Ubiquiti AP's with CloudCommand firmware back to Ubiquiti firmware. HOWTO…
For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
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…

971 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