Solved

Are there anybody use the siemens tc45?

Posted on 2004-03-22
12
405 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 50 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
No internet 10 51
internet passcode 14 79
How do I get a Toshiba FlashAir to work with a PC that is not Wi-Fi enabled? 3 39
Cisco WAP POE power 28 74
Multi-source agreements are important because they set standards that all manufacturers should follow to ensure that devices are compatible with multiple vendors. The multi-source agreement (MSA) is an agreement that establishes how multiple vendors…
Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
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…

776 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